Skip to content

Commit cc9de1b

Browse files
committed
use demo folder
1 parent 6f23e70 commit cc9de1b

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
node_modules/
2-
temp/
2+
demo/
33
.DS_Store

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ Report bugs in the [issues list](https://github.com/scriptPilot/add-php-backend/
5050

5151
## Maintainer
5252

53-
1. Commit changes with an issue (closure) reference
54-
2. Run `npm version patch | minor | major` and push changes
55-
3. Let the workflow manage the release to GitHub and NPM
53+
1. Apply changes
54+
2. Run `npm run backend` to build the `demo` folder
55+
3. Commit changes with an issue (closure) reference
56+
4. Run `npm version patch | minor | major` and push changes
57+
5. Let the workflow manage the release to GitHub and NPM

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"type": "module",
88
"scripts": {
99
"test": "",
10-
"backend": "rm -rf temp && node . && cd temp && npm run backend",
10+
"backend": "rm -rf demo && node . && cd demo && npm run backend",
1111
"preversion": "npm install && npm test"
1212
},
1313
"repository": {

src/index.js

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import fs from 'fs-extra'
1010
const scriptFolder = path.dirname(url.fileURLToPath(import.meta.url))
1111
const processFolder = process.cwd()
1212
const isDevMode = processFolder === path.resolve(scriptFolder, '..')
13-
const appFolder = isDevMode ? path.resolve(scriptFolder, '../temp') : processFolder
13+
const appFolder = isDevMode ? path.resolve(scriptFolder, '../demo') : processFolder
1414
const templateFolder = path.resolve(scriptFolder, 'templates')
1515

1616
// Define files

0 commit comments

Comments
 (0)