Skip to content

Commit d89fd8c

Browse files
committed
Add a new "@rushstack/rush-sdk" project
1 parent 26176c4 commit d89fd8c

File tree

13 files changed

+157
-7
lines changed

13 files changed

+157
-7
lines changed

apps/rush-sdk/.eslintrc.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// This is a workaround for https://github.com/eslint/eslint/issues/3458
2+
require('@rushstack/eslint-config/patch/modern-module-resolution');
3+
4+
module.exports = {
5+
extends: [
6+
'@rushstack/eslint-config/profile/node-trusted-tool',
7+
'@rushstack/eslint-config/mixins/friendly-locals'
8+
],
9+
parserOptions: { tsconfigRootDir: __dirname }
10+
};

apps/rush-sdk/.npmignore

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# THIS IS A STANDARD TEMPLATE FOR .npmignore FILES IN THIS REPO.
2+
3+
# Ignore all files by default, to avoid accidentally publishing unintended files.
4+
*
5+
6+
# Use negative patterns to bring back the specific things we want to publish.
7+
!/bin/**
8+
!/lib/**
9+
!/lib-*/**
10+
!/dist/**
11+
!ThirdPartyNotice.txt
12+
13+
# Ignore certain patterns that should not get published.
14+
/dist/*.stats.*
15+
/lib/**/test/
16+
/lib-*/**/test/
17+
*.test.js
18+
19+
# NOTE: These don't need to be specified, because NPM includes them automatically.
20+
#
21+
# package.json
22+
# README (and its variants)
23+
# CHANGELOG (and its variants)
24+
# LICENSE / LICENCE
25+
26+
#--------------------------------------------
27+
# DO NOT MODIFY THE TEMPLATE ABOVE THIS LINE
28+
#--------------------------------------------
29+
30+
# (Add your project-specific overrides here)

apps/rush-sdk/LICENSE

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
@rushstack/rush-sdk
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.

apps/rush-sdk/config/jest.config.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "@rushstack/heft-node-rig/profiles/default/config/jest.config.json"
3+
}

apps/rush-sdk/config/rig.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
// The "rig.json" file directs tools to look for their config files in an external package.
3+
// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package
4+
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
5+
6+
"rigPackageName": "@rushstack/heft-node-rig"
7+
}

apps/rush-sdk/package.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "@rushstack/rush-sdk",
3+
"version": "5.56.0",
4+
"description": "An API for interacting with the Rush engine",
5+
"repository": {
6+
"type": "git",
7+
"url": "https://github.com/microsoft/rushstack.git",
8+
"directory": "apps/rush-sdk"
9+
},
10+
"engines": {
11+
"node": ">=5.6.0"
12+
},
13+
"engineStrict": true,
14+
"homepage": "https://rushjs.io",
15+
"main": "lib/index.js",
16+
"typings": "dist/rush-sdk.d.ts",
17+
"scripts": {
18+
"build": "heft test --clean"
19+
},
20+
"license": "MIT",
21+
"dependencies": {
22+
"@rushstack/node-core-library": "workspace:*",
23+
"node-fetch": "2.6.2",
24+
"tapable": "2.2.1"
25+
},
26+
"devDependencies": {
27+
"@microsoft/rush-lib": "workspace:*",
28+
"@rushstack/eslint-config": "workspace:*",
29+
"@rushstack/heft": "workspace:*",
30+
"@rushstack/heft-node-rig": "workspace:*",
31+
"@types/heft-jest": "1.0.1",
32+
"@types/node": "12.20.24",
33+
"@types/semver": "7.3.5"
34+
}
35+
}

apps/rush-sdk/tsconfig.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "./node_modules/@rushstack/heft-node-rig/profiles/default/tsconfig-base.json",
3+
"compilerOptions": {
4+
"types": ["heft-jest", "node"]
5+
}
6+
}

common/config/rush/nonbrowser-approved-packages.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,10 @@
158158
"name": "@rushstack/rig-package",
159159
"allowedCategories": [ "libraries" ]
160160
},
161+
{
162+
"name": "@rushstack/rush-sdk",
163+
"allowedCategories": [ "libraries" ]
164+
},
161165
{
162166
"name": "@rushstack/set-webpack-public-path-plugin",
163167
"allowedCategories": [ "libraries", "tests" ]

common/config/rush/pnpm-lock.yaml

Lines changed: 29 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common/config/rush/repo-state.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// DO NOT MODIFY THIS FILE MANUALLY BUT DO COMMIT IT. It is generated and used by Rush.
22
{
3-
"pnpmShrinkwrapHash": "6fb47170b2ca1ebbe393e6ec6f24d3e9ea55b4dd",
3+
"pnpmShrinkwrapHash": "39a04ceec39f9f8f00b7f3589d45d93165eb0165",
44
"preferredVersionsHash": "fe0ea762c60633ea39d8abd6f7e0791352654f89"
55
}

0 commit comments

Comments
 (0)