Skip to content

Commit 637ce7f

Browse files
fix: adjust copy scripts
1 parent 129fc46 commit 637ce7f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@
88
"start": "run-p build:dev serve:dev",
99
"postserve:dev": "docker-compose down",
1010
"clean": "rm -rf theme/ plugins/example-blocks/",
11-
"copy": "mkdir -p ./theme && cp -r ./src/php/* ./theme && mkdir -p ./plugins && cp -r ./src/plugins/* ./plugins",
11+
"copy": "run-p copy:*",
12+
"copy:php": "mkdir -p ./theme && cp -r ./src/php/* ./theme",
13+
"copy:plugins": "mkdir -p ./plugins && cp -r ./src/plugins/* ./plugins",
1214
"prebuild:dev": "npm run clean",
1315
"prebuild:prod": "npm run clean",
14-
"build:dev": "run-p plugins:dev copy sass watch js:watch",
16+
"build:dev": "run-p plugins:dev copy:php sass watch js:watch",
1517
"build:prod": "run-s plugins:build copy js:prod 'sass -- --style compressed'",
1618
"serve:dev": "docker-compose up",
1719
"sass": "sass src/scss/base.scss theme/css/base.css",
@@ -23,7 +25,7 @@
2325
"plugins:build": "cd src/plugins/example-blocks && npm run build",
2426
"plugins:format": "cd src/plugins/example-blocks && npm run format",
2527
"watch": "run-p watch:*",
26-
"watch:php": "chokidar \"src/php/**/*\" -c \"npm run copy\"",
28+
"watch:php": "chokidar \"src/php/**/*\" -c \"npm run copy:php\"",
2729
"watch:scss": "chokidar \"src/scss/**/*\" -c \"npm run sass\"",
2830
"test": "vitest --run",
2931
"test:watch": "vitest",

0 commit comments

Comments
 (0)