Skip to content

Commit 569fd5c

Browse files
Setup repo for TypeScript development with grunt
1 parent f4fbf4c commit 569fd5c

File tree

5 files changed

+137
-1
lines changed

5 files changed

+137
-1
lines changed

.gitignore

+29
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,32 @@ jspm_packages
3535

3636
# Optional REPL history
3737
.node_repl_history
38+
39+
npm-debug.log
40+
node_modules
41+
docs/html
42+
tscommand*.tmp.txt
43+
.tscache/
44+
*.seed
45+
*.log
46+
*.csv
47+
*.dat
48+
*.out
49+
*.pid
50+
*.gz
51+
*.tgz
52+
*.tmp
53+
*.sublime-workspace
54+
55+
pids
56+
logs
57+
results
58+
scratch/
59+
.idea/
60+
.settings/
61+
.vscode/
62+
test-reports.xml
63+
64+
*.js
65+
*.js.map
66+
/lib/.d.ts

.npmignore

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
.idea
2+
.gitattributes
3+
.gitmodules
4+
*.sublime-project
5+
lint.*
6+
.jshint*
7+
.npmignore
8+
*.tgz
9+
test-reports.xml
10+
for-developers.md
11+
prepublish.js
12+
Gruntfile.js
13+
BuildPackage.cmd
14+
tscommand.tmp.txt
15+
.tscache/
16+
17+
bin/nativescript
18+
bin/*.cmd
19+
20+
lib/**/*.ts
21+
lib/**/*.js.map
22+
23+
test/
24+
.vscode
25+
coverage/
26+
scratch/
27+
*.suo
28+
.travis.yml
29+
docs/html/
30+
dev/

package.json

+12-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,16 @@
2020
"bugs": {
2121
"url": "https://github.com/NativeScript/nativescript-doctor/issues"
2222
},
23-
"homepage": "https://github.com/NativeScript/nativescript-doctor#readme"
23+
"homepage": "https://github.com/NativeScript/nativescript-doctor#readme",
24+
"devDependencies": {
25+
"grunt": "1.0.1",
26+
"grunt-contrib-clean": "1.0.0",
27+
"grunt-shell": "2.0.0",
28+
"grunt-ts": "6.0.0-beta.3",
29+
"grunt-tslint": "3.3.0",
30+
"istanbul": "0.4.5",
31+
"mocha": "3.1.2",
32+
"tslint": "3.15.1",
33+
"typescript": "2.0.3"
34+
}
2435
}

tsconfig.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es5",
4+
"module": "commonjs",
5+
"sourceMap": true,
6+
"declaration": false,
7+
"removeComments": false,
8+
"noImplicitAny": true,
9+
"experimentalDecorators": true
10+
},
11+
"exclude": [
12+
"node_modules",
13+
"lib/common/node_modules",
14+
"scratch",
15+
"coverage"
16+
]
17+
}

tslint.json

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"rules": {
3+
"class-name": true,
4+
"curly": true,
5+
"eofline": true,
6+
"indent": true,
7+
"interface-name": true,
8+
"jsdoc-format": true,
9+
"max-line-length": [false, 140],
10+
"no-consecutive-blank-lines": true,
11+
"no-construct": true,
12+
"no-debugger": true,
13+
"no-duplicate-key": true,
14+
"no-duplicate-variable": true,
15+
"no-shadowed-variable": true,
16+
"no-empty": true,
17+
"no-eval": true,
18+
"no-switch-case-fall-through": true,
19+
"no-trailing-whitespace": true,
20+
"no-unreachable": true,
21+
"no-unused-expression": true,
22+
"no-unused-variable": true,
23+
"no-use-before-declare": true,
24+
"no-var-keyword": true,
25+
"no-var-requires": false,
26+
"one-line": [
27+
true,
28+
"check-open-brace",
29+
"check-catch",
30+
"check-else"
31+
],
32+
"quotemark": [false, "double"],
33+
"semicolon": true,
34+
"switch-default": false,
35+
"triple-equals": [true, "allow-null-check"],
36+
"use-strict": true,
37+
"variable-name": [false, "allow-leading-underscore"],
38+
"whitespace": [
39+
false,
40+
"check-branch",
41+
"check-decl",
42+
"check-operator",
43+
"check-module",
44+
"check-separator",
45+
"check-type",
46+
"check-typecast"
47+
]
48+
}
49+
}

0 commit comments

Comments
 (0)