Skip to content

Commit 7efc471

Browse files
committed
Simplify build process and published packages
1 parent 1699357 commit 7efc471

8 files changed

Lines changed: 11 additions & 107 deletions

File tree

.gitignore

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

.npmignore

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

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
COFFEE = node_modules/.bin/coffee
22
MOCHA = node_modules/.bin/mocha --compilers coffee:coffee-script/register
3-
XYZ = node_modules/.bin/xyz --message X.Y.Z --tag X.Y.Z --repo git@github.com:davidchambers/string-format.git --script scripts/prepublish
3+
XYZ = node_modules/.bin/xyz --message X.Y.Z --tag X.Y.Z --repo git@github.com:davidchambers/string-format.git
44

55
SRC = $(shell find src -name '*.coffee')
66
LIB = $(patsubst src/%.coffee,lib/%.js,$(SRC))
@@ -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 clean && 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 & 11 deletions
This file was deleted.

src/string-format.coffee

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,5 @@ String::format = (args...) -> format this, args...
4242

4343
String::format.transformers = format.transformers = {}
4444

45-
String::format.version = format.version = '0.2.1'
46-
4745

4846
module?.exports = format

0 commit comments

Comments
 (0)