Skip to content

Commit 4ec0094

Browse files
committed
first commit
0 parents  commit 4ec0094

24 files changed

+9794
-0
lines changed

.eslintignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Dependencies
2+
node_modules/
3+
4+
# Build output
5+
dist/
6+
build/

.eslintrc.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"env": {
3+
"es2021": true,
4+
"node": true,
5+
"jest": true
6+
},
7+
"extends": [
8+
"eslint:recommended",
9+
"plugin:jsdoc/recommended",
10+
"plugin:markdown/recommended",
11+
"prettier"
12+
],
13+
"parserOptions": {
14+
"ecmaVersion": "latest"
15+
},
16+
"rules": {
17+
"no-unused-vars": "warn"
18+
},
19+
"overrides": [
20+
{
21+
"files": ["src/index.js", "scripts/**/*.js"],
22+
"rules": {
23+
"no-console": "off"
24+
}
25+
}
26+
],
27+
"plugins": ["markdown", "jsdoc"]
28+
}

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Continuous Integration
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test:
13+
name: Test on Node.js ${{ matrix.node-version }}
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
node-version: [18.x, 20.x, 22.x]
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v4
23+
24+
- name: Use Node.js ${{ matrix.node-version }}
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: ${{ matrix.node-version }}
28+
cache: 'npm'
29+
30+
- name: Install dependencies
31+
run: npm ci
32+
33+
- name: Run tests
34+
run: npm test

.github/workflows/publish.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish to npm
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '20'
20+
registry-url: 'https://registry.npmjs.org'
21+
22+
- name: Install dependencies and publish
23+
run: |
24+
npm ci
25+
npm publish --access public
26+
env:
27+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Release Please
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
release-please:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: google-github-actions/release-please-action@v4
17+
with:
18+
token: ${{ secrets.JS_STARTER_PAT }} # Use a PAT to allow triggering other workflows
19+
release-type: node
20+
# package-name: php-theme-gen
21+
# pull-request-title-pattern: "chore(release): ${version}"

.gitignore

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# Dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
.pnp.cjs
8+
9+
# Testing
10+
/coverage
11+
12+
# Build output
13+
/build
14+
/dist
15+
16+
# Production
17+
/build
18+
/dist
19+
.next/
20+
.nuxt/
21+
22+
# Logs
23+
logs
24+
*.log
25+
npm-debug.log*
26+
yarn-debug.log*
27+
yarn-error.log*
28+
lerna-debug.log*
29+
.pnpm-debug.log*
30+
31+
# Environment variables
32+
.env
33+
.env.local
34+
.env.development.local
35+
.env.test.local
36+
.env.production.local
37+
38+
# IDEs and editors
39+
.idea/
40+
.vscode/
41+
*.suo
42+
*.ntvs*
43+
*.njsproj
44+
*.sln
45+
*.sw?

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

.prettierignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Dependencies
2+
node_modules/
3+
4+
# Build output
5+
dist/
6+
build/
7+
8+
# Coverage
9+
coverage/
10+
11+
# Lockfiles
12+
package-lock.json
13+
yarn.lock
14+
pnpm-lock.yaml
15+
16+
# Logs
17+
*.log

.prettierrc.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"tabWidth": 2,
3+
"semi": true,
4+
"singleQuote": true,
5+
"trailingComma": "all",
6+
"overrides": [
7+
{
8+
"files": "*.md",
9+
"options": {
10+
"proseWrap": "never"
11+
}
12+
}
13+
]
14+
}

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Changelog
2+
3+
## [1.2.0](https://github.com/ioncakephper/php-theme-gen/compare/v1.1.0...v1.2.0) (2025-07-07)
4+
5+
### Features
6+
7+
- :zap: update README, release-please.yml ([9eb09b2](https://github.com/ioncakephper/php-theme-gen/commit/9eb09b2d1a151d075a1f75eec615e0e25b2f9997))
8+
9+
### Bug Fixes
10+
11+
- remove docs:links related file, update 7 files and delete 2 files ([2869905](https://github.com/ioncakephper/php-theme-gen/commit/286990585a28b1fa3963e515397c7c5616612d5c))
12+
- update README.md, removed docs:links ([4efcdc4](https://github.com/ioncakephper/php-theme-gen/commit/4efcdc4c6962f20c189aabca86cc3d36053013dd))
13+
14+
## [1.1.0](https://github.com/ioncakephper/php-theme-gen/compare/v1.0.3...v1.1.0) (2025-07-07)
15+
16+
### Features
17+
18+
- update README.md and src/index.js ([0d57d58](https://github.com/ioncakephper/php-theme-gen/commit/0d57d589ff929dfdd5fad06c6b709d81f613e205))
19+
20+
### Bug Fixes
21+
22+
- :zap: create better documentation ([b83f628](https://github.com/ioncakephper/php-theme-gen/commit/b83f628b930d9c4f27420ed35df45d334d76912f))
23+
24+
## Changelog
25+
26+
All notable changes to this project will be documented in this file.
27+
28+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
29+
30+
This changelog is automatically generated by [release-please](https://github.com/googleapis/release-please).

0 commit comments

Comments
 (0)