Skip to content

Commit 560d0ac

Browse files
committed
Create rush-stack-compiler-3.3 package.
1 parent b993a87 commit 560d0ac

28 files changed

+506
-30
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Ignore everything by default
2+
**
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'));
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "rush-stack-compiler-3.3-library-test",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "lib/index.js",
6+
"license": "MIT",
7+
"private": true,
8+
"scripts": {
9+
"build": "gulp test --clean"
10+
},
11+
"dependencies": {
12+
"@types/node": "8.5.8"
13+
},
14+
"devDependencies": {
15+
"@microsoft/node-library-build": "6.0.29",
16+
"@microsoft/rush-stack-compiler-3.3": "0.1.0",
17+
"gulp": "~3.9.1"
18+
}
19+
}
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+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "./node_modules/@microsoft/rush-stack-compiler-3.3/includes/tsconfig-node.json"
3+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "@microsoft/rush-stack-compiler-3.3/includes/tslint.json"
3+
}
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
// DO NOT ADD COMMENTS IN THIS FILE. They will be lost when the Rush tool resaves it.
22
{
33
"$schema": "https://developer.microsoft.com/json-schemas/rush/v5/approved-packages.schema.json",
4-
"packages": []
4+
"packages": [
5+
{
6+
"name": "@microsoft/rush-stack-compiler-3.3",
7+
"allowedCategories": [ "tests" ]
8+
}
9+
]
510
}

common/config/rush/common-versions.json

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"~2.7.2",
4242
"~2.9.2",
4343
"~3.0.3",
44+
"~3.1.6",
4445
"~3.2.4"
4546
]
4647
}

common/config/rush/shrinkwrap.yaml

+36
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ dependencies:
4646
'@rush-temp/rush-stack-compiler-3.1-library-test': 'file:projects/rush-stack-compiler-3.1-library-test.tgz'
4747
'@rush-temp/rush-stack-compiler-3.2': 'file:projects/rush-stack-compiler-3.2.tgz'
4848
'@rush-temp/rush-stack-compiler-3.2-library-test': 'file:projects/rush-stack-compiler-3.2-library-test.tgz'
49+
'@rush-temp/rush-stack-compiler-3.3': 'file:projects/rush-stack-compiler-3.3.tgz'
50+
'@rush-temp/rush-stack-compiler-3.3-library-test': 'file:projects/rush-stack-compiler-3.3-library-test.tgz'
4951
'@rush-temp/rush-stack-compiler-shared': 'file:projects/rush-stack-compiler-shared.tgz'
5052
'@rush-temp/rush-stack-library-test': 'file:projects/rush-stack-library-test.tgz'
5153
'@rush-temp/rushell': 'file:projects/rushell.tgz'
@@ -8575,6 +8577,13 @@ packages:
85758577
hasBin: true
85768578
resolution:
85778579
integrity: sha512-0RNDbSdEokBeEAkgNbxJ+BLwSManFy9TeXz8uW+48j/xhEXv1ePME60olyzw2XzUqUBNAYFeJadIqAgNqIACwg==
8580+
/typescript/3.3.3:
8581+
dev: false
8582+
engines:
8583+
node: '>=4.2.0'
8584+
hasBin: true
8585+
resolution:
8586+
integrity: sha512-Y21Xqe54TBVp+VDSNbuDYdGw0BpoR/Q6wo/+35M8PAU0vipahnyduJWirxxdxjsAkS7hue53x2zp8gz7F05u0A==
85788587
/uglify-js/2.8.29:
85798588
dependencies:
85808589
source-map: 0.5.7
@@ -9826,6 +9835,31 @@ packages:
98269835
integrity: sha512-sgA8pda2Hu7W4VOIffuhcbPZFlNN1nrmYeBuhF+DjcV7LGlhWcqdoBiUtDejYsuNlpRk1uwuJQ1Z8dQHEefsrQ==
98279836
tarball: 'file:projects/rush-stack-compiler-3.2.tgz'
98289837
version: 0.0.0
9838+
'file:projects/rush-stack-compiler-3.3-library-test.tgz':
9839+
dependencies:
9840+
'@types/node': 8.5.8
9841+
gulp: 3.9.1
9842+
dev: false
9843+
name: '@rush-temp/rush-stack-compiler-3.3-library-test'
9844+
resolution:
9845+
integrity: sha512-IARBR3c0gahlxjO7gjdM9qt55bordxn5PBk0Aufpk7KHYQiuUQF1Lz8l/CtXwU2zTcJaGY1mn/Yq+xGP0mudZQ==
9846+
tarball: 'file:projects/rush-stack-compiler-3.3-library-test.tgz'
9847+
version: 0.0.0
9848+
'file:projects/rush-stack-compiler-3.3.tgz':
9849+
dependencies:
9850+
'@microsoft/node-library-build': 6.0.29
9851+
'@microsoft/rush-stack-compiler-3.2': 0.2.2
9852+
'@types/node': 8.5.8
9853+
gulp: 3.9.1
9854+
tslint: 5.12.1
9855+
tslint-microsoft-contrib: /tslint-microsoft-contrib/5.2.1/[email protected]
9856+
typescript: 3.3.3
9857+
dev: false
9858+
name: '@rush-temp/rush-stack-compiler-3.3'
9859+
resolution:
9860+
integrity: sha512-qdjMzUeTqF/fc8fF9QmAsyXS0VKe2XVcSKKqV3VhM0uI6e62G7GKtwZZLN94ssylZHrL7guF/FTBZeyD+hd6SQ==
9861+
tarball: 'file:projects/rush-stack-compiler-3.3.tgz'
9862+
version: 0.0.0
98299863
'file:projects/rush-stack-compiler-shared.tgz':
98309864
dev: false
98319865
name: '@rush-temp/rush-stack-compiler-shared'
@@ -10009,6 +10043,8 @@ specifiers:
1000910043
'@rush-temp/rush-stack-compiler-3.1-library-test': 'file:./projects/rush-stack-compiler-3.1-library-test.tgz'
1001010044
'@rush-temp/rush-stack-compiler-3.2': 'file:./projects/rush-stack-compiler-3.2.tgz'
1001110045
'@rush-temp/rush-stack-compiler-3.2-library-test': 'file:./projects/rush-stack-compiler-3.2-library-test.tgz'
10046+
'@rush-temp/rush-stack-compiler-3.3': 'file:./projects/rush-stack-compiler-3.3.tgz'
10047+
'@rush-temp/rush-stack-compiler-3.3-library-test': 'file:./projects/rush-stack-compiler-3.3-library-test.tgz'
1001210048
'@rush-temp/rush-stack-compiler-shared': 'file:./projects/rush-stack-compiler-shared.tgz'
1001310049
'@rush-temp/rush-stack-library-test': 'file:./projects/rush-stack-library-test.tgz'
1001410050
'@rush-temp/rushell': 'file:./projects/rushell.tgz'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
// @beta
2+
declare class ApiExtractorRunner extends RushStackCompilerBase {
3+
// (undocumented)
4+
constructor(extractorConfig: IExtractorConfig, extractorOptions: IExtractorOptions, rootPath: string, terminalProvider: ITerminalProvider);
5+
// (undocumented)
6+
static apiExtractor: typeof ApiExtractor;
7+
// (undocumented)
8+
invoke(): Promise<void>;
9+
}
10+
11+
// @public (undocumented)
12+
interface ITslintRunnerConfig {
13+
displayAsError?: boolean;
14+
// (undocumented)
15+
fileError: WriteFileIssueFunction;
16+
// (undocumented)
17+
fileWarning: WriteFileIssueFunction;
18+
}
19+
20+
// @beta (undocumented)
21+
interface ITypescriptCompilerOptions {
22+
customArgs?: string[];
23+
}
24+
25+
// @beta (undocumented)
26+
declare abstract class RushStackCompilerBase<TOptions = {}> {
27+
// (undocumented)
28+
constructor(taskOptions: TOptions, rootPath: string, terminalProvider: ITerminalProvider);
29+
// (undocumented)
30+
protected _standardBuildFolders: StandardBuildFolders;
31+
// (undocumented)
32+
protected _taskOptions: TOptions;
33+
// (undocumented)
34+
protected _terminal: Terminal;
35+
}
36+
37+
// @alpha (undocumented)
38+
declare class ToolPackages {
39+
// (undocumented)
40+
static apiExtractor: typeof ApiExtractor;
41+
// (undocumented)
42+
static tslint: typeof Tslint;
43+
// (undocumented)
44+
static typescript: typeof Typescript;
45+
}
46+
47+
// @beta (undocumented)
48+
declare class ToolPaths {
49+
// (undocumented)
50+
static readonly tslintPackageJson: IPackageJson;
51+
// (undocumented)
52+
static readonly tslintPackagePath: string;
53+
// (undocumented)
54+
static readonly typescriptPackageJson: IPackageJson;
55+
// (undocumented)
56+
static readonly typescriptPackagePath: string;
57+
}
58+
59+
// @beta (undocumented)
60+
declare class TslintRunner extends RushStackCompilerBase<ITslintRunnerConfig> {
61+
// (undocumented)
62+
constructor(taskOptions: ITslintRunnerConfig, rootPath: string, terminalProvider: ITerminalProvider);
63+
// (undocumented)
64+
invoke(): Promise<void>;
65+
}
66+
67+
// @beta (undocumented)
68+
declare class TypescriptCompiler extends RushStackCompilerBase<ITypescriptCompilerOptions> {
69+
// (undocumented)
70+
constructor(rootPath: string, terminalProvider: ITerminalProvider);
71+
// (undocumented)
72+
constructor(taskOptions: ITypescriptCompilerOptions, rootPath: string, terminalProvider: ITerminalProvider);
73+
// (undocumented)
74+
invoke(): Promise<void>;
75+
}
76+
77+
// @beta (undocumented)
78+
declare type WriteFileIssueFunction = (filePath: string, line: number, column: number, errorCode: string, message: string) => void;
79+

common/reviews/api/rushell.api.json

-29
This file was deleted.

rush.json

+16
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,12 @@
407407
"reviewCategory": "tests",
408408
"shouldPublish": false
409409
},
410+
{
411+
"packageName": "rush-stack-compiler-3.3-library-test",
412+
"projectFolder": "build-tests/rush-stack-compiler-3.3-library-test",
413+
"reviewCategory": "tests",
414+
"shouldPublish": false
415+
},
410416
{
411417
"packageName": "rush-stack-library-test",
412418
"projectFolder": "build-tests/rush-stack-library-test",
@@ -592,6 +598,16 @@
592598
"@microsoft/rush-stack-compiler-3.2"
593599
]
594600
},
601+
{
602+
"packageName": "@microsoft/rush-stack-compiler-3.3",
603+
"projectFolder": "stack/rush-stack-compiler-3.3",
604+
"reviewCategory": "libraries",
605+
"shouldPublish": true,
606+
"cyclicDependencyProjects": [
607+
"@microsoft/node-library-build",
608+
"@microsoft/rush-stack-compiler-3.2"
609+
]
610+
},
595611
{
596612
"packageName": "@microsoft/rush-stack-compiler-shared",
597613
"projectFolder": "stack/rush-stack-compiler-shared",
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/src/shared
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Ignore everything by default
2+
**
3+
4+
# Use negative patterns to bring back the specific things we want to publish
5+
!/bin/**
6+
!/lib/**
7+
!/dist/**
8+
!/includes/**
9+
!ThirdPartyNotice.txt
10+
11+
12+
# Ignore certain files in the above folder
13+
/dist/*.stats.*
14+
/lib/**/test/*
15+
16+
# NOTE: These don't need to be specified, because NPM includes them automatically.
17+
#
18+
# package.json
19+
# README (and its variants)
20+
# CHANGELOG (and its variants)
21+
# LICENSE / LICENCE
22+
23+
## Project specific definitions
24+
# -----------------------------
25+
26+
# (Add your exceptions here)

stack/rush-stack-compiler-3.3/LICENSE

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
@microsoft/rush-stack
2+
3+
Copyright (c) Microsoft Corporation. All rights reserved.
4+
5+
MIT License
6+
7+
Permission is hereby granted, free of charge, to any person obtaining
8+
a copy of this software and associated documentation files (the
9+
"Software"), to deal in the Software without restriction, including
10+
without limitation the rights to use, copy, modify, merge, publish,
11+
distribute, sublicense, and/or sell copies of the Software, and to
12+
permit persons to whom the Software is furnished to do so, subject to
13+
the following conditions:
14+
15+
The above copyright notice and this permission notice shall be
16+
included in all copies or substantial portions of the Software.
17+
18+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
22+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
23+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
24+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# @microsoft/rush-stack-compiler-3.3
2+
3+
This package is an NPM peer dependency that is used with
4+
[@microsoft/rush-stack](https://www.npmjs.com/package/@microsoft/rush-stack)
5+
to select a TypeScript compiler version. This variant selects TypeScript 3.3
6+
7+
It provides a supported set of versions for the following components:
8+
9+
- the TypeScript compiler
10+
- [tslint](https://github.com/palantir/tslint#readme)
11+
- [API Extractor](https://api-extractor.com/)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env node
2+
require("@microsoft/api-extractor/bin/api-extractor");
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env node
2+
require('typescript/bin/tsc');
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env node
2+
require("tslint/bin/tslint");
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/api-extractor.schema.json",
3+
"project": {
4+
"entryPointSourceFile": "lib/shared/index.d.ts"
5+
},
6+
"compiler": {
7+
"rootFolder": ".",
8+
"configType": "tsconfig"
9+
},
10+
"apiReviewFile": {
11+
"enabled": true,
12+
"apiReviewFolder": "../../common/reviews/api"
13+
},
14+
"apiJsonFile": {
15+
"enabled": true,
16+
"outputFolder": "./temp"
17+
}
18+
}
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
'use strict';
2+
3+
const build = require('@microsoft/node-library-build');
4+
const path = require('path');
5+
6+
const sharedDir = path.join(__dirname, 'src', 'shared');
7+
build.preCopy.setConfig({
8+
copyTo: {
9+
[sharedDir]: [
10+
path.join(__dirname, 'node_modules', '@microsoft', 'rush-stack-compiler-shared', 'src', 'shared', '**', '*')
11+
]
12+
}
13+
});
14+
15+
build.preCopy.cleanMatch = [sharedDir];
16+
17+
build.initialize(require('gulp'));

0 commit comments

Comments
 (0)