Skip to content

Commit

Permalink
build(npm): update .npmignore
Browse files Browse the repository at this point in the history
and sort that and .gitignore
  • Loading branch information
sverweij committed Jan 21, 2018
1 parent 6095fae commit b00bd38
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# tmp files
.DS_Store
*.swp
*.swo
*.swp
**tmp**

# ide garbage
.vscode
.project
.settings/*
.vscode

# metrics results
.nyc
platoreports
jsdoc
coverage
jsdoc
platoreports

# node and npm
/node_modules/
Expand Down
20 changes: 13 additions & 7 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# tmp files
.DS_Store
*.swp
*.swo
*.swp
**tmp**

# ide garbage
.vscode
.project
.settings/*
.vscode

# metrics results
.nyc
platoreports
jsdoc
coverage
jsdoc
platoreports

# node and npm
/node_modules/
Expand All @@ -23,13 +23,19 @@ package-lock.json

# other stuff
.dependency-cruiser.json
doc/**
docs/**
test/**

# specificly ignore for npm
.bithoundrc
.dependency-cruiser-custom.json
.eslintignore
.eslintrc.json
.github
.gitlab-ci.yml
.istanbul.yml
.travis.yml
appveyor.yml
CODE_OF_CONDUCT.md
doc/**
docs/**
Makefile
test/**
12 changes: 9 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,22 @@ src/report/%.template.js: src/report/%.template.hbs

.npmignore: .gitignore
cp $< $@
echo "doc/**" >> $@
echo "docs/**" >> $@
echo "test/**" >> $@
echo "" >> $@
echo "# specificly ignore for npm" >> $@
echo ".bithoundrc" >> $@
echo ".dependency-cruiser-custom.json" >> $@
echo ".eslintignore" >> $@
echo ".eslintrc.json" >> $@
echo ".github" >> $@
echo ".gitlab-ci.yml" >> $@
echo ".istanbul.yml" >> $@
echo ".travis.yml" >> $@
echo "appveyor.yml" >> $@
echo "CODE_OF_CONDUCT.md" >> $@
echo "doc/**" >> $@
echo "docs/**" >> $@
echo "Makefile" >> $@
echo "test/**" >> $@

# "phony" targets
prerequisites:
Expand Down

0 comments on commit b00bd38

Please sign in to comment.