Skip to content

Commit

Permalink
fix: adjust copy scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
rise-erpelding committed Sep 27, 2023
1 parent 129fc46 commit 637ce7f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@
"start": "run-p build:dev serve:dev",
"postserve:dev": "docker-compose down",
"clean": "rm -rf theme/ plugins/example-blocks/",
"copy": "mkdir -p ./theme && cp -r ./src/php/* ./theme && mkdir -p ./plugins && cp -r ./src/plugins/* ./plugins",
"copy": "run-p copy:*",
"copy:php": "mkdir -p ./theme && cp -r ./src/php/* ./theme",
"copy:plugins": "mkdir -p ./plugins && cp -r ./src/plugins/* ./plugins",
"prebuild:dev": "npm run clean",
"prebuild:prod": "npm run clean",
"build:dev": "run-p plugins:dev copy sass watch js:watch",
"build:dev": "run-p plugins:dev copy:php sass watch js:watch",
"build:prod": "run-s plugins:build copy js:prod 'sass -- --style compressed'",
"serve:dev": "docker-compose up",
"sass": "sass src/scss/base.scss theme/css/base.css",
Expand All @@ -23,7 +25,7 @@
"plugins:build": "cd src/plugins/example-blocks && npm run build",
"plugins:format": "cd src/plugins/example-blocks && npm run format",
"watch": "run-p watch:*",
"watch:php": "chokidar \"src/php/**/*\" -c \"npm run copy\"",
"watch:php": "chokidar \"src/php/**/*\" -c \"npm run copy:php\"",
"watch:scss": "chokidar \"src/scss/**/*\" -c \"npm run sass\"",
"test": "vitest --run",
"test:watch": "vitest",
Expand Down

0 comments on commit 637ce7f

Please sign in to comment.