Skip to content

Commit 211a62b

Browse files
committed
chore: cleanup commands
1 parent 973610b commit 211a62b

File tree

6 files changed

+838
-36
lines changed

6 files changed

+838
-36
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
2-
dist
2+
tsconfig.tsbuildinfo
3+
dist

demo/.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
CMS_BACKEND_IMAGE='ghcr.io/njfamirm/decap-cms-github-backend:1.2.0'
1+
CMS_BACKEND_IMAGE='ghcr.io/njfamirm/decap-cms-github-backend:1.2.3'
22
OAUTH_GITHUB_CLIENT_ID='maybe-secret'
33
OAUTH_GITHUB_CLIENT_SECRET='secret'
44
DOMAIN='decap-demo.njfamirm.ir'
55
OAUTH_GITHUB_SCOPE='public_repo'
66

77
# Enable debug logging
8-
CMS_BACKEND_DEBUG=1
8+
CMS_BACKEND_DEBUG=1

demo/package.json

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,8 @@
66
"author": "S. Amir Mohammad Najafi <[email protected]> (https://www.njfamirm.ir)",
77
"type": "module",
88
"scripts": {
9-
"b": "yarn build",
10-
"build": "yarn build:es --analyze=verbose",
11-
"build:demo": "esbuild demo/admin.js --bundle --minify --outfile=demo/admin.min.js",
12-
"build:es": "esbuild src/index.ts --platform=node --external:simple-oauth2 --target=node22 --bundle --format=esm --minify --sourcemap --outdir=dist --out-extension:.js=.mjs",
13-
"build:ts": "tsc --build",
14-
"clean": "rm -rf dist build .tsbuildinfo",
15-
"release": "standard-version --sign",
16-
"s": "yarn start",
17-
"serve": "node --enable-source-maps dist/index.mjs",
18-
"serve:debug": "node --inspect --enable-source-maps dist/index.mjs",
19-
"start": "NODE_OPTIONS=--enable-source-maps run-s clean build serve",
20-
"watch": "run-s clean build && run-p watch:es watch:node",
21-
"watch:debug-node": "nodemon -w dist/ --inspect --enable-source-maps dist/index.mjs",
22-
"watch:es": "yarn build:es --watch",
23-
"watch:node": "nodemon -w dist/ --enable-source-maps dist/index.mjs",
24-
"watch:ts": "yarn build:ts --watch --preserveWatchOutput"
9+
"build": "esbuild demo/admin.js --bundle --minify --outfile=demo/admin.min.js",
10+
"serve": "wds"
2511
},
2612
"dependencies": {
2713
"netlify-cms-app": "^2.15.72"

0 commit comments

Comments
 (0)