Skip to content

Commit

Permalink
Plugin: Add a script to build the plugin zip (#750)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad authored May 10, 2017
1 parent 8a983b7 commit 1c4ed1f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ gutenberg.pot
.vscode
*.log
yarn.lock
gutenberg.zip
13 changes: 12 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,25 @@
"WordPress",
"editor"
],
"files": [
"index.php",
"post-content.js",
"editor/build",
"i18n/build",
"element/build",
"blocks/build"
],
"scripts": {
"test-unit": "cross-env NODE_ENV=test webpack && mocha build --require bootstrap-test.js",
"build": "cross-env BABEL_ENV=default NODE_ENV=production webpack",
"gettext-strings": "cross-env BABEL_ENV=gettext webpack",
"lint": "eslint .",
"dev": "cross-env BABEL_ENV=default webpack --watch",
"test": "npm run lint && npm run test-unit",
"ci": "concurrently \"npm run build\" \"npm test\""
"ci": "concurrently \"npm run build\" \"npm test\"",
"prepackage-plugin": "rm -f gutenberg.zip && npm install && npm run build",
"package-plugin": "cat \"$(npm pack)\" | tar xzf - && cd package && zip -r ../gutenberg.zip *",
"postpackage-plugin": "rm -r package gutenberg*.tgz"
},
"devDependencies": {
"autoprefixer": "^6.7.7",
Expand Down

0 comments on commit 1c4ed1f

Please sign in to comment.