Skip to content

Commit

Permalink
[patch] update dep, xclap, sw-precache (#431)
Browse files Browse the repository at this point in the history
  • Loading branch information
jchip authored Jun 24, 2017
1 parent f195c72 commit 31a350a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions packages/electrode-archetype-react-app-dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"style-loader": "^0.13.1",
"stylus": "^0.54.5",
"stylus-relative-loader": "^3.0.0",
"sw-precache": "^4.3.0",
"sw-precache": "^5.0.0",
"sw-toolbox": "^3.4.0",
"url-loader": "^0.5.6",
"web-app-manifest-loader": "^0.1.1",
Expand All @@ -115,7 +115,6 @@
"webpack-stats-plugin": "^0.1.1",
"winston": "^2.3.1",
"xclap": "^0.2.0",
"xclap-cli": "^0.1.1",
"xenv-config": "^1.0.0",
"xsh": "^0.3.2"
},
Expand Down
3 changes: 2 additions & 1 deletion packages/electrode-archetype-react-app/arch-clap.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
const Fs = require("fs");
const archetype = require("./config/archetype");
const assert = require("assert");
const requireAt = require("require-at");

assert(!archetype.noDev, "dev archetype is missing - development & build tasks not possible");

Expand Down Expand Up @@ -709,7 +710,7 @@ Individual .babelrc files were generated for you in src/client and src/server
module.exports = function(xclap) {
setupPath();
createElectrodeTmpDir();
xclap = xclap || devRequire("xclap");
xclap = xclap || requireAt(process.cwd())("xclap") || devRequire("xclap");
process.env.FORCE_COLOR = "true"; // force color for chalk
xclap.load("electrode", makeTasks());
};

0 comments on commit 31a350a

Please sign in to comment.