Skip to content

Commit

Permalink
Merge e71f0ba into 3ce19f6
Browse files Browse the repository at this point in the history
  • Loading branch information
leebyron committed Feb 27, 2018
2 parents 3ce19f6 + e71f0ba commit eb01255
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 35 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Expand Up @@ -3,7 +3,6 @@
.DS_Store
/.nyc_output
/coverage
/dist
/node_modules
npm-debug.log
/index.js
/index.js.flow
15 changes: 15 additions & 0 deletions build.sh
@@ -0,0 +1,15 @@
#!/bin/sh -e
rm -rf dist/
mkdir -p dist/
cp index.mjs index.d.ts README.md LICENSE dist/
cp index.mjs dist/index.js.flow
babel index.mjs > dist/index.js
node -p "JSON.stringify({\
...require('./package'),\
main: 'index',\
module: 'index.mjs',\
typings: 'index.d.ts',\
scripts: undefined,\
babel: undefined,\
devDependencies: undefined\
}, null, 2)" > dist/package.json
56 changes: 23 additions & 33 deletions package.json
Expand Up @@ -2,47 +2,37 @@
"name": "iterall",
"version": "1.2.1",
"description": "Minimal zero-dependency utilities for using JavaScript Iterables in all environments.",
"main": "index",
"module": "index.mjs",
"typings": "index.d.ts",
"scripts": {
"test": "npm run lint && npm run build && npm run flow && npm run testonly && npm run testdocs",
"flow": "flow check --include-warnings",
"lint": "npm run prettier -- --write",
"lint-check": "npm run prettier -- --list-different",
"prettier": "prettier --single-quote --no-semi '*.{js,mjs}'",
"build": "babel index.mjs > index.js && cp index.mjs index.js.flow",
"testonly": "nyc --check-coverage --statements 100 node test.js",
"testdocs": "if [ \"$(documentation readme index.mjs --parse-extension mjs -ds API | grep -vF 'up to date')\" ]; then echo 'Must run: npm run docs'; exit 1; fi;",
"docs": "documentation readme index.mjs --parse-extension mjs -s API",
"travis": "npm run lint-check && npm run build && npm run flow && npm run testdocs && npm run testonly && nyc report --reporter=text-lcov | coveralls",
"preversion": "npm run test",
"prepublishOnly": "npm run test"
},
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/leebyron/iterall.git"
},
"files": [
"index.js",
"index.mjs",
"index.js.flow",
"index.d.ts",
"LICENSE"
],
"license": "MIT",
"author": "Lee Byron <lee@leebyron.com> (http://leebyron.com/)",
"homepage": "https://github.com/leebyron/iterall",
"bugs": "https://github.com/leebyron/iterall/issues",
"repository": "github:leebyron/iterall",
"keywords": [
"es6",
"iterator",
"iterable",
"polyfill",
"for-of"
],
"author": "Lee Byron <lee@leebyron.com> (http://leebyron.com/)",
"license": "MIT",
"bugs": {
"url": "https://github.com/leebyron/iterall/issues"
"main": "dist/index",
"module": "dist/index.esm.mjs",
"typings": "dist/index.d.ts",
"scripts": {
"test": "npm run lint && npm run build && npm run flow && npm run testonly && npm run docs",
"test-ci": "npm run lint-check && npm run build && npm run flow && npm run testonly && npm run docs-check",
"flow": "flow check --include-warnings",
"lint": "npm run prettier -- --write",
"lint-check": "npm run prettier -- --list-different",
"prettier": "prettier --single-quote --no-semi '*.{js,mjs}'",
"testonly": "nyc --check-coverage --statements 100 node test.js",
"docs": "documentation readme index.mjs --parse-extension mjs -s API",
"docs-check": "if [ \"$(documentation readme index.mjs --parse-extension mjs -ds API | grep -vF 'up to date')\" ]; then echo 'Must run: npm run docs'; exit 1; fi;",
"build": ". ./build.sh",
"travis": "npm run test-ci && nyc report --reporter=text-lcov | coveralls",
"preversion": "npm run test-ci",
"postversion": "npm run build",
"prepublishOnly": "npm run test-ci && (cd dist && npm publish) && exit 3"
},
"homepage": "https://github.com/leebyron/iterall#readme",
"devDependencies": {
"babel-cli": "6.26.0",
"babel-core": "6.26.0",
Expand Down

0 comments on commit eb01255

Please sign in to comment.