This repository has been archived on 2019-05-14. You can view files and clone it, but cannot push or open issues or pull requests.
Typertext/node_modules/grunt-typescript/package.json

54 lines
4.0 KiB
JSON

{
"author": {
"name": "kazuhide maruyama"
},
"name": "grunt-typescript",
"description": "compile typescript to javascript",
"version": "0.2.8",
"homepage": "https://github.com/k-maru/grunt-typescript",
"repository": {
"type": "git",
"url": "git@github.com:k-maru/grunt-typescript.git"
},
"bugs": {
"url": "https://github.com/k-maru/grunt-typescript/issues"
},
"licenses": [
{
"type": "MIT",
"url": "https://github.com/k-maru/grunt-typescript/blob/master/LICENSE"
}
],
"main": "Gruntfile.js",
"scripts": {
"start": "grunt build",
"test": "grunt test"
},
"engines": {
"node": ">= 0.8.0"
},
"dependencies": {
"typescript": "0.9.7"
},
"peerDependencies": {
"grunt": "~0.4.2"
},
"devDependencies": {
"grunt": "~0.4.2",
"typescript": "0.9.7",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-nodeunit": "~0.2.2",
"grunt-exec": "~0.4.2",
"q": "~1.0.0"
},
"optionalDependencies": {},
"keywords": [
"gruntplugin",
"typescript"
],
"readme": "grunt-typescript [![Build Status](https://travis-ci.org/k-maru/grunt-typescript.png?branch=master)](https://travis-ci.org/k-maru/grunt-typescript)\r\n================\r\n\r\nCompile TypeScript\r\n\r\n## Documentation\r\nYou'll need to install `grunt-typescript` first:\r\n\r\n npm install grunt-typescript --save-dev\r\n\r\nThen modify your `Gruntfile.js` file by adding the following line:\r\n\r\n grunt.loadNpmTasks('grunt-typescript');\r\n\r\nThen add some configuration for the plugin like so:\r\n\r\n grunt.initConfig({\r\n ...\r\n typescript: {\r\n base: {\r\n src: ['path/to/typescript/files/**/*.ts'],\r\n dest: 'where/you/want/your/js/files',\r\n options: {\r\n module: 'amd', //or commonjs\r\n target: 'es5', //or es3\r\n base_path: 'path/to/typescript/files',\r\n sourcemap: true,\r\n declaration: true\r\n }\r\n }\r\n },\r\n ...\r\n });\r\n \r\nIf you want to create a js file that is a concatenation of all the ts file (like -out option from tsc), \r\nyou should specify the name of the file with the '.js' extension to dest option.\r\n\r\n grunt.initConfig({\r\n ...\r\n typescript: {\r\n base: {\r\n src: ['path/to/typescript/files/**/*.ts'],\r\n dest: 'where/you/want/your/js/file.js',\r\n options: {\r\n module: 'amd', //or commonjs\r\n }\r\n }\r\n },\r\n ...\r\n });\r\n\r\n##Options\r\n\r\n###nolib `boolean`\r\nDo not include a default lib.d.ts with global declarations\r\n\r\n###target `string`\r\nSpecify ECMAScript target version: \"ES3\" (default) or \"ES5\"\r\n\r\n###module `string`\r\nSpecify module code generation: \"commonjs\" (default) or \"amd\"\r\n\r\n###sourcemap `boolean`\r\nGenerates corresponding .map files\r\n\r\n###declaration `boolean`\r\nGenerates corresponding .d.ts file\r\n\r\n###comments `boolean`\r\nEmit comments to output\r\n\r\n###noImplicitAny `boolean`\r\nWarn on expressions and declarations with an implied 'any' type.\r\n\r\n##Original Options\r\n\r\n###newLine `string`\r\nSpecify newline code: \"auto\" (default) or \"crlf\" or \"lf\". This options is experimental.\r\n\r\n###indentStep `number`\r\nSpecify space indent count for code generation: This value will be disregarded if the useTabIndent option is specified. This options is experimental.\r\n\r\n###useTabIndent `boolean`\r\nSpecify tab indent for code generation: false (default) or true. This options is experimental.\r\n\r\n###ignoreTypeCheck `boolean`\r\nDefault value is true. This options is experimental.\r\n\r\n###disallowAsi `boolean`\r\nDo not allow auto semicolon insertion. This options is experimental.\r\n\r\n###base_path `string`\r\n\r\n※I'm sorry for poor English\r\n",
"readmeFilename": "README.md",
"_id": "grunt-typescript@0.2.8",
"_from": "grunt-typescript@~0.2.7"
}