UNPKG

1.46 kBJavaScriptView Raw
1/*
2** GemstoneJS -- Gemstone JavaScript Technology Stack
3** Copyright (c) 2016-2018 Gemstone Project <http://gemstonejs.com>
4** Licensed under Apache License 2.0 <https://spdx.org/licenses/Apache-2.0>
5*/
6
7/* global module: true */
8module.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