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

springroll.json's "librariesCopy" property copies too much... #4

Open
probityrules opened this issue Apr 19, 2017 · 0 comments
Open
Assignees

Comments

@probityrules
Copy link

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.config.get("hasCopy") ? ["copy"] : [])

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

2 participants