Skip to content

Commit

Permalink
Generate Firefox extension package.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebadoom committed Feb 28, 2018
1 parent eed7841 commit 9f3e89f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ module.exports = grunt => {
}
},

exec: {
firefoxExtensionPack: {
command: 'node_modules/web-ext/bin/web-ext build ' +
'--source-dir=dist/extension --artifacts-dir=dist ' +
'--overwrite-dest'
}
},

stylus: {
website: {
files: {
Expand Down Expand Up @@ -217,7 +225,8 @@ module.exports = grunt => {
'copy:extension',
'build-extension-views',
'webpack:extensionProd',
'crx:pack'
'crx:pack',
'exec:firefoxExtensionPack'
]);

grunt.registerTask('build-extension-dev', [
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"source-map-support": "^0.5.3",
"stylus": "^0.54.5",
"uglifyjs-webpack-plugin": "^1.1.6",
"web-ext": "^2.4.0",
"webpack": "^3.10.0",
"webpack-merge": "^4.1.1",
"xhr-mock": "^2.0.3"
Expand Down

0 comments on commit 9f3e89f

Please sign in to comment.