Skip to content

Commit 12a6917

Browse files
committed
Simplify build process and published packages
1 parent 1699357 commit 12a6917

7 files changed

Lines changed: 11 additions & 99 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/node_modules/
2+
/lib/

.npmignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/src/
2+
/scripts/
3+
/test/
4+
/Makefile

Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ release-major release-minor release-patch:
3030
.PHONY: setup
3131
setup:
3232
npm install
33-
make clean
34-
git update-index --assume-unchanged -- $(LIB)
3533

3634

3735
.PHONY: test

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ greet("Steve", 1)
151151

152152
### Running the test suite
153153

154-
make setup
155-
make test
154+
npm install
155+
npm test
156156

157157

158158
[1]: http://docs.python.org/library/stdtypes.html#str.format

lib/string-format.js

Lines changed: 0 additions & 89 deletions
This file was deleted.

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"author": "David Chambers <dc@davidchambers.me>",
66
"keywords": ["string", "formatting", "language", "util"],
77
"main": "./lib/string-format",
8+
"scripts": {
9+
"prepublish": "make",
10+
"test": "make test"
11+
},
812
"homepage": "https://github.com/davidchambers/string-format",
913
"bugs": "https://github.com/davidchambers/string-format/issues",
1014
"licenses": [{

scripts/prepublish

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,3 @@ set -e
33

44
sed -i '' "s/version = '[^']*'/version = '$VERSION'/" src/string-format.coffee
55
git add src/string-format.coffee
6-
7-
rm -f lib/string-format.js
8-
make lib/string-format.js
9-
git update-index --no-assume-unchanged lib/string-format.js
10-
git add lib/string-format.js
11-
git update-index --assume-unchanged lib/string-format.js

0 commit comments

Comments
 (0)