Skip to content

Commit

Permalink
Move gatsby-module-loader to it's own package (#1901)
Browse files Browse the repository at this point in the history
* Move gatsby-module-loader to it's own package

* Add watch script + babelrc
  • Loading branch information
Daniel Farrell authored and KyleAMathews committed Aug 24, 2017
1 parent 71c3596 commit d57b645
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 13 deletions.
6 changes: 6 additions & 0 deletions packages/gatsby-module-loader/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"presets": [
["../../.babelrc.js", { "browser": true }]
]
}

Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
/*.js
2 changes: 2 additions & 0 deletions packages/gatsby-module-loader/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
src
flow-typed
File renamed without changes.
19 changes: 19 additions & 0 deletions packages/gatsby-module-loader/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "gatsby-module-loader",
"version": "1.0.0",
"description": "_Based on https://github.com/webpack/bundle-loader and https://github.com/NekR/async-module-loader_",
"main": "index.js",
"scripts": {
"build": "babel src --out-dir . --ignore __tests__",
"watch": "babel -w src --out-dir . --ignore __tests__",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
"license": "MIT",
"dependencies": {
"loader-utils": "^0.2.16"
},
"devDependencies": {
"babel-cli": "^6.24.1"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/gatsby/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"friendly-errors-webpack-plugin": "^1.6.1",
"front-matter": "^2.1.0",
"fs-extra": "^3.0.1",
"gatsby-module-loader": "^1.0.0",
"glob": "^7.1.1",
"graphql": "^0.10.3",
"graphql-relay": "^0.5.1",
Expand All @@ -65,7 +66,6 @@
"json-loader": "^0.5.2",
"json-stringify-safe": "^5.0.1",
"json5": "^0.5.0",
"loader-utils": "^0.2.16",
"lodash": "^4.17.4",
"lodash-id": "^0.14.0",
"lowdb": "^0.16.2",
Expand Down
11 changes: 0 additions & 11 deletions packages/gatsby/src/loaders/gatsby-module-loader/package.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/gatsby/src/utils/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const { store } = require(`../redux`)
const debug = require(`debug`)(`gatsby:webpack-config`)
const WebpackMD5Hash = require(`webpack-md5-hash`)
const ChunkManifestPlugin = require(`chunk-manifest-webpack-plugin`)
const GatsbyModulePlugin = require(`../loaders/gatsby-module-loader/plugin`)
const GatsbyModulePlugin = require(`gatsby-module-loader/plugin`)
const genBabelConfig = require(`./babel-config`)
const { withBasePath } = require(`./path`)
const HashedChunkIdsPlugin = require(`./hashed-chunk-ids-plugin`)
Expand Down

0 comments on commit d57b645

Please sign in to comment.