-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathGruntfile.js
39 lines (36 loc) · 1.23 KB
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
module.exports = function(grunt) {
"use strict";
var project = {
pkg: grunt.file.readJSON("package.json"),
paths: {
get config() {
return this.grunt + "config/";
},
build: "build/",
dist: "build/dist/",
docs: "docs/",
grunt: "grunt/",
js: "js/",
scss: "scss/",
spec: "spec/",
vendor: grunt.file.readJSON(".bowerrc").directory + "/"
},
files: {
get config() {
return project.paths.config + "*.js";
},
grunt: "Gruntfile.js",
js: ["js/zui.js", "js/zui/*.js"],
scss: ["scss/zui.scss"]
}
};
require("load-grunt-config")(grunt, {
configPath: require("path").join(process.cwd(), project.paths.config),
data: project
});
grunt.loadTasks("grunt/tasks");
grunt.registerTask("docs", ["copy:docs", "sass:docs", "docs-scss", "docs-build"]);
grunt.registerTask("lint", ["jsonlint", "jshint", "jscs"]);
grunt.registerTask("build", ["build-js", "uglify", "webfont", "sass:src", "sass:dist", "copy:build"]);
grunt.registerTask("default", ["lint", "build"]);
};