Skip to content

Commit

Permalink
.gitignore compiled files, build them on prepublish
Browse files Browse the repository at this point in the history
Following up on slevithan/xregexp#182 (comment),
this change removes `lib/`, `xregexp-all.js`, and `bower.json` from the
repository.

It also adds a `prepublish` [script] that builds/tests the files before
publishing to npm, to ensure they are included. You can run [npm pack]
to see the `prepublish` script in action, then you can take a look at
the generated tarball with `tar tvf xregexp-3.2.0.tgz` and verify that
`lib/` and `xregexp-all.js` are still there.

[script]: https://docs.npmjs.com/misc/scripts
[npm pack]: https://docs.npmjs.com/cli/pack
  • Loading branch information
speecyy committed Apr 26, 2017
1 parent fbbe317 commit 098e670
Show file tree
Hide file tree
Showing 13 changed files with 5 additions and 8,330 deletions.
3 changes: 3 additions & 0 deletions .gitignore
@@ -1,3 +1,6 @@
lib
xregexp-all.js

# Compiled Python files
*.pyc

Expand Down
34 changes: 0 additions & 34 deletions bower.json

This file was deleted.

231 changes: 0 additions & 231 deletions lib/addons/build.js

This file was deleted.

0 comments on commit 098e670

Please sign in to comment.