-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #124 from jchip/master
Sync internal archetypes for src/lib mode
- Loading branch information
Showing
98 changed files
with
1,267 additions
and
546 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require("electrode-archetype-react-app/config/archetype"); |
23 changes: 23 additions & 0 deletions
23
packages/electrode-archetype-react-app-dev/config/babel/babelrc-client
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"presets": [ | ||
"es2015", | ||
"es2015-loose", | ||
"react" | ||
], | ||
"plugins": [ | ||
"babel-plugin-transform-object-rest-spread", | ||
["babel-plugin-react-intl", { | ||
"messagesDir": "./tmp/messages/", | ||
"enforceDescriptions": true | ||
}], | ||
"lodash", | ||
"transform-runtime" | ||
], | ||
"env": { | ||
"production": { | ||
"plugins": [ | ||
"babel-plugin-transform-react-constant-elements" | ||
] | ||
} | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
packages/electrode-archetype-react-app-dev/config/babel/babelrc-server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"presets": [ | ||
"es2015-node" | ||
] | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
packages/electrode-archetype-react-app-dev/config/mocha/mocha.opts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--require electrode-archetype-react-app-dev/config/mocha/setup.js | ||
--reporter spec | ||
--recursive | ||
--ui bdd |
File renamed without changes.
10 changes: 5 additions & 5 deletions
10
...-app/config/webpack/add-dll-references.js → ...-dev/config/webpack/add-dll-references.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
packages/electrode-archetype-react-app-dev/config/webpack/partial/babel.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
"use strict"; | ||
|
||
var mergeWebpackConfig = require("webpack-partial").default; | ||
var archetype = require("../../archetype"); | ||
var AppMode = archetype.AppMode; | ||
var Path = archetype.Path; | ||
|
||
module.exports = function (babel) { | ||
var babelExcludeRegex = new RegExp(`(node_modules|\b${Path.join(AppMode.src.client, "vendor")}\b)`); | ||
return function (config) { | ||
return mergeWebpackConfig(config, { | ||
module: { | ||
loaders: [{ | ||
name: "babel", | ||
test: /\.jsx?$/, | ||
exclude: babelExcludeRegex, | ||
// NOTE: webpack.config.hot.js inserts "react-hot" into loaders array | ||
loader: "babel-loader", | ||
query: babel | ||
}, | ||
{ | ||
name: "json", | ||
test: /\.json$/, | ||
loader: "json" | ||
}] | ||
} | ||
}); | ||
}; | ||
}; |
5 changes: 2 additions & 3 deletions
5
...ct-app/config/webpack/partial/coverage.js → ...pp-dev/config/webpack/partial/coverage.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 7 additions & 6 deletions
13
...e-react-app/config/webpack/partial/dev.js → ...act-app-dev/config/webpack/partial/dev.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
packages/electrode-archetype-react-app-dev/config/webpack/partial/fail.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
"use strict"; | ||
|
||
var mergeWebpackConfig = require("webpack-partial").default; | ||
var FailPlugin = require("webpack-fail-plugin"); | ||
|
||
module.exports = function () { | ||
return function (config) { | ||
return mergeWebpackConfig(config, { | ||
plugins: [ | ||
FailPlugin | ||
] | ||
}); | ||
}; | ||
}; |
7 changes: 3 additions & 4 deletions
7
...react-app/config/webpack/partial/fonts.js → ...t-app-dev/config/webpack/partial/fonts.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...e-react-app/config/webpack/partial/hot.js → ...act-app-dev/config/webpack/partial/hot.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.