grunt.initConfig({
watch: {
files: [
- 'grunt.js',
+ 'Gruntfile.js',
'src/javascripts/*.js',
'src/bootstrap/**/*.{js,less}',
clean: {
folder: 'dist'
},
- lint: {
+ jshint: {
all: [
- 'grunt.js',
-
- 'src/bootstrap/js/*.js',
+ 'GruntFile.js',
'src/javascripts/*.js',
-
'test/**/*.js'
- ]
- },
- jshint: {
+ ],
options: {
"validthis": true,
"laxcomma" : true,
], dest: 'dist/cowhide-spruce-night.css'
}
},
- min: {
+ uglify: {
cowhide: {
src: ['dist/cowhide.js'],
dest: 'dist/cowhide.min.js'
},
copy: {
dist: {
- files: {
- 'dist/images/': ['lib/jquery-ui/dist/images/**', 'images/**'],
- 'dist/README.md': 'README.md',
- 'dist/docs/': 'docs/**'
- }
+ files: [
+ {dest: 'dist/', src: ['images/**'], cwd: 'lib/jquery-ui/dist/', expand: true},
+ {dest: 'dist/', src: ['images/**']},
+ {dest: 'dist/', src: ['README.md']},
+ {dest: 'dist/', src: ['docs/**']}
+ ]
},
},
exec: {
},
compress: {
dist: {
- files: {
- 'dist/cowhide.zip': 'dist/**'
- }
- }
- },
- growl : {
- started : {
- message : "Grunt compilation started.",
- title : "Cowhide"
- },
- finished : {
- message : "Grunt compilation finished.",
- title : "Cowhide"
+ options: {
+ archive: 'dist/cowhide.zip'
+ },
+ files: [
+ {dest: 'cowhide', src: ['**'], cwd: 'dist', expand: true}
+ ]
}
}
});
// Default task.
+ grunt.loadNpmTasks('grunt-contrib-clean');
+ grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-less');
- grunt.loadNpmTasks('grunt-css');
- grunt.loadNpmTasks('grunt-growl');
+ grunt.loadNpmTasks('grunt-contrib-concat');
+ grunt.loadNpmTasks('grunt-contrib-uglify');
+ grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-copy');
- grunt.loadNpmTasks('grunt-contrib-compress');
- grunt.loadNpmTasks('grunt-clean');
grunt.loadNpmTasks('grunt-exec');
+ grunt.loadNpmTasks('grunt-contrib-compress');
- grunt.registerTask('default', 'growl:started clean lint less concat min cssmin copy exec:build_docs compress growl:finished');
+ grunt.registerTask('default', ['clean', 'jshint', 'less', 'concat', 'uglify', 'cssmin', 'copy', 'exec:build_docs', 'compress']);
};
{
- "name": "ivi-webui",
- "description": "HTML5 components for fast UI development and support for Tizen IVI.",
- "version": "0.0.1",
- "keywords": ["tizen", "ivi", "html5", "css"],
- "homepage": "",
- "author": "Intel Corporation",
- "devDependencies": {
- "grunt": "0.3.15",
- "grunt-contrib-less": "0.3.0",
- "grunt-css": "0.2.1",
- "grunt-growl": "0.1.2",
- "grunt-contrib-copy": "0.3.0",
- "grunt-contrib-compress": "0.3.1",
- "grunt-clean": "0.1.0",
- "grunt-exec": "0.3.0",
- "uglify-js": "1.3.3",
- "jshint": "0.6.1",
- "hogan.js": ">= 2.0.0",
- "connect": ">= 2.7.2"
- }
+ "name": "Cowhide",
+ "description": "HTML5 components for fast UI development and support for Tizen IVI.",
+ "version": "0.1.0",
+ "keywords": [
+ "tizen",
+ "ivi",
+ "html5",
+ "css",
+ "javascript",
+ "framework",
+ "bootstrap"
+ ],
+ "homepage": "https://github.com/otcshare/cowhide",
+ "issues": "https://github.com/otcshare/cowhide/issues",
+ "author": {
+ "name": "Salvatore Iovene",
+ "email": "salvatore.iovene@intel.com"
+ },
+ "engines": {
+ "node": ">=0.8"
+ },
+ "scripts": {
+ "test": "./tests/run.sh"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/otcshare/cowhide.git"
+ },
+ "dependencies": {},
+ "devDependencies": {
+ "grunt": ">= 0.4",
+
+ "grunt-contrib-watch": ">= 0.3.1",
+ "grunt-contrib-jshint": ">= 0.3.0",
+ "grunt-contrib-concat": ">= 0.2.0",
+ "grunt-contrib-uglify": ">= 0.2.0",
+ "grunt-contrib-less": ">= 0.3.0",
+ "grunt-contrib-cssmin": ">= 0.6.0",
+ "grunt-contrib-copy": ">= 0.4.1",
+ "grunt-contrib-compress": ">= 0.5.0",
+ "grunt-contrib-clean": ">= 0.4.1",
+
+ "grunt-exec": ">= 0.4.0",
+ "grunt-growl": "0.1.2",
+ "hogan.js": ">= 2.0.0",
+ "connect": ">= 2.7.2"
+ }
}