Gruntfile.coffee
来源:互联网 发布:centos 启动php 编辑:程序博客网 时间:2024/05/22 13:35
Gruntfile.coffee配置文件
module.exports = (grunt) -> # Project configuration. grunt.initConfig pkg: grunt.file.readJSON 'package.json' coffeelint: app: [ 'coffee/**/*.coffee' 'coffee/*.coffee' ] coffee: dist: options: sourceMap: false bare: true files: [ expand: true cwd: 'coffee' src: [ '**/*.coffee' '*.coffee' ] dest: 'build/js' ext: '.js' ] uglify: options: mangle: false build: files: [ expand: true cwd: 'build' src: [ '**/*.js' '*.js' ] dest: 'asset' ext: '.min.js' ] sass: dist: files: [ expand: true cwd: 'scss' src: [ '**/*.scss' '*.scss' ] dest: 'build/css' ext: '.css' ] cssmin: build: files: [ expand: true cwd: 'build' src: [ '**/*.css' '*.js' ] dest: 'asset' ext: '.min.css' ] clean: dist: 'build' watch: files: [ 'coffee/**/*.*' 'coffee/*.*' 'scss/**/*.*' 'scss/*.*' ] tasks: ['coffee', 'uglify', 'sass', 'cssmin', 'clean'] options: spawn: false grunt.loadNpmTasks 'grunt-coffeelint' grunt.loadNpmTasks 'grunt-contrib-coffee' grunt.loadNpmTasks 'grunt-contrib-uglify' grunt.loadNpmTasks 'grunt-contrib-sass' grunt.loadNpmTasks 'grunt-contrib-cssmin' grunt.loadNpmTasks 'grunt-contrib-watch' grunt.loadNpmTasks 'grunt-contrib-clean' # Default task(s). grunt.registerTask 'default', [ 'coffeelint' 'coffee:dist' 'sass:dist' 'uglify' 'cssmin' 'clean:dist' 'watch' ] return
阅读全文
2 0
- Gruntfile.coffee
- gruntfile
- Gruntfile 范例
- coffee-script
- map.coffee
- List.coffee
- Tree.coffee
- coffee-rails
- Coffee 文件系统
- coffee编译coffee到js
- Gruntfile.js详解
- grunt gruntfile.js详解
- Gruntfile.js详解
- Grunt 入门教程三:GruntFile 例子
- 一份Gruntfile.js的样板
- Grunt Gruntfile.js文件详解
- From Coffee with Love
- blog皮肤----Sweet Coffee
- 窗口刷新 Invalidate UpdateWindow RedrawWindow
- java面试资料—多线程
- Dubbo接口报Error的情况(未解决)
- checkbox 颜色修改
- 函数模板和类模板
- Gruntfile.coffee
- mapreduce的缓存(addCacheFile)使用
- decimal 后面的后缀M的意思
- C# string.Format 格式化使用说明
- 音视频实时传输错误掩盖算法
- Oracle存储过程
- response.sendRedirect()与request.getRequestDispatcher().forward()区别
- C#操作Access时Parameters集合的使用方法
- Codeforces 278B Books