Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grunt package #6702

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 18 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,38 @@ module.exports = function (grunt) {
clangFormat: {
src: [] // unused ATM
},
version: {
patchTitaniumVersion: {
options: {
prefix: '^version\\s+=\\s+[\'"]'
},
src: ['build/titanium_version.py']
},
patchPackage: {
src: ['package.json']
}
}
});

// Load grunt plugins for modules
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-appc-js');
grunt.loadNpmTasks('grunt-clang-format');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-version');

// register tasks
grunt.registerTask('lint', ['appcJs']);

// register tasks
grunt.registerTask('format', ['clangFormat']);

// register tasks
grunt.registerTask('bump', ['version::patch']);
grunt.registerTask('bump:major', ['version::major']);
grunt.registerTask('bump:minor', ['version::minor']);
grunt.registerTask('bump:patch', ['version::patch']);

// register tasks
grunt.registerTask('default', ['lint']);
};
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,12 @@
"xmldom": "~0.1.16"
},
"devDependencies": {
"grunt-cli": "*",
"grunt-contrib-clean": "^0.6.0",
"grunt-clang-format": "*",
"grunt-appc-js": "*",
"grunt-mocha-test": "^0.12.7",
"grunt-appc-js": "*",
"grunt-clang-format": "*",
"grunt-cli": "*",
"grunt-contrib-clean": "^0.6.0",
"grunt-mocha-test": "^0.12.7",
"grunt-version": "^0.3.1",
"mocha": "*",
"optimist": "~0.6.0",
"should": "~1.3.0"
Expand Down