From 3512ee0e5c4b5a89cfea37b3568b6d2cd5dd7d38 Mon Sep 17 00:00:00 2001 From: Garrett Serack Date: Thu, 5 Sep 2019 08:42:09 -0700 Subject: [PATCH] initial submodule import --- .gitmodules | 16 +++++ .scripts/verify-install.ps1 | 29 +++++++++ .vscode/launch.json | 9 +++ .vscode/settings.json | 122 ++++++++++++++++++++++++++++++++++++ autorest | 1 + autorest.powershell | 1 + autorest.remodeler | 1 + perks | 1 + rush.json | 30 +-------- 9 files changed, 183 insertions(+), 27 deletions(-) create mode 100644 .gitmodules create mode 100644 .scripts/verify-install.ps1 create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json create mode 160000 autorest create mode 160000 autorest.powershell create mode 160000 autorest.remodeler create mode 160000 perks diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..10580ad --- /dev/null +++ b/.gitmodules @@ -0,0 +1,16 @@ +[submodule "perks"] + path = perks + url = https://github.com/azure/perks + branch = move-to-azure +[submodule "autorest.powershell"] + path = autorest.powershell + url = https://github.com/azure/autorest.powershell + branch = reorg +[submodule "autorest"] + path = autorest + url = https://github.com/azure/autorest + branch = oai3-reorg +[submodule "autorest.remodeler"] + path = autorest.remodeler + url = https://github.com/azure/autorest.remodeler + branch = master diff --git a/.scripts/verify-install.ps1 b/.scripts/verify-install.ps1 new file mode 100644 index 0000000..343e887 --- /dev/null +++ b/.scripts/verify-install.ps1 @@ -0,0 +1,29 @@ +$ErrorActionPreference = 'silentlycontinue' +write-host -fore green "Verifying requirements to build.`n" + +write-host -fore cyan -NoNewline " Rush: " + +$rush = get-command rush +if ( -not $rush ) { + write-host -fore red "NOT INSTALLED." + write-host -fore cyan " You must install 'rush' to continue:" + write-host -fore yellow ' > npm install -g "@microsoft/rush"' + write-host -fore red "`n`n`n" + exit 1 +} +write-host -fore green "INSTALLED" + +write-host -fore green "`nAll requirements met.`n" + +write-host -fore cyan "Common rush commands:" +write-host -fore yellow ' > rush update ' -NoNewline +write-host -fore gray ' # installs package dependencies ' + +write-host -fore yellow ' > rush rebuild ' -NoNewline +write-host -fore gray ' # rebuilds all libraries' + +write-host -fore yellow ' > rush watch ' -NoNewline +write-host -fore gray ' # continual build when files change' + +write-host "`n`n`n" +exit 0 \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..7d14ecc --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,9 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + {} + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..d53a9f2 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,122 @@ +// Place your settings in this file to overwrite default and user settings. +{ + "files.eol": "\n", + "files.exclude": { + "**/common/temp/**": true, + "node_modules/**": true, + "**/dist/**": true, + "**/node_modules/**": true, + "**/*.js.map": true, + "**/*.js": { + "when": "$(basename).ts" + }, + "**/*.d.tsx": { + "when": "$(basename).ts" + }, + "**/.git": true, + "**/.svn": true, + "**/.hg": true, + "**/.DS_Store": true + }, + "[javascript]": { + "editor.formatOnSave": true, + "editor.formatOnPaste": true, + "editor.tabSize": 2, + "editor.detectIndentation": false + }, + "[typescript]": { + "editor.formatOnSave": true, + "editor.formatOnPaste": true, + "editor.tabSize": 2, + "editor.detectIndentation": false + }, + "[json]": { + "editor.formatOnSave": true, + "editor.formatOnPaste": true, + "editor.tabSize": 2, + "editor.detectIndentation": false + }, + "[jsonc]": { + "editor.formatOnSave": true, + "editor.formatOnPaste": true, + "editor.tabSize": 2, + "editor.detectIndentation": false + }, + "files.associations": { + "rush.json": "jsonc" + }, + "eslint.workingDirectories": [ + { + "changeProcessCWD": true, + "directory": "./libraries/async-io", + }, + { + "changeProcessCWD": true, + "directory": "./libraries/autorest-extension-base", + }, + { + "changeProcessCWD": true, + "directory": "./libraries/codegen", + }, + { + "changeProcessCWD": true, + "directory": "./libraries/codegen-csharp", + }, + { + "changeProcessCWD": true, + "directory": "./libraries/codemodel-v3", + }, + { + "changeProcessCWD": true, + "directory": "./libraries/datastore", + }, + { + "changeProcessCWD": true, + "directory": "./libraries/deduplication", + }, + { + "changeProcessCWD": true, + "directory": "./libraries/eventing", + }, + { + "changeProcessCWD": true, + "directory": "./libraries/extension", + }, + { + "changeProcessCWD": true, + "directory": "./libraries/linq", + }, + { + "changeProcessCWD": true, + "directory": "./libraries/oai2-to-oai3", + }, + { + "changeProcessCWD": true, + "directory": "./libraries/object-comparison", + }, + { + "changeProcessCWD": true, + "directory": "./libraries/openapi", + }, + { + "changeProcessCWD": true, + "directory": "./libraries/tasks", + }, + { + "changeProcessCWD": true, + "directory": "./libraries/uri" + } + ], + "eslint.autoFixOnSave": true, + "eslint.validate": [ + "javascript", + { + "language": "typescript", + "autoFix": true, + }, + { + "language": "typescriptreact", + "autoFix": false + } + ], +} \ No newline at end of file diff --git a/autorest b/autorest new file mode 160000 index 0000000..ba27216 --- /dev/null +++ b/autorest @@ -0,0 +1 @@ +Subproject commit ba27216942938de407c86bf36b838af7a17dbed6 diff --git a/autorest.powershell b/autorest.powershell new file mode 160000 index 0000000..d1ef672 --- /dev/null +++ b/autorest.powershell @@ -0,0 +1 @@ +Subproject commit d1ef67201d8f0c671bf025a51d40ed176d8aa81d diff --git a/autorest.remodeler b/autorest.remodeler new file mode 160000 index 0000000..e6c9f01 --- /dev/null +++ b/autorest.remodeler @@ -0,0 +1 @@ +Subproject commit e6c9f010aacee3774b6d7fb68c5a16c83dbcce97 diff --git a/perks b/perks new file mode 160000 index 0000000..28f2b14 --- /dev/null +++ b/perks @@ -0,0 +1 @@ +Subproject commit 28f2b1438d381a2c14ce18d6ea772825646e4f45 diff --git a/rush.json b/rush.json index 93f2ce5..e42b737 100644 --- a/rush.json +++ b/rush.json @@ -3,8 +3,6 @@ * For full documentation, please see https://rushjs.io */ { - - /** * (Required) This specifies the version of the Rush engine to be used in this repo. * Rush's "version selector" feature ensures that the globally installed tool will @@ -16,8 +14,7 @@ * path segment in the "$schema" field for all your Rush config files. This will ensure * correct error-underlining and tab-completion for editors such as VS Code. */ - "rushVersion": "5.7.3", - + "rushVersion": "5.12.0", /** * The next field selects which package manager should be installed and determines its version. * Rush installs its own local copy of the package manager to ensure that your build process @@ -27,15 +24,12 @@ * for details about these alternatives. */ "pnpmVersion": "2.15.1", - // "npmVersion": "4.5.0", // "yarnVersion": "1.9.4", - /** * Options that are only used when the PNPM package manager is selected */ "pnpmOptions": { - /** * If true, then Rush will add the "--strict-peer-dependencies" option when invoking PNPM. * This causes "rush install" to fail if there are unsatisfied peer dependencies, which is @@ -47,8 +41,6 @@ * It is strongly recommended to set strictPeerDependencies=true. */ // "strictPeerDependencies": true, - - /** * Configures the strategy used to select versions during installation. * @@ -60,7 +52,6 @@ */ // "resolutionStrategy": "fast" }, - /** * Older releases of the NodeJS engine may be missing features required by your system. * Other releases may have bugs. In particular, the "latest" version will not be a @@ -70,7 +61,6 @@ * for your repo. */ "nodeSupportedVersionRange": ">=10.13.0 <11.0.0", - /** * If you would like the version specifiers for your dependencies to be consistent, then * uncomment this line. This is effectively similar to running "rush check" before any @@ -82,8 +72,7 @@ * version. In those cases, you will need to add an entry to the "allowedAlternativeVersions" * section of the common-versions.json. */ - // "ensureConsistentVersions": true, - + // "ensureConsistentVersions": true, /** * Large monorepos can become intimidating for newcomers if project folder paths don't follow * a consistent and recognizable pattern. When the system allows nested folder trees, @@ -109,7 +98,6 @@ */ // "projectFolderMinDepth": 2, // "projectFolderMaxDepth": 2, - /** * This feature helps you to review and approve new packages before they are introduced * to your monorepo. For example, you may be concerned about licensing, code quality, @@ -145,7 +133,6 @@ // */ // // "ignoredNpmScopes": [ "@types" ] // }, - /** * If you use Git as your version control system, this section has some additional * optional features you can use. @@ -166,14 +153,12 @@ // "[^@]+@users\\.noreply\\.github\\.com", // "travis@example\\.org" // ], - /** * When Rush reports that the address is malformed, the notice can include an example * of a recommended email. Make sure it conforms to one of the allowedEmailRegExps * expressions. */ // "sampleEmail": "mrexample@users.noreply.github.com", - /** * The commit message to use when committing changes during 'rush publish'. * @@ -183,7 +168,6 @@ */ // "versionBumpCommitMessage": "Applying package updates. [skip-ci]" }, - "repository": { /** * The URL of this Git repository, used by "rush change" to determine the base branch for your PR. @@ -202,7 +186,6 @@ */ // "url": "https://github.com/Microsoft/rush-example" }, - /** * Event hooks are customized script actions that Rush executes when specific events occur */ @@ -213,23 +196,19 @@ "preRushInstall": [ // "common/scripts/pre-rush-install.js" ], - /** * The list of shell commands to run after the Rush installation finishes */ "postRushInstall": [], - /** * The list of shell commands to run before the Rush build command starts */ "preRushBuild": [], - /** * The list of shell commands to run after the Rush build command finishes */ "postRushBuild": [] }, - /** * Installation variants allow you to maintain a parallel set of configuration files that can be * used to build the entire monorepo with an alternate set of dependencies. For example, suppose @@ -260,7 +239,6 @@ // "description": "Build this repo using the previous release of the SDK" // } ], - /** * Rush can collect anonymous telemetry about everyday developer activity such as * success/failure of installs, builds, and other operations. You can use this to identify @@ -270,12 +248,10 @@ * in the "eventHooks" section. */ // "telemetryEnabled": false, - /** * Allows creation of hotfix changes. This feature is experimental so it is disabled by default. */ // "hotfixChangeEnabled": false, - /** * (Required) This is the inventory of projects to be managed by Rush. * @@ -345,4 +321,4 @@ // "reviewCategory": "tools" // } ] -} +} \ No newline at end of file