Skip to content

Commit

Permalink
Merge pull request #836 from sarangan12/EnableConfigurationFileForTest
Browse files Browse the repository at this point in the history
Enable Configuration files to be tested in V6 Code Generator Integration Test Suite
  • Loading branch information
sarangan12 authored Jan 19, 2021
2 parents 039817e + 9163e2e commit 0bc33ea
Show file tree
Hide file tree
Showing 14 changed files with 2,056 additions and 64 deletions.
27 changes: 27 additions & 0 deletions test/integration/generated/readmeFileChecker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## Azure KeyVaultClient SDK for JavaScript

This package contains an isomorphic SDK for KeyVaultClient.

### Currently supported environments

- Node.js version 8.x.x or higher
- Browser JavaScript

### How to Install

```bash
npm install @azure/keyvault-secrets
```

### How to use

#### Sample code

Refer the sample code in the [azure-sdk-for-js-samples](https://github.com/Azure/azure-sdk-for-js-samples) repository.

## Related projects

- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)


![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fcdn%2Farm-cdn%2FREADME.png)
18 changes: 18 additions & 0 deletions test/integration/generated/readmeFileChecker/api-extractor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "./esm/index.d.ts",
"docModel": { "enabled": true },
"apiReport": { "enabled": true, "reportFolder": "./review" },
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "./esm/index.d.ts"
},
"messages": {
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
"extractorMessageReporting": {
"ae-missing-release-tag": { "logLevel": "none" },
"ae-unresolved-link": { "logLevel": "none" }
}
}
}
48 changes: 48 additions & 0 deletions test/integration/generated/readmeFileChecker/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"name": "@azure/keyvault-secrets",
"author": "Microsoft Corporation",
"description": "The key vault client performs cryptographic key operations and vault operations against the Key Vault service.",
"version": "1.0.0-preview1",
"dependencies": { "@azure/core-http": "^1.1.4", "tslib": "^1.9.3" },
"keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
"license": "MIT",
"main": "./dist/keyvault-secrets.js",
"module": "./esm/index.js",
"types": "./esm/index.d.ts",
"devDependencies": {
"typescript": "^3.1.1",
"rollup": "^0.66.2",
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9",
"@microsoft/api-extractor": "7.9.10"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": [
"dist/**/*.js",
"dist/**/*.js.map",
"dist/**/*.d.ts",
"dist/**/*.d.ts.map",
"esm/**/*.js",
"esm/**/*.js.map",
"esm/**/*.d.ts",
"esm/**/*.d.ts.map",
"src/**/*.ts",
"README.md",
"rollup.config.js",
"tsconfig.json"
],
"scripts": {
"build": "tsc && rollup -c rollup.config.js && npm run minify && npm run extract-api",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/keyvault-secrets.js.map'\" -o ./dist/keyvault-secrets.min.js ./dist/keyvault-secrets.js",
"prepack": "npm install && npm run build",
"extract-api": "api-extractor run --local"
},
"sideEffects": false,
"autoPublish": true
}
28 changes: 28 additions & 0 deletions test/integration/generated/readmeFileChecker/rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import rollup from "rollup";
import nodeResolve from "rollup-plugin-node-resolve";
import sourcemaps from "rollup-plugin-sourcemaps";

/** @type {rollup.RollupFileOptions} */
const config = {
input: "./esm/keyVaultClient.js",
external: ["@azure/core-http"],
output: {
file: "./dist/keyvault-secrets.js",
format: "umd",
name: "Azure.KeyvaultSecrets",
sourcemap: true,
globals: {
"@azure/core-http": "coreHttp"
},
banner: `/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/ `
},
plugins: [nodeResolve({ module: true }), sourcemaps()]
};

export default config;
3 changes: 3 additions & 0 deletions test/integration/generated/readmeFileChecker/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from "./models";
export { KeyVaultClient } from "./keyVaultClient";
export { KeyVaultClientContext } from "./keyVaultClientContext";
Loading

0 comments on commit 0bc33ea

Please # to comment.