File: js/mobile-angular-ui/Gruntfile.js

Recommend this page to a friend!
  Classes of Karl Holz   dbh5   js/mobile-angular-ui/Gruntfile.js   Download  
File: js/mobile-angular-ui/Gruntfile.js
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: dbh5
Manipulate data in localstorage or sessionstorage
Author: By
Last change: First release

Working copy of dbh5, find any problems let me know.
Date: 2 years ago
Size: 3,458 bytes
 

Contents

Class file image Download
var lodash = require('lodash'); module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON("package.json"), concurrent: { devel: { tasks: ['connect', 'watch'], options: { limit: 2, logConcurrentOutput: true } } }, smq: { bootstrap: { src: "tmp/mobile.css", dest: "tmp/sqm", basename: "mobile-angular-ui" } }, clean: { dev: ["tmp", "dist", "demo/assets"] }, copy: { fa: { expand: true, cwd: "bower_components/font-awesome/fonts", src: ["**"], dest: 'dist/fonts' } }, less: { dist: { options: { paths: ["src/less", "bower_components"] }, files: { "tmp/mobile.css": "src/less/mobile-angular-ui.less", "tmp/sm-grid.css": "src/less/sm-grid.less", "tmp/mobile-angular-ui-desktop.css": "src/less/mobile-angular-ui-desktop.less" } } }, concat: { css: { files: { "dist/css/mobile-angular-ui-base.css": ["tmp/sqm/mobile-angular-ui-base.css", "tmp/sm-grid.css"], "dist/css/mobile-angular-ui-desktop.css": ["tmp/mobile-angular-ui-desktop.css"], "dist/css/mobile-angular-ui-hover.css": ["tmp/hover.css"] } }, js: { files: { "dist/js/mobile-angular-ui.js": ["bower_components/overthrow/src/overthrow-detect.js", "bower_components/overthrow/src/overthrow-init.js", "bower_components/overthrow/src/overthrow-polyfill.js", "bower_components/fastclick/lib/fastclick.js", "src/js/lib/*.js", "src/js/mobile-angular-ui.js"] } } }, uglify: { minify: { options: { report: 'min' }, files: { "dist/js/mobile-angular-ui.min.js": ["dist/js/mobile-angular-ui.js"] } } }, cssmin: { minify: { options: { report: 'min' }, expand: true, cwd: 'dist/css/', src: ['*.css', '!*.min.css'], dest: 'dist/css/', ext: '.min.css' } }, watch: { all: { files: "src/**/*", tasks: ["build"] } }, connect: { server: { options: { hostname: '0.0.0.0', port: 3000, base: ['.', 'demo'], keepalive: true } } }, 'split-hover': { all: { src: "tmp/sqm/mobile-angular-ui-base.css", dest: "tmp/hover.css" } } }); grunt.loadNpmTasks("grunt-contrib-clean"); grunt.loadNpmTasks("grunt-contrib-concat"); grunt.loadNpmTasks("grunt-contrib-connect"); grunt.loadNpmTasks("grunt-contrib-copy"); grunt.loadNpmTasks("grunt-contrib-cssmin"); grunt.loadNpmTasks("grunt-contrib-uglify"); grunt.loadNpmTasks("grunt-contrib-watch"); grunt.loadNpmTasks("grunt-contrib-less"); grunt.loadNpmTasks("grunt-concurrent"); grunt.task.loadTasks("tasks"); grunt.registerTask("build", [ "clean:dev", "less", "smq", "split-hover", "concat", "copy:fa", "uglify", "cssmin"]); grunt.registerTask("default", [ "build", "concurrent:devel"]); };