Skip to content

Instantly share code, notes, and snippets.

@tonylukasavage
Created August 31, 2014 02:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tonylukasavage/b22b42dc7ca35301cbfe to your computer and use it in GitHub Desktop.
Save tonylukasavage/b22b42dc7ca35301cbfe to your computer and use it in GitHub Desktop.
grunt-titanium 0.1.0 vs. 0.2.0
grunt.initConfig({
titanium: {
create: {
options: {
command: 'create',
name: 'tmp',
workspaceDir: '.'
}
},
build: {
options: {
command: 'build',
projectDir: path.resolve('tmp')
}
}
},
});
// run a test app with ti-mocha
grunt.registerTask('setup-run', function() {
grunt.file.copy('ti-mocha.js', path.resolve('tmp', 'Resources', 'ti-mocha.js'));
grunt.file.copy(path.resolve('test', 'app.js'), path.resolve('tmp', 'Resources', 'app.js'));
});
grunt.initConfig({
ti_run: {
app: {
files: {
'tmp/app/Resources': ['ti-mocha.js', 'test/app.js']
}
}
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment