Skip to content

Commit

Permalink
use workspaces (again) (gatsbyjs#2701)
Browse files Browse the repository at this point in the history
* use workspaces

* try with netlify.toml

* why are the docs so sparse...
  • Loading branch information
jquense authored and KyleAMathews committed Oct 31, 2017
1 parent 1ab44ff commit 2694cdc
Show file tree
Hide file tree
Showing 8 changed files with 90 additions and 91 deletions.
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"packages/*"
],
"version": "independent",
"hoist": true
"useWorkspaces": true
}
4 changes: 4 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[build.environment]
NODE_VERSION = "8"
YARN_VERSION = "1.2.1"
YARN_FLAGS = "--pure-lockfile"
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,11 @@
"yarn": "^1.0.2"
},
"private": true,
"engines": {
"yarn": "^1.0.2"
},
"scripts": {
"bootstrap": "yarn && npm run check-versions && lerna bootstrap",
"bootstrap": "yarn && npm run check-versions && lerna run prepublish",
"check-versions": "babel-node scripts/check-versions.js",
"format": "npm run format-packages && npm run format-cache-dir && npm run format-www && npm run format-examples && npm run format-scripts",
"format-cache-dir": "prettier-eslint --write \"packages/gatsby/cache-dir/*.js\"",
Expand All @@ -62,5 +65,8 @@
"test:watch": "jest --watch",
"test_bkup": "npm run lint && npm run test-node && npm run test-integration",
"watch": "lerna run watch --no-sort --stream --concurrency 999"
}
},
"workspaces": [
"packages/*"
]
}
Empty file modified packages/gatsby-cli/bin.js
100644 → 100755
Empty file.
12 changes: 12 additions & 0 deletions packages/gatsby-source-filesystem/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"use strict";

var fs = require(`fs-extra`);

function loadNodeContent(fileNode) {
return fs.readFile(fileNode.absolutePath, `utf-8`);
}

exports.createFilePath = require(`./create-file-path`);
exports.createRemoteFileNode = require(`./create-remote-file-node`);

exports.loadNodeContent = loadNodeContent;
4 changes: 0 additions & 4 deletions scripts/publish-site.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
echo "=== Building ES5 version of Gatsby"
rm -r node_modules yarn.lock
NODE_ENV=development yarn bootstrap
./node_modules/.bin/lerna run build

yarn global add gatsby-dev-cli
gatsby-dev --set-path-to-repo .
Expand Down
148 changes: 65 additions & 83 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,7 @@ ajv@^4.9.1:
co "^4.6.0"
json-stable-stringify "^1.0.1"

ajv@^5.0.0:
version "5.3.0"
resolved "https://registry.yarnpkg.com/ajv/-/ajv-5.3.0.tgz#4414ff74a50879c208ee5fdc826e32c303549eda"
dependencies:
co "^4.6.0"
fast-deep-equal "^1.0.0"
fast-json-stable-stringify "^2.0.0"
json-schema-traverse "^0.3.0"

ajv@^5.1.0, ajv@^5.2.0, ajv@^5.2.3:
ajv@^5.0.0, ajv@^5.1.0, ajv@^5.2.0, ajv@^5.2.3:
version "5.2.3"
resolved "https://registry.yarnpkg.com/ajv/-/ajv-5.2.3.tgz#c06f598778c44c6b161abafe3466b81ad1814ed2"
dependencies:
Expand Down Expand Up @@ -432,14 +423,14 @@ aws4@^1.2.1, aws4@^1.6.0:
version "1.6.0"
resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.6.0.tgz#83ef5ca860b2b32e4a0deedee8c771b9db57471e"

axios@^0.16.1:
axios@^0.16.1, axios@^0.16.2:
version "0.16.2"
resolved "https://registry.yarnpkg.com/axios/-/axios-0.16.2.tgz#ba4f92f17167dfbab40983785454b9ac149c3c6d"
dependencies:
follow-redirects "^1.2.3"
is-buffer "^1.1.5"

"axios@github:contentful/axios#fix/https-via-http-proxy":
axios@contentful/axios#fix/https-via-http-proxy:
version "0.16.2"
resolved "https://codeload.github.com/contentful/axios/tar.gz/e9a9c62ce02115f7a4d7f197ba43362dcf0ea3d0"
dependencies:
Expand Down Expand Up @@ -1587,7 +1578,7 @@ bin-version@^1.0.0:
dependencies:
find-versions "^1.0.0"

bin-wrapper@^3.0.0:
bin-wrapper@^3.0.0, bin-wrapper@^3.0.1:
version "3.0.2"
resolved "https://registry.yarnpkg.com/bin-wrapper/-/bin-wrapper-3.0.2.tgz#67d3306262e4b1a5f2f88ee23464f6a655677aeb"
dependencies:
Expand Down Expand Up @@ -2017,8 +2008,8 @@ caniuse-db@^1.0.30000529, caniuse-db@^1.0.30000634, caniuse-db@^1.0.30000639:
resolved "https://registry.yarnpkg.com/caniuse-db/-/caniuse-db-1.0.30000750.tgz#3f1f85c92c9134edda735695e369d7e176752b75"

caniuse-lite@^1.0.30000718:
version "1.0.30000744"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000744.tgz#860fa5c83ba34fe619397d607f30bb474821671b"
version "1.0.30000740"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000740.tgz#f2c4c04d6564eb812e61006841700ad557f6f973"

capture-stack-trace@^1.0.0:
version "1.0.0"
Expand Down Expand Up @@ -2871,7 +2862,7 @@ 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"

core-js@^2.4.0, core-js@^2.4.1, core-js@^2.5.0:
core-js@^2.4.0, core-js@^2.4.1, core-js@^2.5.0, core-js@^2.5.1:
version "2.5.1"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.1.tgz#ae6874dc66937789b80754ff5428df66819ca50b"

Expand Down Expand Up @@ -3173,8 +3164,8 @@ [email protected], "cssom@>= 0.3.2 < 0.4.0":
cssom "0.3.x"

csvtojson@^1.1:
version "1.1.9"
resolved "https://registry.yarnpkg.com/csvtojson/-/csvtojson-1.1.9.tgz#e641ae72f7bc2fa3f9aaf127e021fc89447c1cd1"
version "1.1.8"
resolved "https://registry.yarnpkg.com/csvtojson/-/csvtojson-1.1.8.tgz#e64e5e98e65fde7e6fd01436cb5de0ac7d1dda70"
dependencies:
lodash "^4.17.3"
strip-bom "1.0.0"
Expand All @@ -3185,6 +3176,14 @@ currently-unhandled@^0.4.1:
dependencies:
array-find-index "^1.0.1"

cwebp-bin@^3.1.0:
version "3.2.0"
resolved "https://registry.yarnpkg.com/cwebp-bin/-/cwebp-bin-3.2.0.tgz#ae02df453d8c15341b1d8d499a5226bcf3bf4a6f"
dependencies:
bin-build "^2.0.0"
bin-wrapper "^3.0.1"
logalot "^2.0.0"

d@1:
version "1.0.0"
resolved "https://registry.yarnpkg.com/d/-/d-1.0.0.tgz#754bb5bfe55451da69a58b94d45f4c5b0462d58f"
Expand Down Expand Up @@ -3744,11 +3743,7 @@ ejs@^2.4.1:
version "2.5.7"
resolved "https://registry.yarnpkg.com/ejs/-/ejs-2.5.7.tgz#cc872c168880ae3c7189762fd5ffc00896c9518a"

electron-to-chromium@^1.2.7:
version "1.3.27"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.27.tgz#78ecb8a399066187bb374eede35d9c70565a803d"

electron-to-chromium@^1.3.18:
electron-to-chromium@^1.2.7, electron-to-chromium@^1.3.18:
version "1.3.24"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.24.tgz#9b7b88bb05ceb9fa016a177833cc2dde388f21b6"

Expand Down Expand Up @@ -4003,8 +3998,8 @@ eslint-plugin-flow-vars@^0.5.0:
resolved "https://registry.yarnpkg.com/eslint-plugin-flow-vars/-/eslint-plugin-flow-vars-0.5.0.tgz#a7fb78fd873c86e0e5839df3b3c90d47bc68c6d2"

eslint-plugin-flowtype@^2.35.0:
version "2.39.1"
resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-2.39.1.tgz#b5624622a0388bcd969f4351131232dcb9649cd5"
version "2.37.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-2.37.0.tgz#2b09694deea6efdd8354eccd328db134b2d8b6d5"
dependencies:
lodash "^4.15.0"

Expand Down Expand Up @@ -4300,7 +4295,7 @@ express-graphql@^0.6.6:
http-errors "^1.3.0"
raw-body "^2.1.0"

express@^4.13.3:
express@^4.13.3, express@^4.14.0:
version "4.16.1"
resolved "https://registry.yarnpkg.com/express/-/express-4.16.1.tgz#6b33b560183c9b253b7b62144df33a4654ac9ed0"
dependencies:
Expand Down Expand Up @@ -4335,41 +4330,6 @@ express@^4.13.3:
utils-merge "1.0.1"
vary "~1.1.2"

express@^4.14.0:
version "4.16.2"
resolved "https://registry.yarnpkg.com/express/-/express-4.16.2.tgz#e35c6dfe2d64b7dca0a5cd4f21781be3299e076c"
dependencies:
accepts "~1.3.4"
array-flatten "1.1.1"
body-parser "1.18.2"
content-disposition "0.5.2"
content-type "~1.0.4"
cookie "0.3.1"
cookie-signature "1.0.6"
debug "2.6.9"
depd "~1.1.1"
encodeurl "~1.0.1"
escape-html "~1.0.3"
etag "~1.8.1"
finalhandler "1.1.0"
fresh "0.5.2"
merge-descriptors "1.0.1"
methods "~1.1.2"
on-finished "~2.3.0"
parseurl "~1.3.2"
path-to-regexp "0.1.7"
proxy-addr "~2.0.2"
qs "6.5.1"
range-parser "~1.2.0"
safe-buffer "5.1.1"
send "0.16.1"
serve-static "1.13.1"
setprototypeof "1.1.0"
statuses "~1.3.1"
type-is "~1.6.15"
utils-merge "1.0.1"
vary "~1.1.2"

extend-shallow@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f"
Expand Down Expand Up @@ -4824,7 +4784,7 @@ [email protected]:
graceful-fs "^4.1.2"
jsonfile "^2.1.0"

fs-extra@^4.0.1:
fs-extra@^4.0.1, fs-extra@^4.0.2:
version "4.0.2"
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-4.0.2.tgz#f91704c53d1b461f893452b0c307d9997647ab6b"
dependencies:
Expand Down Expand Up @@ -5741,14 +5701,14 @@ ignore@^3.2.7, ignore@^3.3.3:
version "3.3.5"
resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.5.tgz#c4e715455f6073a8d7e5dae72d2fc9d71663dba6"

image-size@^0.6.0:
version "0.6.1"
resolved "https://registry.yarnpkg.com/image-size/-/image-size-0.6.1.tgz#98122a562d59dcc097ef1b2c8191866eb8f5d663"

image-size@~0.5.0:
image-size@^0.5.1, image-size@~0.5.0:
version "0.5.5"
resolved "https://registry.yarnpkg.com/image-size/-/image-size-0.5.5.tgz#09dfd4ab9d20e29eb1c3e80b8990378df9e3cb9c"

image-size@^0.6.0, image-size@^0.6.1:
version "0.6.1"
resolved "https://registry.yarnpkg.com/image-size/-/image-size-0.6.1.tgz#98122a562d59dcc097ef1b2c8191866eb8f5d663"

imagemin-pngquant@^5.0.0:
version "5.0.1"
resolved "https://registry.yarnpkg.com/imagemin-pngquant/-/imagemin-pngquant-5.0.1.tgz#d8a329da553afa226b11ce62debe0b7e37b439e6"
Expand All @@ -5757,6 +5717,14 @@ imagemin-pngquant@^5.0.0:
is-png "^1.0.0"
pngquant-bin "^3.0.0"

imagemin-webp@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/imagemin-webp/-/imagemin-webp-4.0.0.tgz#a2caf32b5f52ad21b949a6fed8efc901daf7249d"
dependencies:
cwebp-bin "^3.1.0"
exec-buffer "^3.0.0"
is-cwebp-readable "^1.0.0"

imagemin@^5.2.2:
version "5.3.1"
resolved "https://registry.yarnpkg.com/imagemin/-/imagemin-5.3.1.tgz#f19c2eee1e71ba6c6558c515f9fc96680189a6d4"
Expand Down Expand Up @@ -5993,6 +5961,12 @@ is-ci@^1.0.10:
dependencies:
ci-info "^1.0.0"

is-cwebp-readable@^1.0.0:
version "1.0.3"
resolved "https://registry.yarnpkg.com/is-cwebp-readable/-/is-cwebp-readable-1.0.3.tgz#9a8fde2bed77f3417ae9371258c58e2ec3285118"
dependencies:
file-type "^3.1.0"

is-data-descriptor@^0.1.4:
version "0.1.4"
resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56"
Expand Down Expand Up @@ -7934,10 +7908,6 @@ mime-db@~1.25.0:
version "1.25.0"
resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.25.0.tgz#c18dbd7c73a5dbf6f44a024dc0d165a1e7b1c392"

mime-db@~1.30.0:
version "1.30.0"
resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.30.0.tgz#74c643da2dd9d6a45399963465b26d5ca7d71f01"

[email protected]:
version "2.1.13"
resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.13.tgz#e07aaa9c6c6b9a7ca3012c69003ad25a39e92a88"
Expand Down Expand Up @@ -9706,8 +9676,8 @@ prettier-eslint@^6.4.3:
require-relative "^0.8.7"

prettier@^1.6.0, prettier@^1.7.0:
version "1.7.4"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.7.4.tgz#5e8624ae9363c80f95ec644584ecdf55d74f93fa"
version "1.7.3"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.7.3.tgz#8e6974725273914b1c47439959dd3d3ba53664b6"

pretty-bytes@^4.0.2:
version "4.0.2"
Expand Down Expand Up @@ -9781,7 +9751,7 @@ promise@^7.1.1:
dependencies:
asap "~2.0.3"

prop-types@^15.5.10, prop-types@^15.5.4, prop-types@^15.5.8:
prop-types@^15.5.10, prop-types@^15.5.4, prop-types@^15.5.8, prop-types@^15.6.0:
version "15.6.0"
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.6.0.tgz#ceaf083022fc46b4a35f69e13ef75aed0d639856"
dependencies:
Expand Down Expand Up @@ -9977,6 +9947,15 @@ react-dom@^15.6.0:
object-assign "^4.1.0"
prop-types "^15.5.10"

react-dom@^16.0.0:
version "16.0.0"
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.0.0.tgz#9cc3079c3dcd70d4c6e01b84aab2a7e34c303f58"
dependencies:
fbjs "^0.8.16"
loose-envify "^1.1.0"
object-assign "^4.1.1"
prop-types "^15.6.0"

react-helmet@^5.1.3:
version "5.2.0"
resolved "https://registry.yarnpkg.com/react-helmet/-/react-helmet-5.2.0.tgz#a81811df21313a6d55c5f058c4aeba5d6f3d97a7"
Expand Down Expand Up @@ -10012,7 +9991,7 @@ react-proxy@^3.0.0-alpha.0:
dependencies:
lodash "^4.6.1"

react-router-dom@^4.1.1:
react-router-dom@^4.1.1, react-router-dom@^4.2.2:
version "4.2.2"
resolved "https://registry.yarnpkg.com/react-router-dom/-/react-router-dom-4.2.2.tgz#c8a81df3adc58bba8a76782e946cbd4eae649b8d"
dependencies:
Expand Down Expand Up @@ -10056,6 +10035,15 @@ react@^15.5.4, react@^15.6.0:
object-assign "^4.1.0"
prop-types "^15.5.10"

react@^16.0.0:
version "16.0.0"
resolved "https://registry.yarnpkg.com/react/-/react-16.0.0.tgz#ce7df8f1941b036f02b2cca9dbd0cb1f0e855e2d"
dependencies:
fbjs "^0.8.16"
loose-envify "^1.1.0"
object-assign "^4.1.1"
prop-types "^15.6.0"

read-all-stream@^3.0.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/read-all-stream/-/read-all-stream-3.1.0.tgz#35c3e177f2078ef789ee4bfafa4373074eaef4fa"
Expand Down Expand Up @@ -10517,7 +10505,7 @@ remark@^5.0.1:
remark-stringify "^1.1.0"
unified "^4.1.1"

remark@^7.0.1:
remark@^7.0.0, remark@^7.0.1:
version "7.0.1"
resolved "https://registry.yarnpkg.com/remark/-/remark-7.0.1.tgz#a5de4dacfabf0f60a49826ef24c479807f904bfb"
dependencies:
Expand Down Expand Up @@ -10750,13 +10738,7 @@ [email protected]:
version "1.1.7"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b"

resolve@^1.1.3:
version "1.5.0"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.5.0.tgz#1f09acce796c9a762579f31b2c1cc4c3cddf9f36"
dependencies:
path-parse "^1.0.5"

resolve@^1.1.6, resolve@^1.1.7, resolve@^1.2.0, resolve@^1.3.2:
resolve@^1.1.3, resolve@^1.1.6, resolve@^1.1.7, resolve@^1.2.0, resolve@^1.3.2:
version "1.4.0"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.4.0.tgz#a75be01c53da25d934a98ebd0e4c4a7312f92a86"
dependencies:
Expand Down

0 comments on commit 2694cdc

Please sign in to comment.