Skip to content

Commit

Permalink
custom anchors; github autoid per option
Browse files Browse the repository at this point in the history
  • Loading branch information
commenthol committed Apr 10, 2015
1 parent 306491e commit bab940f
Show file tree
Hide file tree
Showing 17 changed files with 420 additions and 180 deletions.
8 changes: 6 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
node_modules/
tmp/
/node_modules
/coverage
/doc
/tmp
*.log
*.tgz
1 change: 1 addition & 0 deletions .jshintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/coverage/*
3 changes: 2 additions & 1 deletion .jshintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"node": true
"node": true,
"-W030": true
}
15 changes: 11 additions & 4 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
**/.*
test/
tmp/
markedpp-*.tgz
/node_modules
/coverage
/doc
/test
/tmp
.*
*.log
*.tgz
Makefile
bower.json
component.json
markedpp.min.js
30 changes: 21 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,30 @@
all: jshint runtest minify gitadd
all: readme jshint 0.8 0.12 markedpp.min.js

minify:
@uglifyjs -m --comments '/\*[^\0]+?\@copyright[^\0]+?\*/' -o markedpp.min.js lib/markedpp.js
markedpp.min.js: lib/markedpp.js
@uglifyjs -m --comments '/\*[^\0]+?\@copyright[^\0]+?\*/' -o $@ $<

jshint:
@jshint lib/*.js test/*.js
@npm run lint

gitadd:
@git ls -m | xargs git add

runtest:
test:
@npm test

cover:
@npm run cover

clean:
@rm markedpp.min.js
@rm -rf doc coverage

readme: README.md
./bin/markedpp.js --githubid $< > tmp.md
mv tmp.md $<

browser:
x-www-browser "http://localhost:3000" ;\
node test/server.js

%:
n $@ && npm test

.PHONY: clean all
.PHONY: readme jshint test clean browser all
Loading

0 comments on commit bab940f

Please sign in to comment.