Skip to content

Commit

Permalink
Initial
Browse files Browse the repository at this point in the history
  • Loading branch information
arthanzel committed Mar 8, 2018
0 parents commit 2873e82
Show file tree
Hide file tree
Showing 10 changed files with 9,254 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"presets": ["env"],
"plugins": ["transform-es2015-modules-commonjs"]
}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.idea/
dist/
node_modules/

*.iml
18 changes: 18 additions & 0 deletions config/default.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"integer": 3,
"decimal": 2.71,
"string": "Hello",
"true": true,
"false": false,
"null": null,
"array": [1, true, "three"],
"complexArray": [1, [-1, -2, [-3, { "value": -3.5 }], -4], { "answer": 42, "array": [{ "one": 1 }, 2, 3] }],
"object": {
"nestedInteger": 10,
"nestedString": "Nested",
"nestedObject": {
"doublyNestedNull": null,
"doublyNestedArray": [ { "deepObject": true, "deepArray": [7, 8, 9] }, 10.0, { "deepDecimal": 3.14 } ]
}
}
}
16 changes: 16 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
'use strict';

let plugin;
try {
plugin = require('./dist/ConfigWebpackPlugin').default;
} catch (err) {
if (err.code === 'MODULE_NOT_FOUND') {
require('babel-register');
plugin = require('./src/ConfigWebpackPlugin').default;
} else {
console.log(err);
process.exit(1);
}
}

module.exports = plugin;
Loading

0 comments on commit 2873e82

Please sign in to comment.