File tree Expand file tree Collapse file tree 9 files changed +103
-0
lines changed
repo-scripts/repo-toolbox Expand file tree Collapse file tree 9 files changed +103
-0
lines changed Original file line number Diff line number Diff line change 1+ 'use strict' ;
2+
3+ const build = require ( '@microsoft/node-library-build' ) ;
4+
5+ build . initialize ( require ( 'gulp' ) ) ;
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " repo-toolbox" ,
3+ "version" : " 1.0.0" ,
4+ "private" : true ,
5+ "description" : " Used to execute various operations specific to this repo" ,
6+ "license" : " MIT" ,
7+ "scripts" : {
8+ "build" : " gulp test --clean"
9+ },
10+ "dependencies" : {
11+ "@microsoft/node-core-library" : " 3.15.0" ,
12+ "@microsoft/rush-lib" : " 5.13.1" ,
13+ "@microsoft/ts-command-line" : " 4.3.1"
14+ },
15+ "devDependencies" : {
16+ "@microsoft/rush-stack-compiler-3.4" : " 0.2.2" ,
17+ "@microsoft/node-library-build" : " 6.2.2" ,
18+ "@types/node" : " 8.10.54" ,
19+ "gulp" : " ~4.0.2"
20+ }
21+ }
Original file line number Diff line number Diff line change 1+ @ echo off
2+ node ./lib/start.js %*
Original file line number Diff line number Diff line change 1+ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
2+ // See the @microsoft /rush package's LICENSE file for license information.
3+
4+ import {
5+ CommandLineAction
6+ } from '@microsoft/ts-command-line' ;
7+
8+ export class ReadmeAction extends CommandLineAction {
9+ public constructor ( ) {
10+ super ( {
11+ actionName : 'readme' ,
12+ summary : 'Generates README.md project table based on rush.json inventory' ,
13+ documentation : 'Use this to update the repo\'s README.md'
14+ } ) ;
15+ }
16+
17+ protected onExecute ( ) : Promise < void > { // abstract
18+ console . log ( 'hi' ) ;
19+ return Promise . resolve ( ) ;
20+ }
21+
22+ protected onDefineParameters ( ) : void { // abstract
23+ }
24+ }
Original file line number Diff line number Diff line change 1+ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
2+ // See the @microsoft /rush package's LICENSE file for license information.
3+
4+ import {
5+ CommandLineParser
6+ } from '@microsoft/ts-command-line' ;
7+ import { ReadmeAction } from './ReadmeAction' ;
8+
9+ export class ToolboxCommandLine extends CommandLineParser {
10+
11+ public constructor ( ) {
12+ super ( {
13+ toolFilename : 'toolbox' ,
14+ toolDescription : 'Used to execute various operations specific to this repo'
15+ } ) ;
16+
17+ this . addAction ( new ReadmeAction ( ) ) ;
18+ }
19+
20+ protected onDefineParameters ( ) : void { // abstract
21+ }
22+
23+ protected onExecute ( ) : Promise < void > { // override
24+ return super . onExecute ( ) ;
25+ }
26+ }
Original file line number Diff line number Diff line change 1+ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
2+ // See the @microsoft /rush package's LICENSE file for license information.
3+
4+ import { ToolboxCommandLine } from './ToolboxCommandLine' ;
5+
6+ const commandLine : ToolboxCommandLine = new ToolboxCommandLine ( ) ;
7+ commandLine . execute ( ) ;
Original file line number Diff line number Diff line change 1+ {
2+ "extends" : " ./node_modules/@microsoft/rush-stack-compiler-3.4/includes/tsconfig-node.json" ,
3+
4+ "compilerOptions" : {
5+ "types" : [
6+ " node"
7+ ]
8+ }
9+ }
Original file line number Diff line number Diff line change 1+ {
2+ "extends" : " @microsoft/rush-stack-compiler-3.4/includes/tslint.json"
3+ }
Original file line number Diff line number Diff line change 644644 "reviewCategory" : " libraries" ,
645645 "shouldPublish" : false
646646 },
647+ {
648+ "packageName" : " repo-toolbox" ,
649+ "projectFolder" : " repo-scripts/repo-toolbox" ,
650+ "reviewCategory" : " libraries" ,
651+ "shouldPublish" : false
652+ },
647653
648654 // "stack" folder (alphabetical order)
649655 {
You can’t perform that action at this time.
0 commit comments