-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
57 lines (55 loc) · 1.72 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
** GemstoneJS -- Gemstone JavaScript Technology Stack
** Copyright (c) 2016-2019 Gemstone Project <http://gemstonejs.com>
** Licensed under Apache License 2.0 <https://spdx.org/licenses/Apache-2.0>
*/
/* global module: true */
module.exports = function (grunt) {
grunt.loadNpmTasks("grunt-eslint")
grunt.loadNpmTasks("grunt-babel")
grunt.loadNpmTasks("grunt-contrib-clean")
grunt.initConfig({
eslint: {
options: {
configFile: "eslint.yaml"
},
"gemstone-tool": [ "src/**/*.js" ]
},
babel: {
options: {
presets: [
[ "@babel/preset-env", {
"targets": { "node": "8.0.0" }
} ]
],
plugins: [
[ "@babel/plugin-transform-runtime", {
"corejs": 2,
"helpers": true,
"regenerator": false
} ]
]
},
"gemstone-tool-cli": {
files: {
"bin/gemstone-tool-cli.js": "src/gemstone-tool-cli.js"
}
},
"gemstone-tool-api": {
files: {
"lib/gemstone-tool-api.js": "src/gemstone-tool-api.js"
}
},
"gemstone-tool-grunt": {
files: {
"tasks/gemstone-tool-grunt.js": "src/gemstone-tool-grunt.js"
}
}
},
clean: {
clean: [ "bin", "lib", "tasks" ],
distclean: [ "node_modules" ]
}
})
grunt.registerTask("default", [ "eslint", "babel" ])
}