0.2.2 • Published 8 years ago

grunt-tsconfig v0.2.2

Weekly downloads
2
License
-
Repository
github
Last release
8 years ago

grunt-tsconfig

Creates typescript tsconfig.json based on options and fileGlobs.

Getting Started

This plugin requires Grunt ~0.4.5. I guess you know how to use Grunt, if you've come this far...

The "tsconfig" task

Overview

In your project's Gruntfile, add a section named tsconfig to the data object passed into grunt.initConfig().

grunt.initConfig({
	tsconfig: {
		make:{
			options: {
				/* The main feature is to put files in your tsconfig.json file based on this filesGlob... */
				filesGlob: [
					'components/app.ts',
					'components/**/*.module.ts',
					'components/**/*.ts',
					'!components/**/*.spec.ts'
				],

				/* if rootDir is provided, this will be the output-destination of the file, and the starting-point of the filesGlob */
				rootDir:'scripts/',

				/* Anything added to "additionalOptions" will also be put into the tsconfig.json file */
				additionalOptions: {
					compilerOptions:{
						"version":"1.5.0",
						"sourceMap": true
					},
				}

			}
		}
	}
	//...
});

Contributing

Issues and pull-requests are appreciated. Reach out on twitter @filipbech for questions.

Release History

0.1.0 Initial release

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

9 years ago

0.1.0

9 years ago