|
8 | 8 | "start": "run-p build:dev serve:dev", |
9 | 9 | "postserve:dev": "docker-compose down", |
10 | 10 | "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", |
12 | 14 | "prebuild:dev": "npm run clean", |
13 | 15 | "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", |
15 | 17 | "build:prod": "run-s plugins:build copy js:prod 'sass -- --style compressed'", |
16 | 18 | "serve:dev": "docker-compose up", |
17 | 19 | "sass": "sass src/scss/base.scss theme/css/base.css", |
|
23 | 25 | "plugins:build": "cd src/plugins/example-blocks && npm run build", |
24 | 26 | "plugins:format": "cd src/plugins/example-blocks && npm run format", |
25 | 27 | "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\"", |
27 | 29 | "watch:scss": "chokidar \"src/scss/**/*\" -c \"npm run sass\"", |
28 | 30 | "test": "vitest --run", |
29 | 31 | "test:watch": "vitest", |
|
0 commit comments