Migrate to grunt 0.4.
authorSalvatore Iovene <salvatore@iovene.com>
Mon, 29 Apr 2013 11:10:45 +0000 (14:10 +0300)
committerSalvatore Iovene <salvatore@iovene.com>
Mon, 29 Apr 2013 11:10:45 +0000 (14:10 +0300)
Gruntfile.js [moved from grunt.js with 87% similarity]
package.json

similarity index 87%
rename from grunt.js
rename to Gruntfile.js
index fe8175b..edcd0c8 100644 (file)
--- a/grunt.js
@@ -13,7 +13,7 @@ module.exports = function(grunt) {
   grunt.initConfig({
     watch: {
       files: [
-        'grunt.js',
+        'Gruntfile.js',
 
         'src/javascripts/*.js',
         'src/bootstrap/**/*.{js,less}',
@@ -27,17 +27,12 @@ module.exports = function(grunt) {
     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,
@@ -162,7 +157,7 @@ module.exports = function(grunt) {
         ], dest: 'dist/cowhide-spruce-night.css'
       }
     },
-    min: {
+    uglify: {
       cowhide: {
         src: ['dist/cowhide.js'],
         dest: 'dist/cowhide.min.js'
@@ -200,11 +195,12 @@ module.exports = function(grunt) {
     },
     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: {
@@ -214,31 +210,26 @@ module.exports = function(grunt) {
     },
     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']);
 };
index 5f080ca..4df0276 100644 (file)
@@ -1,22 +1,49 @@
 {
-  "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"
+        }
 }