Skip to content

Commit 37e0de9

Browse files
committed
build shallow npm module
1 parent 445629a commit 37e0de9

File tree

3 files changed

+17
-16
lines changed

3 files changed

+17
-16
lines changed

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
*.swp
22
*~
3+
*.iml
34
.*.haste_cache.*
45
.DS_Store
56
.idea
7+
npm-debug.log
68

7-
lib
89
node_modules
9-
npm-debug.log
1010
coverage
11-
*.iml
11+
lib

.npmignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
*.swp
2+
*~
3+
*.iml
4+
.*
5+
npm-debug.log
6+
7+
CONTRIBUTING.md
8+
node_modules
9+
coverage
10+
scripts
11+
lib
12+
src

package.json

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,6 @@
1616
"type": "git",
1717
"url": "http://github.com/graphql/graphql-js.git"
1818
},
19-
"main": "lib/index.js",
20-
"directories": {
21-
"lib": "./lib"
22-
},
23-
"files": [
24-
"lib",
25-
"README.md",
26-
"LICENSE",
27-
"PATENTS"
28-
],
2919
"options": {
3020
"mocha": "--require scripts/mocha-bootload src/**/__tests__/**/*.js"
3121
},
@@ -36,15 +26,14 @@
3626
]
3727
},
3828
"scripts": {
39-
"prepublish": "npm test && npm run build",
4029
"test": "npm run lint && npm run check && mocha $npm_package_options_mocha",
4130
"testonly": "mocha $npm_package_options_mocha",
4231
"lint": "eslint src",
4332
"check": "flow check",
44-
"build": "rm -rf lib/* && babel src --ignore __tests__ --out-dir lib",
4533
"watch": "babel scripts/watch.js | node",
4634
"cover": "babel-node node_modules/.bin/isparta cover --root src --report html node_modules/.bin/_mocha -- $npm_package_options_mocha",
47-
"coveralls": "babel-node node_modules/.bin/isparta cover --root src --report lcovonly node_modules/.bin/_mocha -- $npm_package_options_mocha && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
35+
"coveralls": "babel-node node_modules/.bin/isparta cover --root src --report lcovonly node_modules/.bin/_mocha -- $npm_package_options_mocha && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
36+
"prepublish": "babel src --ignore __tests__ --out-dir ./"
4837
},
4938
"dependencies": {
5039
"babel-runtime": "5.8.3"

0 commit comments

Comments
 (0)