Skip to content

Instantly share code, notes, and snippets.

@wjohnsto
Created August 22, 2014 19:49
Show Gist options
  • Save wjohnsto/882ee6dd3b277d08059c to your computer and use it in GitHub Desktop.
Save wjohnsto/882ee6dd3b277d08059c to your computer and use it in GitHub Desktop.
TSD cordova
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