Skip to content

Commit

Permalink
Expand locale merge code
Browse files Browse the repository at this point in the history
  • Loading branch information
icebob committed May 30, 2016
1 parent a876346 commit 532db27
Show file tree
Hide file tree
Showing 34 changed files with 15,044 additions and 3,764 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
[![devDependency Status](https://david-dm.org/icebob/fakerator/dev-status.svg)](https://david-dm.org/icebob/fakerator#info=devDependencies)
[![Downloads](https://img.shields.io/npm/dt/fakerator.svg?maxAge=2592000)](https://www.npmjs.com/package/fakerator)

fakerator was inspired by and has used data definitions from [Marak's faker.js library](https://github.com/Marak/faker.js)

## Demo
[JSFiddle test page](https://jsfiddle.net/icebob/wngcbpkq/)

Expand Down
2 changes: 1 addition & 1 deletion config/webpack.base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ 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'),
entry: path.resolve('lib', 'index.js'),
output: {
path: path.resolve('dist'),
filename: "fakerator.js",
Expand Down
16 changes: 14 additions & 2 deletions config/webpack.build.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var webpack = require("webpack");
var version = require("../package.json").version;
var path = require("path");
var del = require("del");

var merge = require("webpack-merge");
var wpBaseConfig = require("./webpack.base.config");
Expand All @@ -19,6 +20,17 @@ module.exports = [
warnings: false
}
})
]
]
}),
merge(wpBaseConfig, {
entry: path.resolve('lib', 'locales', 'locale-build.js'),
output: {
path: "./dist/locales",
filename: "hu-HU.js",
library: "Fakerator",
libraryTarget: "umd"
}
})
];

del.sync(["./dist"]);
Loading

0 comments on commit 532db27

Please sign in to comment.