Skip to content

Commit 40a5119

Browse files
committed
remove reference comment from source code
1 parent 1de338e commit 40a5119

File tree

5 files changed

+117
-28
lines changed

5 files changed

+117
-28
lines changed

Gruntfile.js

+10-23
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,15 @@ module.exports = function (grunt) {
1414
},
1515

1616
ts: {
17-
options: {
18-
compile: true, // perform compilation. [true (default) | false]
19-
comments: true, // same as !removeComments. [true | false (default)]
20-
target: 'es5', // target javascript language. [es3 (default) | es5]
21-
module: 'commonjs', // target javascript module style. [amd (default) | commonjs]
22-
noImplicitAny: true,
23-
sourceMap: true, // generate a source map for every output js file. [true (default) | false]
24-
sourceRoot: '', // where to locate TypeScript files. [(default) '' == source ts location]
25-
mapRoot: '', // where to locate .map.js files. [(default) '' == generated js location.]
26-
declaration: false // generate a declaration .d.ts file for every output js file. [true | false (default)]
27-
},
28-
clientMain: {
29-
src: [
30-
'<%= opt.client.tsMain %>/index.ts',
31-
'typings/node/*.d.ts'
32-
],
33-
options: {
34-
declaration: true
17+
default: {
18+
tsconfig: {
19+
tsconfig: "./tsconfig.json",
20+
updateFiles:false
3521
}
36-
},
37-
clientTest: {
38-
src: ['<%= opt.client.tsTest %>/indexSpec.ts']
22+
}
23+
},
24+
tsconfig: {
25+
main: {
3926
}
4027
},
4128
tslint: {
@@ -121,11 +108,11 @@ module.exports = function (grunt) {
121108

122109
grunt.registerTask(
123110
'default',
124-
['ts:clientMain', 'tslint']);
111+
['tsconfig', 'ts', 'tslint']);
125112

126113
grunt.registerTask(
127114
'test',
128-
['default', 'ts:clientTest', 'mochaTest']);
115+
['default', 'mochaTest']);
129116

130117
require('load-grunt-tasks')(grunt);
131118
};

lib/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/// <reference path="../node_modules/typescript/lib/lib.es6.d.ts" />
2-
31
"use strict";
42

53
try {

npm-shrinkwrap.json

+80-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"grunt-dtsm": "0.2.9",
2929
"grunt-mocha-test": "0.12.7",
3030
"grunt-ts": "5.0.0-beta.5",
31+
"grunt-tsconfig-update": "0.0.1",
3132
"grunt-tslint": "2.5.0",
3233
"grunt-typedoc": "0.2.2",
3334
"load-grunt-tasks": "3.2.0",

tsconfig.json

+26-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,31 @@
1111
"newLine": "LF",
1212
"noEmitOnError": true
1313
},
14-
"exclude": [
15-
"node_modules"
14+
"filesGlob": [
15+
"./**/*.ts",
16+
"./**/*.tsx",
17+
"!./**/*.d.ts",
18+
"./typings/**/*.d.ts",
19+
"!./example/**/*.ts",
20+
"!./node_modules/**/*",
21+
"./node_modules/typescript/lib/lib.es6.d.ts"
22+
],
23+
"files": [
24+
"./lib/argument.ts",
25+
"./lib/command.ts",
26+
"./lib/index.ts",
27+
"./lib/option.ts",
28+
"./lib/utils.ts",
29+
"./test/argumentSpec.ts",
30+
"./test/commandSpec.ts",
31+
"./test/indexSpec.ts",
32+
"./test/optionSpec.ts",
33+
"./test/utilsSpec.ts",
34+
"./typings/empower/empower.d.ts",
35+
"./typings/mocha/mocha.d.ts",
36+
"./typings/node/node.d.ts",
37+
"./typings/power-assert-formatter/power-assert-formatter.d.ts",
38+
"./typings/power-assert/power-assert.d.ts",
39+
"./node_modules/typescript/lib/lib.es6.d.ts"
1640
]
1741
}

0 commit comments

Comments
 (0)