Skip to content

Commit

Permalink
Merge pull request #55 from kentcdodds/pr/script-cleanup
Browse files Browse the repository at this point in the history
improve npm scripts and add more builds
  • Loading branch information
xymostech committed Apr 17, 2016
2 parents 44f2ce7 + 0836bcd commit 9f286ed
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dist/aphrodite.js -diff
dist/* -diff
17 changes: 14 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,18 @@
"scripts": {
"test": "mocha --compilers js:babel/register tests",
"test:watch": "mocha --watch --compilers js:babel/register tests",
"build": "webpack --config webpack.config.js",
"build:watch": "webpack --watch --config webpack.config.js",
"prepublish": "babel -d lib/ src"
"prebuild": "rimraf dist lib",
"build": "npm-run-all --parallel build:*",
"watch:build": "npm-run-all --parallel watch:build:*",
"build:main": "babel -d lib/ src",
"watch:build:main": "npm run build:main -- --watch",
"build:umd": "webpack --output-library-target umd --output-library aphrodite --output-filename aphrodite.umd.js --devtool source-map",
"watch:build:umd": "npm run build:umd -- --watch",
"build:umdmin": "webpack --output-library-target umd --output-library aphrodite --output-filename aphrodite.umd.min.js -p --devtool source-map",
"watch:build:umdmin": "npm run build:umdmin -- --watch",
"build:commonjs": "webpack --output-library-target commonjs2 --output-filename aphrodite.js",
"watch:build:commonjs": "npm run build:commonjs -- --watch",
"release": "npm run build && npm publish"
},
"repository": {
"type": "git",
Expand All @@ -32,6 +41,8 @@
"chai": "^3.3.0",
"jsdom": "^6.5.1",
"mocha": "^2.3.3",
"npm-run-all": "^1.7.0",
"rimraf": "^2.5.2",
"webpack": "^1.12.2"
},
"dependencies": {
Expand Down
4 changes: 1 addition & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ module.exports = {
'./src/index'
],
output: {
path: path.join(__dirname, 'dist'),
filename: 'aphrodite.js',
libraryTarget: "commonjs2"
path: path.join(__dirname, 'dist')
},
module: {
loaders: [{
Expand Down

0 comments on commit 9f286ed

Please sign in to comment.