mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 15:07:13 +08:00
Updated Gruntfile to watch, etc. Removed Makefile
This commit is contained in:
25
Gruntfile.js
25
Gruntfile.js
@ -14,6 +14,7 @@ module.exports = function(grunt) {
|
|||||||
'js/utils.js',
|
'js/utils.js',
|
||||||
'js/events.js',
|
'js/events.js',
|
||||||
'js/gestures.js',
|
'js/gestures.js',
|
||||||
|
'js/animate.js',
|
||||||
'js/viewController.js',
|
'js/viewController.js',
|
||||||
'js/views/**/*.js',
|
'js/views/**/*.js',
|
||||||
'js/controllers/**/*.js'
|
'js/controllers/**/*.js'
|
||||||
@ -32,6 +33,29 @@ module.exports = function(grunt) {
|
|||||||
document: true
|
document: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
sass: {
|
||||||
|
dist: {
|
||||||
|
files: {
|
||||||
|
'dist/ionic.css': 'scss/ionic.scss'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
scripts: {
|
||||||
|
files: ['js/**/*.js'],
|
||||||
|
tasks: ['concat'],
|
||||||
|
options: {
|
||||||
|
spawn: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
sass: {
|
||||||
|
files: ['scss/**/*.scss'],
|
||||||
|
tasks: ['sass'],
|
||||||
|
options: {
|
||||||
|
spawn: false
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -39,6 +63,7 @@ module.exports = function(grunt) {
|
|||||||
grunt.loadNpmTasks('grunt-contrib-jshint');
|
grunt.loadNpmTasks('grunt-contrib-jshint');
|
||||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||||
grunt.loadNpmTasks('grunt-contrib-concat');
|
grunt.loadNpmTasks('grunt-contrib-concat');
|
||||||
|
grunt.loadNpmTasks('grunt-contrib-sass');
|
||||||
|
|
||||||
grunt.registerTask('default', ['jshint', 'concat']);
|
grunt.registerTask('default', ['jshint', 'concat']);
|
||||||
};
|
};
|
||||||
|
|||||||
16
Makefile
16
Makefile
@ -1,16 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
all: release
|
|
||||||
|
|
||||||
release:
|
|
||||||
@sass -I scss/ scss/ionic.scss:dist/ionic.css
|
|
||||||
|
|
||||||
cordova:
|
|
||||||
@cp -R js/ example/cordova/iOS/www/js
|
|
||||||
@cp dist/ionic.css example/cordova/iOS/www/css
|
|
||||||
|
|
||||||
watch:
|
|
||||||
@sass --watch scss/ionic.scss:dist/ionic.css
|
|
||||||
|
|
||||||
watch-ionicons:
|
|
||||||
@sass --watch ionicons/scss/ionicons.scss:dist/ionicons.css
|
|
||||||
Reference in New Issue
Block a user