zambezi / ez-build

Zambezi build tool
MIT License
2 stars 1 forks source link

Non-source files aren't copied over unless an `--include` pattern is added #7

Closed mstade closed 8 years ago

mstade commented 8 years ago

By default, ez-build should copy over any non-source file, i.e. anything outside of the --include and --exclude sets. Currently, the only way to make ez-build copy files over is by explicitly adding them as included files via --include.

Steps to reproduce:

  1. Make a new project with the following structure:

    src/
     source.js
     not-source.txt

    It doesn't matter what source.js contains, so long as it's valid and will compile. not-source.txt can be empty or have content, it doesn't matter.

  2. Run ez-build

    Expected results:

The lib directory should look like so:

lib/
  source.js
  source.js.map
  non-source.txt

Actual results

Only the source files are included:

lib/
  source.js
  source.js.map

Workaround

Add --include patterns for any files that should be included in the output directory. For example, to include all css files in the build:

$ ez-build --include "**/*.css"

The quotes are probably necessary so the shell doesn't expand the glob.

Poetro commented 8 years ago

:+1:

mstade commented 8 years ago

Fixed in #13.