Skip to content

Commit

Permalink
Merge pull request #267 from gaearon/npm-tasks
Browse files Browse the repository at this point in the history
npm tasks
  • Loading branch information
gaearon committed Jul 22, 2015
2 parents 3d252c3 + ed3edea commit b51338f
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 43 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
node_modules
npm-debug.log
.DS_Store
*.log
node_modules
dist
lib
coverage
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.DS_Store
*.log
examples
test
coverage
21 changes: 13 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,19 @@
"description": "Atomic Flux with hot reloading",
"main": "lib/index.js",
"scripts": {
"browser": "scripts/browser",
"build": "scripts/build",
"clean": "scripts/clean",
"lint": "scripts/lint",
"prepublish": "scripts/prepublish",
"test": "scripts/test",
"test:watch": "scripts/test-watch",
"test:cov": "scripts/test-cov"
"clean": "rimraf lib dist coverage",
"lint": "eslint src test examples",
"test": "NODE_ENV=test mocha --compilers js:babel/register --recursive",
"test:watch": "npm test -- --watch",
"test:cov": "babel-node ./node_modules/.bin/isparta cover ./node_modules/.bin/_mocha -- --recursive",
"check": "npm run lint && npm run test",
"build:lib": "babel src --out-dir lib",
"build:umd": "webpack src/index.js dist/redux.js && NODE_ENV=production webpack src/index.js dist/redux.min.js",
"build": "npm run build:lib && npm run build:umd",
"preversion": "npm run clean && npm run check",
"version": "npm run build",
"postversion": "git push && git push --tags && npm run clean",
"prepublish": "npm run clean && npm run build"
},
"repository": {
"type": "git",
Expand Down
8 changes: 0 additions & 8 deletions scripts/browser

This file was deleted.

4 changes: 0 additions & 4 deletions scripts/build

This file was deleted.

3 changes: 0 additions & 3 deletions scripts/clean

This file was deleted.

3 changes: 0 additions & 3 deletions scripts/lint

This file was deleted.

6 changes: 0 additions & 6 deletions scripts/prepublish

This file was deleted.

3 changes: 0 additions & 3 deletions scripts/test

This file was deleted.

3 changes: 0 additions & 3 deletions scripts/test-cov

This file was deleted.

3 changes: 0 additions & 3 deletions scripts/test-watch

This file was deleted.

0 comments on commit b51338f

Please sign in to comment.