1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | module.exports = function (grunt) {
|
9 | grunt.loadNpmTasks("grunt-eslint")
|
10 | grunt.loadNpmTasks("grunt-babel")
|
11 | grunt.loadNpmTasks("grunt-contrib-clean")
|
12 | grunt.initConfig({
|
13 | eslint: {
|
14 | options: {
|
15 | configFile: "eslint.yaml"
|
16 | },
|
17 | "gemstone-tool": [ "src/**/*.js" ]
|
18 | },
|
19 | babel: {
|
20 | options: {
|
21 | presets: [ [ "env", { "targets": { "node": "7.6" } } ] ],
|
22 | plugins: [ "transform-runtime" ]
|
23 | },
|
24 | "gemstone-tool-cli": {
|
25 | files: {
|
26 | "bin/gemstone-tool-cli.js": "src/gemstone-tool-cli.js"
|
27 | }
|
28 | },
|
29 | "gemstone-tool-api": {
|
30 | files: {
|
31 | "lib/gemstone-tool-api.js": "src/gemstone-tool-api.js"
|
32 | }
|
33 | },
|
34 | "gemstone-tool-grunt": {
|
35 | files: {
|
36 | "tasks/gemstone-tool-grunt.js": "src/gemstone-tool-grunt.js"
|
37 | }
|
38 | }
|
39 | },
|
40 | clean: {
|
41 | clean: [ "bin", "lib", "tasks" ],
|
42 | distclean: [ "node_modules" ]
|
43 | }
|
44 | })
|
45 | grunt.registerTask("default", [ "eslint", "babel" ])
|
46 | }
|
47 |
|