Skip to content

Commit

Permalink
- fix issue #43: large sets of unnecessary files were included in the…
Browse files Browse the repository at this point in the history
… published npm package 👎

- `packages/...` are included in the subsequent releases for use by advanced ES20xx-based tools.
  • Loading branch information
GerHobbelt committed Apr 14, 2019
1 parent 0abba83 commit 9b25f24
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 53 deletions.
59 changes: 38 additions & 21 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
## WARNING ## WARNING ## WARNING ## WARNING ## WARNING
##
## Looks like npm (and git?) has a bug on Windows where the fnmatch pattern with trailing slash, e.g. `output/`
## doesn't work for subdirectories, while the same pattern *without* the trailing slash *does* work for
## filtering directories (behaviour like `**/tmp/` but git and npm supports a different set of glob patterns)
##
## Commandline to observe this behaviour (on Windows dev box):
##
## npm pack && tar ftv *.tgz | grep tests
##
## Edit the ignore file to edit the `tests` line further below with or without trailing `/` to observe the
## buggy behaviour.
##
## WARNING ## WARNING ## WARNING ## WARNING ## WARNING

## Dependency directory
## Commenting this out is preferred by some people, see
## https://docs.npmjs.com/misc/faq#should-i-check-my-node_modules-folder-into-git
node_modules/
node_modules

## Google Closure Compiler install directory
gcc/
Expand All @@ -20,46 +34,49 @@ gcc/

# more npm dung
npm-debug.log
*.tgz

# Editor backup files
*.bak
*~
*.xxx

# Generated web content directories (nanoc output)
web/tmp/
web/tmp
web/crash.log

# ignore the compiler output for any examples:
/examples/output
/packages/jison-lex/examples/output
/docs/examples/output
/docs/examples/reference-output
examples/output
docs/examples/reference-output

# Vagrant sandbox
vagrant/
vagrant
Vagrantfile

# scratch space
/tmp/
/book-using-jison-beyond-the-basics/base-materials/
#tmp/
#---^ see WARNING at the top of this file!
tmp
tmp2
/book-using-jison-beyond-the-basics/base-materials
*.log
*.patch

# istanbul / nyc code coverage analysis workspaces
/.nyc_output
/coverage
/packages/helpers-lib/coverage
/packages/jison-lex/coverage
/packages/json2jison/coverage
/packages/jison2json/coverage
/packages/lex-parser/coverage
/packages/ebnf-parser/coverage
/examples/coverage/
.nyc_output
# ignore all coverage report directories anywhere
coverage

# additional crap thast shouldn't land in git repo or npm:
/tmp*/
tmp*
/test*.*
/issue*.*
/examples/formula-v*.*
/docs/examples/formula-v*.*
/dump*
/*bug*
/examples/formula-v*
/docs/examples/formula-v*
profile*.txt
/include.lex



80 changes: 48 additions & 32 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
## WARNING ## WARNING ## WARNING ## WARNING ## WARNING
##
## Looks like npm (and git?) has a bug on Windows where the fnmatch pattern with trailing slash, e.g. `output/`
## doesn't work for subdirectories, while the same pattern *without* the trailing slash *does* work for
## filtering directories (behaviour like `**/tmp/` but git and npm supports a different set of glob patterns)
##
## Commandline to observe this behaviour (on Windows dev box):
##
## npm pack && tar ftv *.tgz | grep tests
##
## Edit the ignore file to edit the `tests` line further below with or without trailing `/` to observe the
## buggy behaviour.
##
## WARNING ## WARNING ## WARNING ## WARNING ## WARNING

## Dependency directory
## Commenting this out is preferred by some people, see
## https://docs.npmjs.com/misc/faq#should-i-check-my-node_modules-folder-into-git
node_modules/
node_modules

## Google Closure Compiler install directory
gcc/
Expand All @@ -16,61 +30,60 @@ gcc/
#*.pdf

# do not publish 50mb of documentation
docs/

# Ignore the monorepo subpackages directory as the dist/ files do not need them and those should be published separately
packages/
docs

# Apple Crap
.DS_Store

# more npm dung
npm-debug.log
*.tgz

# Editor backup files
*.bak
*~
*.xxx

# Generated web content directories (nanoc output)
web/tmp/
web/tmp
web/crash.log

# ignore the compiler output for any examples:
/examples/output
/packages/jison-lex/examples/output
/docs/examples/output
/docs/examples/reference-output
examples/output
docs/examples/reference-output

# Vagrant sandbox
vagrant/
vagrant
Vagrantfile

# scratch space
/tmp/
/book-using-jison-beyond-the-basics/base-materials/
#tmp/
#---^ see WARNING at the top of this file!
tmp
tmp2
/book-using-jison-beyond-the-basics/base-materials
*.log
*.patch

# istanbul / nyc code coverage analysis workspaces
/.nyc_output
/coverage
/packages/helpers-lib/coverage
/packages/jison-lex/coverage
/packages/json2jison/coverage
/packages/jison2json/coverage
/packages/lex-parser/coverage
/packages/ebnf-parser/coverage
/examples/coverage/
.nyc_output
# ignore all coverage report directories anywhere
coverage

# additional crap thast shouldn't land in git repo or npm:
/tmp*/
tmp*
/test*.*
/issue*.*
/examples/formula-v*.*
/docs/examples/formula-v*.*
/dump*
/*bug*
/examples/formula-v*
/docs/examples/formula-v*
profile*.txt
/include.lex


# Ignore the web directory, i.e. the web pages
web/
web

# Ignore build/publish scripts, etc.
git-tag-and-bump-and-rebuild.sh
Expand All @@ -82,19 +95,22 @@ Makefile
# misc files which are used during development
Vagrantfile
__patch_*.js
/modules/
modules

# extra documentation (WIP)
book-using-jison-beyond-the-basics/
book-using-jison-beyond-the-basics
book.json
.bookignore

# no examples wanted
/examples/
examples

# all test sets & test rigs
#tests/
#-----^ see WARNING at the top of this file!
tests

# test set & test rig
/tests/
/test-npm-install/
test-npm-install

# jscs et al config files:
.js*
Expand Down

0 comments on commit 9b25f24

Please sign in to comment.