Skip to content

Commit

Permalink
Merge pull request #18 from js-accounts/feat/umd
Browse files Browse the repository at this point in the history
added umd build
  • Loading branch information
dotansimha authored and Aetherall committed Mar 13, 2018
1 parent b632c21 commit adae171
Show file tree
Hide file tree
Showing 4 changed files with 252 additions and 7 deletions.
1 change: 1 addition & 0 deletions packages/accounts-mongo/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules/
coverage/
npm-debug.log
.idea
lib-es6
19 changes: 14 additions & 5 deletions packages/accounts-mongo/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{
"name": "@accounts/mongo",
"version": "0.0.6",
"version": "0.0.7",
"description": "MongoDB adaptor for accounts",
"main": "lib/index.js",
"jsnext:main": "lib-es6/index.js",
"scripts": {
"start": "webpack -p --config --progress --watch",
"compile": "babel ./src --out-dir ./lib --ignore *.spec.js",
"compile": "npm run compile:es6 && npm run compile:umd",
"compile:es6": "babel ./src --out-dir ./lib-es6 --ignore *.spec.js",
"compile:umd": "webpack",
"flow": "flow; test $? -eq 0 -o $? -eq 2",
"flow:check": "flow check",
"prepare": "yarn compile",
Expand Down Expand Up @@ -38,7 +41,9 @@
"babel-plugin-transform-async-to-generator": "^6.22.0",
"babel-plugin-transform-flow-strip-types": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.22.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-es2015": "^6.22.0",
"babel-preset-stage-0": "^6.22.0",
"coveralls": "^2.11.14",
"eslint": "^3.14.1",
"eslint-config-airbnb": "^14.0.0",
Expand All @@ -50,11 +55,15 @@
"flow-bin": "^0.38.0",
"jest": "^18.1.0",
"webpack": "^1.14.0",
"webpack-node-externals": "^1.5.4"
"webpack-node-externals": "^1.5.4",
"@accounts/common": "^0.0.9",
"@accounts/server": "^0.0.9"
},
"peerDependencies": {
"@accounts/common": "^0.0.9",
"@accounts/server": "^0.0.9"
},
"dependencies": {
"@accounts/common": "^0.0.2",
"@accounts/server": "^0.0.2",
"lodash": "^4.17.4",
"mongodb": "^2.2.22"
}
Expand Down
8 changes: 8 additions & 0 deletions packages/accounts-mongo/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ module.exports = {
test: /\.js$/,
loader: 'babel',
exclude: /node_modules/,
query: {
babelrc: false,
presets: ['es2015', 'stage-0'],
plugins: [
'transform-flow-strip-types',
'transform-runtime',
],
}
},
],
},
Expand Down
Loading

0 comments on commit adae171

Please sign in to comment.