Skip to content

Commit

Permalink
add typescript to grunt
Browse files Browse the repository at this point in the history
  • Loading branch information
EzraBrooks committed Nov 17, 2023
1 parent 1969521 commit 353a617
Show file tree
Hide file tree
Showing 5 changed files with 21,415 additions and 4,586 deletions.
9 changes: 7 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@ module.exports = function(grunt) {

grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
shell: {
ts: {
command: 'tsc -p .'
}
},
browserify: {
dist: {
src: ['./src/RosLibBrowser.js'],
src: ['./tsbuild/RosLibBrowser.js'],
dest: './build/roslib.js'
}
},
Expand Down Expand Up @@ -117,7 +122,7 @@ module.exports = function(grunt) {
grunt.registerTask('test-examples', ['mochaTest:examples', 'karma:examples']);
grunt.registerTask('test-tcp', ['mochaTest:tcp']);
grunt.registerTask('test-workersocket', ['karma:workersocket']);
grunt.registerTask('build', ['browserify', 'uglify']);
grunt.registerTask('build', ['shell', 'browserify', 'uglify']);
grunt.registerTask('build_and_watch', ['watch']);
grunt.registerTask('doc', ['clean', 'jsdoc']);
};
Loading

0 comments on commit 353a617

Please sign in to comment.