Skip to content

Commit

Permalink
Merge pull request #20 from nomad-mystic/kpm-update-dist-folder
Browse files Browse the repository at this point in the history
kpm: Update dist folder generation
  • Loading branch information
nomad-mystic committed Sep 13, 2023
2 parents b02e522 + a835d40 commit 0d2e073
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ $ git clone git@github.com:nomad-mystic/wordpress-scaffold-cli.git ./scaffold-cl
$ cd scaffold-cli
$ nvm use
$ npm i
$ npm run dev:tsc
$ npm run dev:tsc | npm run dev | npm run production:build
```

#### Local dev commands
Expand Down
17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,20 @@
"main": "index.js",
"type": "module",
"scripts": {
"dev:project-init": "node ./dist/src/bin/scaffold-project-init.js",
"dev:plugin": "node ./dist/src/bin/scaffold-plugin.js",
"dev:theme": "node ./dist/src/bin/scaffold-theme.js",
"dev:wps": "./dist/src/bin/commander-cli.js",
"dev:project-init": "node ./dist/bin/scaffold-project-init.js",
"dev:plugin": "node ./dist/bin/scaffold-plugin.js",
"dev:theme": "node ./dist/bin/scaffold-theme.js",
"dev:wps": "./dist/bin/commander-cli.js",
"dev:tsc": "tsc --watch --project ./",
"dev": "npm run dev:tsc",
"production:build": "tsc --project ./",
"postpack": "tsc --project ./"
},
"bin": {
"wps-scaffold-project-init": "./dist/src/bin/scaffold-project-init.js",
"wps-scaffold-plugin": "./dist/src/bin/scaffold-plugin.js",
"wps-scaffold-theme": "./dist/src/bin/scaffold-theme.js",
"wps": "./dist/src/bin/commander-cli.js"
"wps-scaffold-project-init": "./dist/bin/scaffold-project-init.js",
"wps-scaffold-plugin": "./dist/bin/scaffold-plugin.js",
"wps-scaffold-theme": "./dist/bin/scaffold-theme.js",
"wps": "./dist/bin/commander-cli.js"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

/* Modules */
"module": "esnext",
"rootDir": "./",
"rootDir": "./src",
"moduleResolution": "node16",
"rootDirs": [],
"types": [
Expand Down

0 comments on commit 0d2e073

Please sign in to comment.