Skip to content

Commit 1feb0fc

Browse files
committed
chore!: rename npm goals
- npm run gen-js-example => npm run example:js - npm run gen-ts-example => npm run example:ts - npm run gen-go-example => npm run example:go - npm run gen-py-example => npm run example:py
1 parent dadcbd2 commit 1feb0fc

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

.github/workflows/generate-go-app.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
run: npm ci --no-audit --no-fund # https://docs.npmjs.com/cli/v8/commands/npm-ci
4040

4141
- name: Generate Golang + Chi application
42-
run: npm run gen-go-example
42+
run: npm run example:go
4343

4444
- name: Check whether all modified files have been committed
4545
run: >-

.github/workflows/generate-js-app.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
run: npm ci --no-audit --no-fund # https://docs.npmjs.com/cli/v8/commands/npm-ci
4040

4141
- name: Generate JavaScript + Express application
42-
run: npm run gen-js-example
42+
run: npm run example:js
4343

4444
- name: Check whether all modified files have been committed
4545
run: >-

.github/workflows/generate-python-app.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
run: npm ci --no-audit --no-fund # https://docs.npmjs.com/cli/v8/commands/npm-ci
4040

4141
- name: Generate Python + FastAPI application
42-
run: npm run gen-py-example
42+
run: npm run example:py
4343

4444
- name: Check whether all modified files have been committed
4545
run: >-

.github/workflows/generate-ts-app.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
run: npm ci --no-audit --no-fund # https://docs.npmjs.com/cli/v8/commands/npm-ci
4040

4141
- name: Generate TypeScript + Express application
42-
run: npm run gen-ts-example
42+
run: npm run example:ts
4343

4444
- name: Check whether all modified files have been committed
4545
run: >-

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
"src/**"
2727
],
2828
"scripts": {
29-
"gen-js-example": "cd examples/js/express/mysql; ../../../../src/cli.js --lang js",
30-
"gen-ts-example": "cd examples/ts/express/mysql; ../../../../src/cli.js --lang ts",
31-
"gen-go-example": "cd examples/go/chi/mysql; ../../../../src/cli.js --lang go",
32-
"gen-py-example": "cd examples/python/fastapi/postgres; ../../../../src/cli.js --lang python"
29+
"example:js": "cd examples/js/express/mysql; ../../../../src/cli.js --lang js",
30+
"example:ts": "cd examples/ts/express/mysql; ../../../../src/cli.js --lang ts",
31+
"example:go": "cd examples/go/chi/mysql; ../../../../src/cli.js --lang go",
32+
"example:py": "cd examples/python/fastapi/postgres; ../../../../src/cli.js --lang python"
3333
},
3434
"dependencies": {
3535
"ejs": "~3.1.9",

0 commit comments

Comments
 (0)