1 Star 0 Fork 44

bloy/materialUI

forked from deng-dev/materialUI 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Gruntfile.js 2.34 KB
一键复制 编辑 原始数据 按行查看 历史
liudeng 提交于 2015-07-09 13:58 . init
module.exports = function(grunt) {
// load all grunt tasks
require('load-grunt-tasks')(grunt);
// grunt config
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
base: {
src: ['js/src/*.js'],
dest: 'js/base.js',
},
project: {
src: ['js/src-project/*.js'],
dest: 'js/project.js'
}
},
connect: {
html: {
options: {
base: '',
keepalive: 'true',
hostname: '0.0.0.0',
port: '9999'
}
}
},
cssmin: {
base: {
src: ['css/base.css'],
dest: 'css/base.min.css'
},
project: {
src: ['css/project.css'],
dest: 'css/project.min.css'
}
},
postcss: {
options: {
map: false,
processors: [
require('autoprefixer-core') ({
browsers: 'last 4 version'
})
]
},
base: {
src: 'css/base.css'
},
project: {
src: 'css/project.css'
}
},
sass: {
base: {
files: [{
cwd: 'sass/',
dest: 'css/',
expand: true,
ext: '.css',
src: ['*.scss', '!project.scss']
}],
options: {
sourcemap: 'none',
style: 'expanded'
}
},
project: {
files: {
'css/project.css': 'sass/project.scss',
},
options: {
sourcemap: 'none',
style: 'expanded'
}
}
},
uglify: {
base: {
files: {
'js/base.min.js': ['js/base.js']
}
},
project: {
files: {
'js/project.min.js': ['js/project.js']
}
}
},
watch: {
base: {
files: ['js/src/*.js', 'sass/**/*.scss', '!sass/project.scss'],
tasks: ['concat:base', 'uglify:base', 'sass:base', 'postcss:base', 'cssmin:base']
},
basecss: {
files: ['sass/**/*.scss', '!sass/project.scss'],
tasks: ['sass:base', 'postcss:base', 'cssmin:base']
},
basejs: {
files: ['js/src/*.js'],
tasks: ['concat:base', 'uglify:base']
},
project: {
files: ['js/src-project/*.js', 'sass/project.scss'],
tasks: ['concat:project', 'uglify:project', 'sass:project', 'postcss:project', 'cssmin:project']
},
projectcss: {
files: ['sass/project.scss'],
tasks: ['sass:project', 'postcss:project', 'cssmin:project']
},
projectjs: {
files: ['js/src-project/*.js'],
tasks: ['concat:project', 'uglify:project']
}
},
// dev update
devUpdate: {
main: {
options: {
semver: false,
updateType: 'prompt'
}
}
}
});
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhiyuexin/materialUI.git
git@gitee.com:zhiyuexin/materialUI.git
zhiyuexin
materialUI
materialUI
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385