Skip to content

Commit

Permalink
precache and service worker generation task (#1)
Browse files Browse the repository at this point in the history
precache and service worker generation task
  • Loading branch information
ananavati authored and jchip committed Aug 19, 2016
1 parent c18b8e9 commit 29c6602
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/electrode-archetype-react-app/arch-gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ const tasks = {
desc: false,
task: () => shell.rm("-rf", "./tmp")
},
"build-dist:generate-service-worker": {
desc: "Generate Service Worker using the options provided in the app/config/sw-precache-config.json file in PROD mode",
task: `sw-precache --config=config/sw-precache-config.json --verbose`
},
"build-dist:flatten-l10n": {
desc: false,
task: `node ${__dirname}/scripts/l10n/flatten-messages.js`
Expand Down Expand Up @@ -106,6 +110,10 @@ const tasks = {
desc: "Start server with watch in hot mode with webpack-dev-server",
task: [".webpack-dev", ["server-hot", "server-watch"]]
},
"generate-service-worker": {
desc: "Generate Service Worker using the options provided in the app/config/sw-precache-config.json file for dev/hot mode",
task: `sw-precache --config=config/sw-precache-config.json --verbose --no-handle-fetch`
},
"lint": [["lint-client", "lint-client-test", "lint-server", "lint-server-test"]],
"lint-client": `eslint --ext .js,.jsx -c ${config.eslint}/.eslintrc-react client templates`,
"lint-client-test": `eslint --ext .js,.jsx -c ${config.eslint}/.eslintrc-react-test test/client`,
Expand Down

0 comments on commit 29c6602

Please sign in to comment.