-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
7,785 additions
and
777 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
module.exports = { | ||
root: true, | ||
"env": { | ||
"browser": true, | ||
"commonjs": true, | ||
"es6": true, | ||
"jquery": true | ||
}, | ||
"extends": "eslint:recommended", | ||
"parserOptions": { | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"indent": [ | ||
"warn", | ||
"tab" | ||
], | ||
"quotes": [ | ||
"warn", | ||
"double" | ||
], | ||
"semi": [ | ||
"error", | ||
"always" | ||
], | ||
"no-var": [ | ||
"error" | ||
], | ||
"no-console": [ | ||
"off" | ||
], | ||
"no-unused-vars": [ | ||
"warn" | ||
] | ||
} | ||
}; |
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,47 @@ | ||
var path = require("path"); | ||
var webpack = require("webpack"); | ||
var sourceDir = path.resolve("lib"); | ||
|
||
var version = require("../package.json").version; | ||
var banner = "/**\n" + " * fakerator v" + version + "\n" + " * https://github.com/icebob/fakerator\n" + " * Released under the MIT License.\n" + " */\n"; | ||
|
||
module.exports = { | ||
entry: path.resolve('lib', 'fakerator.js'), | ||
output: { | ||
path: path.resolve('dist'), | ||
filename: "fakerator.js", | ||
library: "Fakerator", | ||
libraryTarget: "umd" | ||
}, | ||
|
||
plugins: [ | ||
new webpack.optimize.DedupePlugin(), | ||
new webpack.DefinePlugin({ | ||
'process.env' : { | ||
NODE_ENV : JSON.stringify('production') | ||
} | ||
}), | ||
new webpack.BannerPlugin(banner, { | ||
raw: true | ||
}) | ||
], | ||
|
||
resolve: { | ||
alias: { | ||
'lib': sourceDir, | ||
'vendor': path.resolve("vendor"), | ||
'locales': path.join(sourceDir, "locales") | ||
} | ||
}, | ||
|
||
|
||
module: { | ||
loaders: [ | ||
{ | ||
"test": /\.js?$/, | ||
"exclude": /node_modules/, | ||
"loader": "babel" | ||
} | ||
] | ||
} | ||
}; |
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,24 @@ | ||
var webpack = require("webpack"); | ||
var version = require("../package.json").version; | ||
|
||
var merge = require("webpack-merge"); | ||
var wpBaseConfig = require("./webpack.base.config"); | ||
|
||
module.exports = [ | ||
wpBaseConfig, | ||
merge(wpBaseConfig, { | ||
output: { | ||
path: "./dist", | ||
filename: "fakerator.min.js", | ||
library: "Fakerator", | ||
libraryTarget: "umd" | ||
}, | ||
plugins: [ | ||
new webpack.optimize.UglifyJsPlugin({ | ||
compress: { | ||
warnings: false | ||
} | ||
}) | ||
] | ||
}) | ||
]; |
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,17 @@ | ||
var webpack = require("webpack"); | ||
var version = require("../package.json").version; | ||
|
||
var merge = require("webpack-merge"); | ||
var wpBaseConfig = require("./webpack.base.config"); | ||
|
||
module.exports = [ | ||
merge(wpBaseConfig, { | ||
devtool: '#inline-source-map', | ||
output: { | ||
path: "./demo", | ||
filename: "fakerator.js", | ||
library: "Fakerator", | ||
libraryTarget: "umd" | ||
} | ||
}) | ||
]; |
This file was deleted.
Oops, something went wrong.
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,22 @@ | ||
var webpack = require("webpack"); | ||
var version = require("../package.json").version; | ||
|
||
var merge = require("webpack-merge"); | ||
var wpBaseConfig = require("./webpack.base.config"); | ||
|
||
module.exports = merge(wpBaseConfig, { | ||
entry: null, | ||
output: null, | ||
devtool: '#inline-source-map', | ||
preLoaders: [ | ||
{ | ||
test: /\.js$/, | ||
loader: 'isparta', | ||
include: './lib', | ||
exclude: /node_modules/ | ||
} | ||
] | ||
}); | ||
|
||
delete module.exports.entry; | ||
delete module.exports.output; |
Oops, something went wrong.