Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to specify source and destination directories #5

Closed
mirkonasato opened this issue Oct 27, 2014 · 2 comments
Closed

Ability to specify source and destination directories #5

mirkonasato opened this issue Oct 27, 2014 · 2 comments

Comments

@mirkonasato
Copy link

The 6to5 command line tool lets you "compile the entire src directory and output it to the lib directory"

$ 6to5 src --out-dir lib

while grunt-6to5 seems to work only if you list each individual file. (Unless I'm missing something obvious?)

@willsoto
Copy link

The task can take a files array, like so:

files: [{
    expand: true,
    cwd: 'app',
    src: ['**/*.es6.js'],
    dest: 'app',
    ext: '.js'
}]

This will:

  1. Find all files in the app directory with the .es6.js extension
  2. Compile them and output them to their respective directory with the .js extension

@sindresorhus
Copy link
Member

The above is documented in the grunt docs and is common to all grunt tasks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants