Skip to content

Commit

Permalink
[npm] adds an .npmignore (and a make target to create it and to keep …
Browse files Browse the repository at this point in the history
…it up-to-date)
  • Loading branch information
sverweij committed Nov 30, 2016
1 parent e6506f9 commit a757bbc
Showing 2 changed files with 29 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.DS_Store
*.swp
*.swo
.project
.settings/*
/node_modules/
platoreports
jsdoc
coverage
src/favicon.ico
src/*favicon-*.png
src/*tmp*.*
*tmp*.*
*tmp*/**
tracking.*
siteverification.id
tmp_*.md
npm-debug.log
isolate-*-v8.log
build
.dependency-cruiser.json
doc/real-world-samples.md
doc/real-world-samples/**
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -23,11 +23,16 @@ help:
src/report/%.template.js: src/report/%.template.hbs
handlebars --commonjs handlebars/runtime -f $@ $<

.npmignore: .gitignore
cp $< $@
echo "doc/real-world-samples.md" >> $@
echo "doc/real-world-samples/**" >> $@

# "phony" targets
prerequisites:
$(NPM) install

dev-build: bin/dependency-cruise $(GENERATED_SOURCES) $(ALL_SRC)
dev-build: bin/dependency-cruise $(GENERATED_SOURCES) $(ALL_SRC) .npmignore

lint:
$(NPM) run lint

0 comments on commit a757bbc

Please sign in to comment.