0.0.1 • Published 9 years ago

grunt-tsconfig-update v0.0.1

Weekly downloads
3
License
-
Repository
github
Last release
9 years ago

grunt-tsconfig-update

Circle CI

Basic usage

module.exports = function(grunt) {
    grunt.initConfig({
        tsconfig: {
            main: {
            }
        }
    });

    grunt.loadNpmTasks('grunt-tsconfig-update');
};

Advanced usage

module.exports = function(grunt) {
    grunt.initConfig({
        ts: {
            options: {
                target: 'es5',
                module: 'umd',
                noImplicitAny: true,
                experimentalDecorators: true
            },
            main: {
                src: [
                    './**/*.ts',
                    '!./ignore/**/*.ts'
                ]
            }
        },

        tsconfig: {
            main: {
                options: {
                    project: "./",
                    compilerOptions: '<%= ts.options %>',
                    filesGlob: '<%= ts.clientMain.src %>'
                }
            }
        }
    });

    grunt.loadNpmTasks('grunt-ts');
    grunt.loadNpmTasks('grunt-tsconfig-update');
};