decide.nolog.cz/tasks/options/emberscript.js
2014-07-06 17:37:54 +02:00

42 lines
No EOL
826 B
JavaScript

// EmberScript compilation. This must be enabled by modification
// of Gruntfile.js.
//
// The `bare` option is used since this file will be transpiled
// anyway. In EmberScript files, you need to escape out for
// some ES6 features like import and export. For example:
//
// `import User from 'appkit/models/user'`
//
// class Post
// init: (userId) ->
// @user = User.findById(userId)
//
// `export default Post`
//
module.exports = {
"test": {
options: {
bare: true
},
files: [{
expand: true,
cwd: 'tests/',
src: '**/*.em',
dest: 'tmp/javascript/tests',
ext: '.js'
}]
},
"app": {
options: {
bare: true
},
files: [{
expand: true,
cwd: 'app/',
src: '**/*.em',
dest: 'tmp/javascript/app',
ext: '.js'
}]
}
};