Skip to content

Commit 70b2527

Browse files
committed
Add skeletons for new projects: rush-stack, rush-stack-compiler, rush-stack-library-test
1 parent 8c4fdfc commit 70b2527

12 files changed

Lines changed: 296 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "rush-stack-library-test",
3+
"version": "0.1.0",
4+
"private": true,
5+
"description": "",
6+
"main": "dist/tsdoc.js",
7+
"scripts": {
8+
"clean": "node_modules/.bin/rush-stack clean",
9+
"build": "node_modules/.bin/rush-stack build",
10+
"test": "node_modules/.bin/rush-stack test"
11+
},
12+
"dependencies": {
13+
"@microsoft/rush-stack": "~0.1.0",
14+
"@microsoft/rush-stack-compiler": "~0.1.0"
15+
}
16+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
2+
// See LICENSE in the project root for license information.
3+
4+
export class TestClass {
5+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "http://json.schemastore.org/tsconfig",
3+
"extends": "./node_modules/@microsoft/rush-stack/defaults/tsconfig"
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "http://json.schemastore.org/tslint",
3+
"extends": "./node_modules/@microsoft/rush-stack/defaults/tsconfig"
4+
}

rush.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@
7878
"reviewCategory": "tests",
7979
"shouldPublish": false
8080
},
81+
{
82+
"packageName": "rush-stack-library-test",
83+
"projectFolder": "build-tests/rush-stack-library-test",
84+
"reviewCategory": "tests",
85+
"shouldPublish": false
86+
},
8187
{
8288
"packageName": "web-library-build-test",
8389
"projectFolder": "build-tests/web-library-build-test",
@@ -200,6 +206,20 @@
200206
]
201207
},
202208

209+
// "stack" folder (alphabetical order)
210+
{
211+
"packageName": "@microsoft/rush-stack",
212+
"projectFolder": "stack/rush-stack",
213+
"reviewCategory": "libraries",
214+
"shouldPublish": false
215+
},
216+
{
217+
"packageName": "@microsoft/rush-stack-compiler",
218+
"projectFolder": "stack/rush-stack-compiler",
219+
"reviewCategory": "libraries",
220+
"shouldPublish": false
221+
},
222+
203223
// "webpack" folder (alphabetical order)
204224
{
205225
"packageName": "@microsoft/loader-load-themed-styles",
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "@microsoft/rush-stack-compiler",
3+
"version": "0.1.0",
4+
"private": true,
5+
"description": "",
6+
"bin": {
7+
"rush-api-extractor": "./bin/rush-api-extractor",
8+
"rush-tsc": "./bin/rush-tsc",
9+
"rush-tslint": "./bin/rush-tslint"
10+
},
11+
"scripts": {
12+
"build": ""
13+
},
14+
"dependencies": {
15+
"@microsoft/api-extractor": "5.6.3",
16+
"tslint": "~5.9.1",
17+
"tslint-microsoft-contrib": "~5.0.2",
18+
"typescript": "~2.4.1"
19+
}
20+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"$schema": "http://json.schemastore.org/tsconfig",
3+
4+
"compilerOptions": {
5+
"outDir": "../../../../lib",
6+
7+
"target": "es6",
8+
"forceConsistentCasingInFileNames": true,
9+
"module": "commonjs",
10+
"declaration": true,
11+
"sourceMap": true,
12+
"experimentalDecorators": true,
13+
"types": [ ],
14+
"lib": [
15+
"es5",
16+
"scripthost",
17+
"es2015.collection",
18+
"es2015.promise",
19+
"es2015.iterable",
20+
"dom"
21+
],
22+
"strictNullChecks": true
23+
},
24+
25+
"include": [
26+
"../../../../src/**/*.ts",
27+
"../../../../src/**/*.tsx"
28+
]
29+
}
Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
{
2+
"$schema": "http://json.schemastore.org/tslint",
3+
4+
"rules": {
5+
"class-name": true,
6+
"comment-format": [true, "check-space"],
7+
"curly": true,
8+
"eofline": false,
9+
"export-name": true,
10+
"forin": true,
11+
"indent": [true, "spaces", 2],
12+
"interface-name": true,
13+
"label-position": true,
14+
"max-line-length": [true, 120],
15+
"member-access": true,
16+
"member-ordering": [
17+
true,
18+
{
19+
"order": [
20+
"public-static-field",
21+
"protected-static-field",
22+
"private-static-field",
23+
"public-instance-field",
24+
"protected-instance-field",
25+
"private-instance-field",
26+
"public-static-method",
27+
"protected-static-method",
28+
"private-static-method",
29+
"public-constructor",
30+
"public-instance-method",
31+
"protected-constructor",
32+
"protected-instance-method",
33+
"private-constructor",
34+
"private-instance-method"
35+
]
36+
}
37+
],
38+
"missing-optional-annotation": true,
39+
"no-arg": true,
40+
"no-any": true,
41+
"no-bitwise": true,
42+
"no-consecutive-blank-lines": true,
43+
"no-console": [
44+
true,
45+
"debug",
46+
"info",
47+
"time",
48+
"timeEnd",
49+
"trace"
50+
],
51+
"no-constant-condition": true,
52+
"no-construct": true,
53+
"no-debugger": true,
54+
"no-duplicate-switch-case": true,
55+
"no-duplicate-parameter-names": true,
56+
"no-duplicate-variable": true,
57+
"no-empty": true,
58+
"no-eval": true,
59+
"no-function-expression": true,
60+
"no-inferrable-types": false,
61+
"no-internal-module": true,
62+
"no-null-keyword": true,
63+
"no-shadowed-variable": true,
64+
"no-string-literal": true,
65+
"no-switch-case-fall-through": true,
66+
"no-trailing-whitespace": true,
67+
"no-unnecessary-semicolons": true,
68+
"no-unused-expression": true,
69+
"no-unused-variable": true,
70+
"no-use-before-declare": true,
71+
"no-with-statement": true,
72+
"no-var-keyword": true,
73+
"object-literal-sort-keys": false,
74+
"one-line": [
75+
true,
76+
"check-open-brace",
77+
"check-catch",
78+
"check-else",
79+
"check-whitespace"
80+
],
81+
"quotemark": [true, "single", "avoid-escape"],
82+
"prefer-const": true,
83+
"radix": true,
84+
"semicolon": true,
85+
"trailing-comma": [
86+
true,
87+
{
88+
"multiline": "never",
89+
"singleline": "never"
90+
}
91+
],
92+
"triple-equals": [true, "allow-null-check"],
93+
"typedef": [
94+
true,
95+
"call-signature",
96+
"parameter",
97+
"property-declaration",
98+
"variable-declaration",
99+
"member-variable-declaration"
100+
],
101+
"typedef-whitespace": [
102+
true,
103+
{
104+
"call-signature": "nospace",
105+
"index-signature": "nospace",
106+
"parameter": "nospace",
107+
"property-declaration": "nospace",
108+
"variable-declaration": "nospace"
109+
}
110+
],
111+
"use-isnan": true,
112+
"use-named-parameter": true,
113+
"variable-name": [true, "check-format", "allow-leading-underscore", "ban-keywords"],
114+
"whitespace": [
115+
true,
116+
"check-branch",
117+
"check-decl",
118+
"check-operator",
119+
"check-separator",
120+
"check-type"
121+
]
122+
}
123+
}

stack/rush-stack/gulpfile.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
'use strict';
2+
3+
const build = require('@microsoft/node-library-build');
4+
5+
build.initialize(require('gulp'));

stack/rush-stack/package.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "@microsoft/rush-stack",
3+
"version": "0.1.0",
4+
"private": true,
5+
"description": "",
6+
"main": "lib/start.js",
7+
"bin": {
8+
"rush-stack": "./bin/rush-stack"
9+
},
10+
"scripts": {
11+
"build": "gulp test --clean"
12+
},
13+
"dependencies": {
14+
"@microsoft/node-core-library": "1.2.0",
15+
"@microsoft/ts-command-line" : "3.1.1",
16+
"colors": "~1.2.1",
17+
"fs-extra": "~5.0.0"
18+
},
19+
"devDependencies": {
20+
"@microsoft/node-library-build": "4.3.31",
21+
"@types/colors": "1.2.1",
22+
"@types/fs-extra": "5.0.1",
23+
"@types/node": "8.5.8",
24+
"gulp": "~3.9.1"
25+
},
26+
"peerDependencies": {
27+
"@microsoft/rush-stack-compiler": "*"
28+
}
29+
}

0 commit comments

Comments
 (0)