mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Issue #533: Add grunt task aliases for backward compat
This commit is contained in:
parent
7bc5d20b2e
commit
b1058c452e
11
Gruntfile.js
11
Gruntfile.js
@ -311,6 +311,7 @@ module.exports = function(grunt) {
|
|||||||
grunt.registerTask('unit-test', ['karma']);
|
grunt.registerTask('unit-test', ['karma']);
|
||||||
// Run linting, unit tests and drawing tests
|
// Run linting, unit tests and drawing tests
|
||||||
grunt.registerTask('test', ['lint', 'unit-test', 'build-dev', 'connect:test', 'casperjs']);
|
grunt.registerTask('test', ['lint', 'unit-test', 'build-dev', 'connect:test', 'casperjs']);
|
||||||
|
|
||||||
// Run the tests, even if the linting fails
|
// Run the tests, even if the linting fails
|
||||||
grunt.registerTask('test-nolint', ['unit-test', 'build-dev', 'connect:test', 'casperjs']);
|
grunt.registerTask('test-nolint', ['unit-test', 'build-dev', 'connect:test', 'casperjs']);
|
||||||
// Used by optional precommit hook
|
// Used by optional precommit hook
|
||||||
@ -328,9 +329,13 @@ module.exports = function(grunt) {
|
|||||||
// Start webserver and watch for changes
|
// Start webserver and watch for changes
|
||||||
grunt.registerTask('serve', ['build', 'connect:prod', 'open:prod', 'watch:prod']);
|
grunt.registerTask('serve', ['build', 'connect:prod', 'open:prod', 'watch:prod']);
|
||||||
// Start webserver on src folder, in debug mode
|
// Start webserver on src folder, in debug mode
|
||||||
grunt.registerTask('serve-dev', ['build-dev', 'connect:dev', 'open:dev', 'watch:dev']);
|
grunt.registerTask('play', ['build-dev', 'connect:dev', 'open:dev', 'watch:dev']);
|
||||||
grunt.registerTask('serve-debug', ['serve-dev']);
|
|
||||||
grunt.registerTask('play', ['serve-dev']);
|
// ALIASES, kept for backward compatibility
|
||||||
|
grunt.registerTask('serve-debug', ['play']);
|
||||||
|
grunt.registerTask('serve-dev', ['play']);
|
||||||
|
grunt.registerTask('test-travis', ['test']);
|
||||||
|
grunt.registerTask('test-local', ['test']);
|
||||||
|
|
||||||
// Default task
|
// Default task
|
||||||
grunt.registerTask('default', ['lint', 'build']);
|
grunt.registerTask('default', ['lint', 'build']);
|
||||||
|
Loading…
Reference in New Issue
Block a user