Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/lib/
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's alphabetize these. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure!

/node_modules/
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/src/
/test/
/Makefile
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
COFFEE = node_modules/.bin/coffee
MOCHA = node_modules/.bin/mocha --compilers coffee:coffee-script/register
XYZ = node_modules/.bin/xyz --message X.Y.Z --tag X.Y.Z --repo git@github.com:davidchambers/string-format.git --script scripts/prepublish
XYZ = node_modules/.bin/xyz --message X.Y.Z --tag X.Y.Z --repo git@github.com:davidchambers/string-format.git

SRC = $(shell find src -name '*.coffee')
LIB = $(patsubst src/%.coffee,lib/%.js,$(SRC))
Expand Down Expand Up @@ -30,8 +30,6 @@ release-major release-minor release-patch:
.PHONY: setup
setup:
npm install
make clean
git update-index --assume-unchanged -- $(LIB)


.PHONY: test
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ greet("Steve", 1)

### Running the test suite

make setup
make test
npm install
npm test


[1]: http://docs.python.org/library/stdtypes.html#str.format
Expand Down
89 changes: 0 additions & 89 deletions lib/string-format.js

This file was deleted.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"author": "David Chambers <dc@davidchambers.me>",
"keywords": ["string", "formatting", "language", "util"],
"main": "./lib/string-format",
"scripts": {
"prepublish": "make clean && make",
"test": "make test"
},
"homepage": "https://github.com/davidchambers/string-format",
"bugs": "https://github.com/davidchambers/string-format/issues",
"licenses": [{
Expand Down
11 changes: 0 additions & 11 deletions scripts/prepublish

This file was deleted.

2 changes: 0 additions & 2 deletions src/string-format.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,5 @@ String::format = (args...) -> format this, args...

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

String::format.version = format.version = '0.2.1'


module?.exports = format