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

code duplication #147

Open
giulianozorzi opened this issue Jul 19, 2016 · 0 comments
Open

code duplication #147

giulianozorzi opened this issue Jul 19, 2016 · 0 comments

Comments

@giulianozorzi
Copy link

Hello,
I was redirected here by a member of the grunt-fixmyjs team.
I'm using fixmyjs 1.0.3 grunt-fixmyjs version 0.3.0 with the grunt 1.0.1 and grunt-vli 1.2.0, all installed by npm

my grunt task is the following:

fixmyjs: {
options: {
config: '.jshintrc',
indentpref: 'spaces'
},
test: {
files: [
{
expand: true,
cwd: 'static/js',
src: ['*/.js'],
dest: 'static/js/',
ext: '.js'
}
]
}
},
Sometimes (I could not find a way to replicate I get duplicated code (ie if the source file contains

var a = true;
I end up with

var a = true;
var a = true;
the tasks I'm running are in order

fixmyjs
jshint
concat
uglify
Is there a way to determine what causes this and fix this behaviour ? As now I've changed the task so the ext is changed to

ext: '.fixed.js'

but I'd really like to fix my js files for good :)

thanks !

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

1 participant