enable less sourcemaps, add cleanup for npm cmds run with --prefix

This commit is contained in:
Leigh Johnson
2016-08-19 13:12:31 -04:00
parent 8893f8278a
commit 25fa05da81
4 changed files with 11 additions and 4 deletions

View File

@@ -21,6 +21,7 @@ module.exports = function(grunt) {
// browser-sync + websocket proxy // browser-sync + websocket proxy
grunt.registerTask('dev', [ grunt.registerTask('dev', [
'clean:tmp',
'clean:static', 'clean:static',
'concurrent:dev', 'concurrent:dev',
'browserSync:http', 'browserSync:http',
@@ -28,6 +29,8 @@ module.exports = function(grunt) {
]); ]);
grunt.registerTask('release', [ grunt.registerTask('release', [
'clean:tmp',
'clean:static',
'webpack:prod', 'webpack:prod',
'concurrent:prod', 'concurrent:prod',
]); ]);

View File

@@ -14,7 +14,7 @@
ng-class="{'SmartStatus--success icon-job-successful': job.value === 1, ng-class="{'SmartStatus--success icon-job-successful': job.value === 1,
'SmartStatus--failed icon-job-failed': job.value === -1, 'SmartStatus--failed icon-job-failed': job.value === -1,
'SmartStatus--running icon-job-successful': job.value === 0, 'SmartStatus--running icon-job-successful': job.value === 0,
'SmartStatus-vertCenter': singleJobStatus}}"> 'SmartStatus-vertCenter': singleJobStatus}">
</i> </i>
</a> </a>
</div> </div>

View File

@@ -1,4 +1,6 @@
module.exports = { module.exports = {
options: { force: true },
static: 'static/*', static: 'static/*',
coverage: 'coverage/*' coverage: 'coverage/*',
tmp: '../../tmp'
}; };

View File

@@ -11,7 +11,10 @@ module.exports = {
'client/legacy-styles/*.less', 'client/legacy-styles/*.less',
'client/src/**/*.less', 'client/src/**/*.less',
] ]
}] }],
options: {
sourceMap: true
}
}, },
prod: { prod: {
@@ -23,7 +26,6 @@ module.exports = {
}, },
options: { options: {
compress: true, compress: true,
} }
} }
}; };