Created
August 22, 2014 19:49
-
-
Save wjohnsto/882ee6dd3b277d08059c to your computer and use it in GitHub Desktop.
TSD cordova
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function (grunt) { | |
grunt.initConfig({ | |
clean: { | |
options: { | |
force: true | |
}, | |
tsd: [ | |
'typings/.*', | |
'typings/*', | |
'typings/cordova/cordova-tests.ts', | |
'!typings/cordova', | |
'!typings/tsd.d.ts' | |
] | |
}, | |
shell: { | |
cordova: { | |
command: [ | |
'rm -rf typings', | |
'git clone https://github.com/borisyankov/DefinitelyTyped.git typings', | |
'rm -rf .git' | |
].join(' && ') | |
}, | |
tsd: { | |
command: 'tsd update -so' | |
} | |
} | |
}); | |
// Load Tasks | |
grunt.loadNpmTasks('grunt-contrib-clean'); | |
grunt.loadNpmTasks('grunt-shell'); | |
// Register Tasks | |
grunt.registerTask('install', ['shell:cordova', 'clean:tsd', 'shell:tsd']); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment