Skip to content

Commit

Permalink
0.4.1 release with much better build system
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-zozol committed May 23, 2017
1 parent d58147c commit e3a5683
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#Good read: https://booker.codes/how-to-build-and-publish-es6-npm-modules-today-with-babel/
# from http://stackoverflow.com/a/29932318/968988
# Blacklist files/folders in same directory as the .gitignore file
/*
Expand All @@ -7,7 +8,8 @@
!README.md
!documentation
!dist

!src
!build
# Ignore all files named .DS_Store or ending with .log
**/.DS_Store
**.log
2 changes: 1 addition & 1 deletion integration-npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "used to test npm publications",
"main": "index.js",
"dependencies": {
"parser-combinator": "0.4.0-prerelease"
"parser-combinator": "0.4.1"
},
"devDependencies": {},
"scripts": {
Expand Down
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "parser-combinator",
"description": "Parser combinators",
"license": "LGPL-2.1",
"version": "0.4.0",
"version": "0.4.1",
"keywords": [
"parser",
"ll",
Expand Down Expand Up @@ -40,21 +40,21 @@
"url": "https://github.com/d-plaindoux/parsec/blob/master/LICENSE-LGPL2"
}
],
"main": "dist/parser-combinator.min.js",
"main": "build/lib/index.js",
"engines": {
"node": ">= 5.7.0"
},
"scripts": {
"compile": "rm -rf build/ && mkdir build && babel src --out-dir build --source-maps && node tasks/post-compile.js ",
"compile": "rimraf build/ && mkdirp build && babel src --out-dir build --source-maps && node tasks/post-compile.js ",
"dev": "babel --watch src --out-dir dist",
"format": "prettier-eslint --prettier.tab-width 4 --write \"src/**/*.js\"",
"lint": "eslint src/**/*.js",
"test": "npm run compile && nodeunit build/test/index.js",
"cover": "rm -rf ./coverage && mkdir coverage && babel-node ./node_modules/.bin/babel-istanbul cover --dir coverage/istanbul node_modules/.bin/nodeunit src/test/index.js",
"cover": "rimraf ./coverage && mkdirp coverage && babel-node ./node_modules/.bin/babel-istanbul cover --dir coverage/istanbul node_modules/.bin/nodeunit src/test/index.js",
"coveralls": "cat ./coverage/istanbul/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage",
"check": "npm run lint && npm run test && npm run cover",
"concat": "rm -rf dist/ && mkdir dist && npm run compile && browserify build/lib/index.js --standalone parsec -o dist/parser-combinator.js",
"dist": "rm -rf dist/ && mkdir dist && npm run compile && browserify -t uglifyify build/lib/index.js --standalone parsec -o dist/parser-combinator.min.js",
"concat": "rimraf dist/ && mkdirp dist && npm run compile && browserify build/lib/index.js --standalone masala -o dist/parser-combinator.js",
"dist": "rimraf dist/ && mkdirp dist && npm run compile && browserify -t uglifyify build/lib/index.js --standalone masala -o dist/parser-combinator.min.js",
"prepublish": "npm run check && npm run dist && node tasks/integrate.js && echo 'prepuplished OK'",
"postpublish": "cd integration-npm && rm -rf node_modules && npm install && node integrate.js"
},
Expand All @@ -67,10 +67,12 @@
"browserify": "~9.0.3",
"coveralls": "~2.11.2",
"eslint": "^3.3.0",
"mkdirp": "^0.5.1",
"ncp": "^2.0.0",
"nodeunit": "~0.9.0",
"prettier": "^1.3.1",
"prettier-eslint-cli": "^3.4.3",
"rimraf": "^2.6.1",
"uglifyify": "^3.0.2"
}
}

0 comments on commit e3a5683

Please sign in to comment.