Skip to content

Commit

Permalink
Tweaks for npm scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
coreymckrill committed Jul 13, 2024
1 parent 256b443 commit c03d6f6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@
},
"license": "GPL-3.0+",
"scripts": {
"setup": "npm install && composer install",
"build": "composer install --no-dev && npm install --only=prod && composer archive --file=$npm_package_name --format=zip && npm run postarchive",
"postarchive": "rm -rf $npm_package_name && unzip $npm_package_name.zip -d $npm_package_name && rm $npm_package_name.zip && zip -r $npm_package_name.zip $npm_package_name && rm -rf $npm_package_name",
"setup": "npm install && composer install && husky install",
"build": "composer install --no-dev && npm install --only=prod && composer archive --file=$npm_package_name --format=zip",
"phpcs": "composer run phpcs",
"lint": "composer run lint",
"lint:staged": "composer run lint-staged",
"lint:branch": "composer run lint-branch",
"prepare": "husky install"
"lint:branch": "composer run lint-branch"
},
"devDependencies": {
"husky": "^8.0.0"
Expand Down

0 comments on commit c03d6f6

Please sign in to comment.