mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-03 11:14:27 +02:00
sweet lintStrings working
This commit is contained in:
parent
3d01473ec4
commit
da51a115ae
1 changed files with 9 additions and 2 deletions
11
grunt.js
11
grunt.js
|
@ -25,6 +25,13 @@ module.exports = function(grunt) {
|
||||||
grunt.log.writeln(compliments[index]);
|
grunt.log.writeln(compliments[index]);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
grunt.registerTask('lintStrings', 'Find if an INTL string doesnt exist', function() {
|
||||||
|
var child_process = require('child_process');
|
||||||
|
var output = child_process.exec('node src/js/intl/checkStrings', function(err, output) {
|
||||||
|
grunt.log.writeln(output);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
grunt.registerTask('buildIndex', 'stick in hashed resources', function() {
|
grunt.registerTask('buildIndex', 'stick in hashed resources', function() {
|
||||||
grunt.log.writeln('Building index...');
|
grunt.log.writeln('Building index...');
|
||||||
|
|
||||||
|
@ -173,9 +180,9 @@ module.exports = function(grunt) {
|
||||||
grunt.registerTask('build', 'rm browserify min hash buildIndex shell');
|
grunt.registerTask('build', 'rm browserify min hash buildIndex shell');
|
||||||
grunt.registerTask('fastBuild', 'rm browserify hash buildIndex shell');
|
grunt.registerTask('fastBuild', 'rm browserify hash buildIndex shell');
|
||||||
|
|
||||||
grunt.registerTask('default', 'lint jasmine_node build compliment');
|
grunt.registerTask('default', 'lint lintStrings jasmine_node build compliment');
|
||||||
|
|
||||||
grunt.registerTask('watching', 'fastBuild lint');
|
grunt.registerTask('watching', 'fastBuild lint lintStrings');
|
||||||
grunt.registerTask('test', 'jasmine_node');
|
grunt.registerTask('test', 'jasmine_node');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue