forked from Azure/azure-sdk-for-js
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CodeGen from PR 26452 in Azure/azure-rest-api-specs
Merge f3659f309c50d1eef6422a95572f85fb2720051e into 58e92dd03733bc175e6a9540f4bc53703b57fcc9
- Loading branch information
SDKAuto
committed
Oct 30, 2023
1 parent
0aef58c
commit 0c178b1
Showing
310 changed files
with
385 additions
and
16,304 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"commit": "2888f49ff0b4ce0587780b83530a7974dae71015", | ||
"commit": "143f78bd0df4e8b570cf75f900e32e46a6ce4686", | ||
"readme": "specification/app/resource-manager/readme.md", | ||
"autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\app\\resource-manager\\readme.md --use=@autorest/[email protected].5 --generate-sample=true", | ||
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/app/resource-manager/readme.md --use=@autorest/typescript@^6.0.11", | ||
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git", | ||
"release_tool": "@azure-tools/[email protected].0", | ||
"use": "@autorest/[email protected].5" | ||
"release_tool": "@azure-tools/[email protected].3", | ||
"use": "@autorest/typescript@^6.0.11" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
/* | ||
* Copyright (c) Microsoft Corporation. | ||
* Licensed under the MIT License. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
|
||
import nodeResolve from "@rollup/plugin-node-resolve"; | ||
import cjs from "@rollup/plugin-commonjs"; | ||
import sourcemaps from "rollup-plugin-sourcemaps"; | ||
import multiEntry from "@rollup/plugin-multi-entry"; | ||
import json from "@rollup/plugin-json"; | ||
|
||
import nodeBuiltins from "builtin-modules"; | ||
|
||
// #region Warning Handler | ||
|
||
/** | ||
* A function that can determine whether a rollup warning should be ignored. If | ||
* the function returns `true`, then the warning will not be displayed. | ||
*/ | ||
|
||
function ignoreNiseSinonEval(warning) { | ||
return ( | ||
warning.code === "EVAL" && | ||
warning.id && | ||
(warning.id.includes("node_modules/nise") || | ||
warning.id.includes("node_modules/sinon")) === true | ||
); | ||
} | ||
|
||
function ignoreChaiCircularDependency(warning) { | ||
return ( | ||
warning.code === "CIRCULAR_DEPENDENCY" && | ||
warning.importer && warning.importer.includes("node_modules/chai") === true | ||
); | ||
} | ||
|
||
const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval]; | ||
|
||
/** | ||
* Construct a warning handler for the shared rollup configuration | ||
* that ignores certain warnings that are not relevant to testing. | ||
*/ | ||
function makeOnWarnForTesting() { | ||
return (warning, warn) => { | ||
// If every inhibitor returns false (i.e. no inhibitors), then show the warning | ||
if (warningInhibitors.every((inhib) => !inhib(warning))) { | ||
warn(warning); | ||
} | ||
}; | ||
} | ||
|
||
// #endregion | ||
|
||
function makeBrowserTestConfig() { | ||
const config = { | ||
input: { | ||
include: ["dist-esm/test/**/*.spec.js"], | ||
exclude: ["dist-esm/test/**/node/**"] | ||
}, | ||
output: { | ||
file: `dist-test/index.browser.js`, | ||
format: "umd", | ||
sourcemap: true | ||
}, | ||
preserveSymlinks: false, | ||
plugins: [ | ||
multiEntry({ exports: false }), | ||
nodeResolve({ | ||
mainFields: ["module", "browser"] | ||
}), | ||
cjs(), | ||
json(), | ||
sourcemaps() | ||
//viz({ filename: "dist-test/browser-stats.html", sourcemap: true }) | ||
], | ||
onwarn: makeOnWarnForTesting(), | ||
// Disable tree-shaking of test code. In [email protected], | ||
// rollup started respecting the "sideEffects" field in package.json. Since | ||
// our package.json sets "sideEffects=false", this also applies to test | ||
// code, which causes all tests to be removed by tree-shaking. | ||
treeshake: false | ||
}; | ||
|
||
return config; | ||
} | ||
|
||
const defaultConfigurationOptions = { | ||
disableBrowserBundle: false | ||
}; | ||
|
||
export function makeConfig(pkg, options) { | ||
options = { | ||
...defaultConfigurationOptions, | ||
...(options || {}) | ||
}; | ||
|
||
const baseConfig = { | ||
// Use the package's module field if it has one | ||
input: pkg["module"] || "dist-esm/src/index.js", | ||
external: [ | ||
...nodeBuiltins, | ||
...Object.keys(pkg.dependencies), | ||
...Object.keys(pkg.devDependencies) | ||
], | ||
output: { file: "dist/index.js", format: "cjs", sourcemap: true }, | ||
preserveSymlinks: false, | ||
plugins: [sourcemaps(), nodeResolve()] | ||
}; | ||
|
||
const config = [baseConfig]; | ||
|
||
if (!options.disableBrowserBundle) { | ||
config.push(makeBrowserTestConfig()); | ||
} | ||
|
||
return config; | ||
} | ||
|
||
export default makeConfig(require("./package.json")); |
41 changes: 0 additions & 41 deletions
41
sdk/appcontainers/arm-appcontainers/samples-dev/availableWorkloadProfilesGetSample.ts
This file was deleted.
Oops, something went wrong.
38 changes: 0 additions & 38 deletions
38
sdk/appcontainers/arm-appcontainers/samples-dev/billingMetersGetSample.ts
This file was deleted.
Oops, something went wrong.
60 changes: 0 additions & 60 deletions
60
sdk/appcontainers/arm-appcontainers/samples-dev/certificatesCreateOrUpdateSample.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.