Skip to content

Commit f78212b

Browse files
committed
Adjust build scripts
1 parent de892aa commit f78212b

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

DEVELOPMENT_NOTES.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ All the build files can be found in `/dist` folder.
2828
2. Choose `Load Temporary Add-on`
2929
3. Select `manifest.json` inside `/dist` folder
3030

31-
3231
### Pack Extension ###
3332
* Chrome: Zip all content inside `/dist` folder after build, upload the zip file to webstore
3433
* Firefox: TBC
3534

35+
`npm run pack` has been set to simplify the process.
36+

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"build:images": "cpx './src/assets/images/**/*' ./dist/assets/images",
1919
"build:js": "./node_modules/.bin/gulp build-js",
2020
"build:css": "node-sass ./src/assets/css --output ./dist/assets/css --quiet --include-path node_modules --output-style compressed",
21-
"build": "npm run clean && npm run build:js && npm run build:css && npm run build:files && npm run build:images"
21+
"build": "npm run clean && npm run build:js && npm run build:css && npm run build:files && npm run build:images",
22+
"pack": "npm run build && cd ./dist && zip -r -FS ../app/code-copier.zip *"
2223
},
2324
"devDependencies": {
2425
"@babel/cli": "^7.6.4",
File renamed without changes.

0 commit comments

Comments
 (0)