Sha256: 8e217072dead2c29b48118eea0d2808c988383e26bfa66298649f7088441feec

Contents?: true

Size: 995 Bytes

Versions: 3

Compression:

Stored size: 995 Bytes

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'
                }]
            }
        },

        yamllint: {
            all: ['resources/**/*.yaml']
        }
    });
    // Each plugin must be loaded following this pattern
    grunt.loadNpmTasks('grunt-convert');
    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']);
    grunt.registerTask('lint', ['yamllint:all']);

};

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
adiwg-mdcodes-1.0.0 Gruntfile.js
adiwg-mdcodes-0.4.0 Gruntfile.js
adiwg-mdcodes-0.2.1 Gruntfile.js