Skip to content

Commit

Permalink
change feed with mininal live tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Lin Jian committed Jun 2, 2020
1 parent d0eca1e commit 64ff0f3
Show file tree
Hide file tree
Showing 39 changed files with 1,971 additions and 48 deletions.
166 changes: 121 additions & 45 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion rush.json
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,11 @@
"projectFolder": "sdk/storage/storage-blob",
"versionPolicyName": "client"
},
{
"packageName": "@azure/storage-blob-changefeed",
"projectFolder": "sdk/storage/storage-blob-changefeed",
"versionPolicyName": "client"
},
{
"packageName": "@azure/storage-file-share",
"projectFolder": "sdk/storage/storage-file-share",
Expand Down Expand Up @@ -493,4 +498,4 @@
"versionPolicyName": "utility"
}
]
}
}
3 changes: 3 additions & 0 deletions sdk/storage/storage-blob-changefeed/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["esbenp.prettier-vscode"]
}
59 changes: 59 additions & 0 deletions sdk/storage/storage-blob-changefeed/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
// 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": [
{
"type": "node",
"request": "launch",
"name": "Debug Javascript Samples",
"program": "${workspaceFolder}/samples/javascript/basic.js",
"preLaunchTask": "npm: build:js-samples"
},
{
"type": "node",
"request": "launch",
"name": "Debug Typescript Samples",
"program": "${workspaceFolder}/samples/typescript/basic.ts",
"preLaunchTask": "npm: build:ts-samples",
"outFiles": ["${workspaceFolder}/dist-esm/samples/typescript/*.js"]
},
{
"type": "node",
"request": "launch",
"name": "Debug Mocha Test [Without Rollup]",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"args": [
"-r",
"ts-node/register",
"--timeout",
"999999",
"--colors",
"${workspaceFolder}/test/*.spec.ts",
"${workspaceFolder}/test/node/*.spec.ts"
],
"env": { "TS_NODE_COMPILER_OPTIONS": "{\"module\": \"commonjs\"}" },
"envFile": "${workspaceFolder}/../.env",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"protocol": "inspector"
},
{
"type": "node",
"request": "launch",
"name": "Debug Unit Tests",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"args": [
"-u",
"tdd",
"--timeout",
"999999",
"--colors",
"${workspaceFolder}/dist-test/index.node.js"
],
"internalConsoleOptions": "openOnSessionStart",
"preLaunchTask": "npm: build:test"
}
]
}
27 changes: 27 additions & 0 deletions sdk/storage/storage-blob-changefeed/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.DS_Store": true
},
"[typescript]": {
"editor.formatOnSave": true,
"editor.tabSize": 2,
"editor.detectIndentation": false
},
"[json]": {
"editor.formatOnSave": true,
"editor.tabSize": 2,
"editor.detectIndentation": false
},
"[yaml]": {
"editor.formatOnSave": true,
"editor.tabSize": 2,
"editor.detectIndentation": false
},
"editor.rulers": [
100
],
"typescript.preferences.quoteStyle": "double",
"javascript.preferences.quoteStyle": "double"
}
21 changes: 21 additions & 0 deletions sdk/storage/storage-blob-changefeed/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2020 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
31 changes: 31 additions & 0 deletions sdk/storage/storage-blob-changefeed/api-extractor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "typings/latest/storage-blob-changefeed/src/index.d.ts",
"docModel": {
"enabled": false
},
"apiReport": {
"enabled": true,
"reportFolder": "./review"
},
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "./typings/latest/storage-blob-changefeed.d.ts"
},
"messages": {
"tsdocMessageReporting": {
"default": {
"logLevel": "none"
}
},
"extractorMessageReporting": {
"ae-missing-release-tag": {
"logLevel": "none"
},
"ae-unresolved-link": {
"logLevel": "none"
}
}
}
}
161 changes: 161 additions & 0 deletions sdk/storage/storage-blob-changefeed/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
{
"name": "@azure/storage-blob-changefeed",
"sdk-type": "client",
"version": "12.0.0-preview.1",
"description": "Microsoft Azure Storage SDK for JavaScript - Blob Change Feed",
"main": "./dist/index.js",
"module": "./dist-esm/storage-blob-changefeed/src/index.js",
"browser": {
"./dist-esm/storage-blob-changefeed/src/utils/utils.node.js": "./dist-esm/storage-blob-changefeed/src/utils/utils.browser.js",
"./dist-esm/storage-blob-changefeed/test/utils/index.js": "./dist-esm/storage-blob-changefeed/test/utils/index.browser.js",
"fs": false,
"os": false,
"process": false
},
"types": "./typings/latest/storage-blob-changefeed.d.ts",
"typesVersions": {
"<3.6": {
"*": [
"./typings/3.1/storage-blob-changefeed.d.ts"
]
}
},
"engine": {
"node": ">=8.0.0"
},
"scripts": {
"build:es6": "tsc -p tsconfig.json",
"build:nodebrowser": "rollup -c 2>&1",
"build:samples": "npm run clean && npm run build:es6 && cross-env ONLY_NODE=true rollup -c 2>&1 && npm run build:prep-samples",
"build:prep-samples": "node ../../../common/scripts/prep-samples.js && cd samples && tsc",
"build:test": "npm run build:es6 && rollup -c rollup.test.config.js 2>&1",
"build:types": "downlevel-dts typings/latest typings/3.1",
"build": "npm run build:es6 && npm run build:nodebrowser && api-extractor run --local && npm run build:types",
"check-format": "prettier --list-different --config ../../.prettierrc.json \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
"clean": "rimraf dist dist-esm dist-test typings temp dist-browser/*.js* dist-browser/*.zip statistics.html coverage coverage-browser .nyc_output *.tgz *.log test*.xml TEST*.xml",
"clean:samples": "rimraf samples/javascript/node_modules samples/typescript/node_modules samples/typescript/dist samples/typescript/package-lock.json samples/javascript/package-lock.json",
"extract-api": "tsc -p . && api-extractor run --local",
"execute:js-samples": "node ../../../common/scripts/run-samples.js samples/javascript/",
"execute:ts-samples": "node ../../../common/scripts/run-samples.js samples/typescript/dist/samples/typescript/src/",
"execute:samples": "npm run build:samples && npm run execute:js-samples && npm run execute:ts-samples",
"format": "prettier --write --config ../../.prettierrc.json \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
"integration-test:browser": "karma start --single-run",
"integration-test:node": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --full-trace -t 300000 dist-esm/storage-blob-changefeed/test/*.spec.js dist-esm/storage-blob-changefeed/test/node/*.spec.js",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"pack": "npm pack 2>&1",
"prebuild": "npm run clean",
"test:browser": "npm run clean && npm run build:test && npm run unit-test:browser",
"test:node": "npm run clean && npm run build:test && npm run unit-test:node",
"test": "npm run clean && npm run build:test && npm run unit-test",
"unit-test:browser": "karma start --single-run",
"unit-test:node": "mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --full-trace -t 120000 dist-test/index.node.js",
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
"emulator-tests": "cross-env STORAGE_CONNECTION_STRING=UseDevelopmentStorage=true && npm run test:node"
},
"files": [
"BreakingChanges.md",
"types/",
"dist/",
"dist-browser/",
"dist-esm/storage-blob-changefeed/src/",
"dist-esm/storage-internal-avro/src/",
"typings/latest/storage-blob-changefeed.d.ts",
"typings/3.1/storage-blob-changefeed.d.ts",
"README.md",
"LICENSE"
],
"repository": {
"type": "git",
"url": "git+https://github.com/Azure/azure-sdk-for-js.git"
},
"keywords": [
"Azure",
"Storage",
"Blob",
"Change feed",
"Node.js",
"TypeScript",
"JavaScript",
"Browser"
],
"author": "Microsoft Corporation",
"license": "MIT",
"bugs": {
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js#readme",
"sideEffects": false,
"//metadata": {
"constantPaths": [
{
"path": "src/utils/constants.ts",
"prefix": "SDK_VERSION"
}
]
},
"dependencies": {
"@azure/storage-blob": "^12.1.2",
"@azure/abort-controller": "^1.0.0",
"@azure/core-http": "^1.1.1",
"@azure/core-lro": "^1.0.2",
"@azure/core-paging": "^1.1.1",
"@azure/core-tracing": "1.0.0-preview.8",
"@azure/logger": "^1.0.0",
"@opentelemetry/api": "^0.6.1",
"events": "^3.0.0",
"tslib": "^1.10.0"
},
"devDependencies": {
"@azure/identity": "^1.1.0-preview",
"@azure/test-utils-recorder": "^1.0.0",
"@microsoft/api-extractor": "7.7.11",
"@rollup/plugin-multi-entry": "^3.0.0",
"@rollup/plugin-replace": "^2.2.0",
"@types/mocha": "^7.0.2",
"@types/node": "^8.0.0",
"@typescript-eslint/eslint-plugin": "^2.0.0",
"@typescript-eslint/parser": "^2.0.0",
"assert": "^1.4.1",
"cross-env": "^6.0.3",
"dotenv": "^8.2.0",
"downlevel-dts": "~0.4.0",
"es6-promise": "^4.2.5",
"eslint": "^6.1.0",
"eslint-config-prettier": "^6.0.0",
"eslint-plugin-no-null": "^1.0.2",
"eslint-plugin-no-only-tests": "^2.3.0",
"eslint-plugin-promise": "^4.1.1",
"esm": "^3.2.18",
"inherits": "^2.0.3",
"karma": "^4.0.1",
"karma-chrome-launcher": "^3.0.0",
"karma-coverage": "^2.0.0",
"karma-edge-launcher": "^0.4.2",
"karma-env-preprocessor": "^0.1.1",
"karma-firefox-launcher": "^1.1.0",
"karma-ie-launcher": "^1.0.0",
"karma-json-preprocessor": "^0.3.3",
"karma-json-to-file-reporter": "^1.0.1",
"karma-junit-reporter": "^2.0.1",
"karma-mocha": "^1.3.0",
"karma-mocha-reporter": "^2.2.5",
"karma-remap-istanbul": "^0.6.0",
"mocha": "^7.1.1",
"mocha-junit-reporter": "^1.18.0",
"nyc": "^14.0.0",
"prettier": "^1.16.4",
"puppeteer": "^2.0.0",
"rimraf": "^3.0.0",
"rollup": "^1.16.3",
"@rollup/plugin-commonjs": "11.0.2",
"@rollup/plugin-node-resolve": "^7.0.0",
"rollup-plugin-shim": "^1.0.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"rollup-plugin-terser": "^5.1.1",
"rollup-plugin-visualizer": "^3.1.1",
"source-map-support": "^0.5.9",
"ts-node": "^8.3.0",
"typescript": "~3.8.3",
"util": "^0.12.1"
}
}
Loading

0 comments on commit 64ff0f3

Please sign in to comment.