Skip to content

Commit e80bb28

Browse files
committed
Update Gruntfile.js
add a build non-watched config
1 parent ddbd4f9 commit e80bb28

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

sample/commonjs/Gruntfile.js

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module.exports = function (grunt) {
2-
"use strict";
3-
2+
'use strict';
3+
4+
// Change this
45
var srcDir = 'lib';
56

67
grunt.initConfig({
@@ -13,10 +14,14 @@ module.exports = function (grunt) {
1314
dev: {
1415
src: [srcDir + '/**/*.ts'],
1516
watch: srcDir
16-
}
17+
},
18+
build: {
19+
src: [srcDir + '/**/*.ts'],
20+
},
1721
},
1822
});
19-
20-
grunt.loadNpmTasks("grunt-ts");
21-
grunt.registerTask("default", ["ts:dev"]);
23+
24+
grunt.loadNpmTasks('grunt-ts');
25+
grunt.registerTask('default', ['ts:dev']);
26+
grunt.registerTask('build', ['ts:build']);
2227
};

0 commit comments

Comments
 (0)