diff --git a/package.json b/package.json index 4aa15b60dcc57..ddf510a96a8d6 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,7 @@ "format-packages": "prettier-eslint --write \"packages/*/src/**/*.js\"", "format-scripts": "prettier-eslint --write \"scripts/**/*.js\"", "format-www": "prettier-eslint --write \"www/*.js\" \"www/src/**/*.js\"", + "jest": "jest", "lerna": "lerna", "lint": "eslint --ext .js,.jsx packages/**/src", "lint:flow": "babel-node scripts/flow-check.js", @@ -61,7 +62,7 @@ "publish-canary": "lerna publish --canary --yes", "publish-next": "lerna publish --npm-tag=next", "remotedev": "remotedev --hostname=localhost --port=19999", - "test": "yarn run lint && jest", + "test": "yarn lint && yarn jest", "test:update": "jest --updateSnapshot", "test:watch": "jest --watch", "test_bkup": diff --git a/packages/gatsby/package.json b/packages/gatsby/package.json index 6997337982be2..8bfdeebddd255 100644 --- a/packages/gatsby/package.json +++ b/packages/gatsby/package.json @@ -30,6 +30,7 @@ "chunk-manifest-webpack-plugin": "0.1.0", "common-tags": "^1.4.0", "convert-hrtime": "^2.0.0", + "copyfiles": "^1.2.0", "core-js": "^2.5.0", "css-loader": "^0.26.1", "debug": "^2.6.0", diff --git a/packages/gatsby/src/redux/index.js b/packages/gatsby/src/redux/index.js index ba34b736a248a..622fd09f6ec9e 100644 --- a/packages/gatsby/src/redux/index.js +++ b/packages/gatsby/src/redux/index.js @@ -62,7 +62,7 @@ store.subscribe(() => { emitter.emit(lastAction.type, lastAction) }) -emitter.on('*', () => { +emitter.on(`*`, () => { saveState(store.getState()) }) diff --git a/yarn.lock b/yarn.lock index ded9222f2975a..4fe2069dfe694 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2828,6 +2828,17 @@ copy-descriptor@^0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" +copyfiles@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/copyfiles/-/copyfiles-1.2.0.tgz#a8da3ac41aa2220ae29bd3c58b6984294f2c593c" + dependencies: + glob "^7.0.5" + ltcdr "^2.2.1" + minimatch "^3.0.3" + mkdirp "^0.5.1" + noms "0.0.0" + through2 "^2.0.1" + core-js@^1.0.0, core-js@^1.2.6: version "1.2.7" resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636" @@ -7546,6 +7557,10 @@ lru-cache@^4.0.1: pseudomap "^1.0.2" yallist "^2.1.2" +ltcdr@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/ltcdr/-/ltcdr-2.2.1.tgz#5ab87ad1d4c1dab8e8c08bbf037ee0c1902287cf" + macaddress@^0.2.8: version "0.2.8" resolved "https://registry.yarnpkg.com/macaddress/-/macaddress-0.2.8.tgz#5904dc537c39ec6dbefeae902327135fa8511f12" @@ -8229,6 +8244,13 @@ node-version@1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/node-version/-/node-version-1.1.0.tgz#f437d7ba407e65e2c4eaef8887b1718ba523d4f0" +noms@0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/noms/-/noms-0.0.0.tgz#da8ebd9f3af9d6760919b27d9cdc8092a7332859" + dependencies: + inherits "^2.0.1" + readable-stream "~1.0.31" + "nopt@2 || 3", nopt@~3.0.6: version "3.0.6" resolved "https://registry.yarnpkg.com/nopt/-/nopt-3.0.6.tgz#c6465dbf08abcd4db359317f79ac68a646b28ff9" @@ -10021,7 +10043,7 @@ read@^1.0.7: dependencies: mute-stream "~0.0.4" -readable-stream@1.0, "readable-stream@>=1.0.33-1 <1.1.0-0": +readable-stream@1.0, "readable-stream@>=1.0.33-1 <1.1.0-0", readable-stream@~1.0.31: version "1.0.34" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.0.34.tgz#125820e34bc842d2f2aaafafe4c2916ee32c157c" dependencies: @@ -12798,6 +12820,10 @@ vali-date@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/vali-date/-/vali-date-1.0.0.tgz#1b904a59609fb328ef078138420934f6b86709a6" +valid-url@^1.0.9: + version "1.0.9" + resolved "https://registry.yarnpkg.com/valid-url/-/valid-url-1.0.9.tgz#1c14479b40f1397a75782f115e4086447433a200" + validate-npm-package-license@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz#2804babe712ad3379459acfbe24746ab2c303fbc"