Sha256: 35ecb91c89f47afb8b6634c4a52b8674478086ef4cd0c50d5ae4abb54eee1385

Contents?: true

Size: 1.38 KB

Versions: 30

Compression:

Stored size: 1.38 KB

Contents

module.exports = function(grunt) {

    // Project configuration.
    grunt.initConfig({
        // This line makes your node configurations available for use
        pkg: grunt.file.readJSON('package.json'),
        convert: {
            yml2json: {
                files: [{
                    expand: true,
                    cwd: 'resources/',
                    src: ['**/*.yml'],
                    dest: 'resources/json/',
                    ext: '.json'
                }]
            }
        },
        "concat-json": {
            mdjson: {
                src: ["iso_*.json","adiwg_*.json"],
                dest: "resources/json/mdcodes.json",
                cwd: "resources/json",
                options: {
                    space: "  "
                }
            }
        },
        yamllint: {
            all: ['resources/**/*.yaml']
        }
    });
    // Each plugin must be loaded following this pattern
    grunt.loadNpmTasks('grunt-convert');
    grunt.loadNpmTasks('grunt-concat-json');
    grunt.loadNpmTasks('grunt-yamllint');
    // Custom task(s).
    // First argument names the task for use in command line
    // Second argument is a list of tasks to be run
    grunt.registerTask('default', ['yamllint:all', 'convert:yml2json', 'concat-json:mdjson']);
    grunt.registerTask('concat', ['concat-json:mdjson']);
    grunt.registerTask('lint', ['yamllint:all']);

};

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
adiwg-mdcodes-2.10.1 Gruntfile.js
adiwg-mdcodes-2.9.3.pre.beta.3 Gruntfile.js
adiwg-mdcodes-2.9.2 Gruntfile.js
adiwg-mdcodes-2.9.1 Gruntfile.js
adiwg-mdcodes-2.9.0 Gruntfile.js
adiwg-mdcodes-2.8.4 Gruntfile.js
adiwg-mdcodes-2.8.3 Gruntfile.js
adiwg-mdcodes-2.8.2 Gruntfile.js
adiwg-mdcodes-2.8.0 Gruntfile.js
adiwg-mdcodes-2.7.5 Gruntfile.js
adiwg-mdcodes-2.7.4 Gruntfile.js
adiwg-mdcodes-2.7.2 Gruntfile.js
adiwg-mdcodes-2.7.1 Gruntfile.js
adiwg-mdcodes-2.7.0 Gruntfile.js
adiwg-mdcodes-2.6.3 Gruntfile.js
adiwg-mdcodes-2.6.2 Gruntfile.js
adiwg-mdcodes-2.6.1 Gruntfile.js
adiwg-mdcodes-2.6.0 Gruntfile.js
adiwg-mdcodes-2.5.0 Gruntfile.js
adiwg-mdcodes-2.4.0 Gruntfile.js