-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
It appears that when files are listed by "librariesCopy" in springroll.json, it not only copies the listed files, it also runs all other grunt-contrib-copy listings. For example, if the following is defined:
"librariesCopy": {
"components/soundjs/lib/FlashAudioPlugin.swf": "deploy/assets/swfs/"
}
And the SpringRoll game's gruntfile includes:
grunt.config.merge({
copy: {
copylevels: {
cwd: 'assets/levels',
src: '**/*',
dest: 'src/config/levels',
expand: true
}
}
});
grunt.registerTask('_pre-build', ['copylevels']);
The "copylevels" task is run twice - once from '_pre-build' and once due to "librariesCopy" being defined. I think this is the bit of code that probably needs to be restricted in some way to the files specifically listed in "librariesCopy":
grunt-springroll/tasks/aliases.js
Line 102 in bd3e082
| (grunt.config.get("hasCopy") ? ["copy"] : []) |
Metadata
Metadata
Assignees
Labels
No labels