Skip to content

Commit

Permalink
Simple build
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsd committed Mar 3, 2019
1 parent d226eb2 commit 32d51a9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 30 deletions.
4 changes: 4 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
"autoloader-suffix": "PresetoBlockContext"
},
"scripts": {
"build": [
"@composer validate --no-check-publish --strict",
"@composer install --no-dev --prefer-dist --optimize-autoloader --no-scripts"
],
"lint-php": [
"./vendor/bin/phpcs ."
],
Expand Down
29 changes: 0 additions & 29 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
"url": "https://preseto.com"
},
"scripts": {
"build": "webpack --mode=production --output=./js/dist/[name].js",
"dev": "webpack --watch --mode=development --output=./js/dist/[name].js",
"build-js": "webpack --mode=production --output=./js/dist/[name].js",
"build-php": "composer build",
"build": "npm run build-php && npm run build-js",
"release": "npm run build && grunt release",
"release-zip": "npm run build && grunt release-zip",
"clean": "grunt clean"
Expand Down

0 comments on commit 32d51a9

Please sign in to comment.