зеркало из
1
0
Форкнуть 0

Package Updates: add CommonJs builds, update npm packs and add to private preview drop (#132)

This commit is contained in:
James Burnside 2021-04-09 13:17:57 -07:00 коммит произвёл GitHub
Родитель 6de72cc244
Коммит 0256e5a737
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
47 изменённых файлов: 232 добавлений и 151 удалений

2
.github/workflows/nightly-ci.yml поставляемый
Просмотреть файл

@ -78,7 +78,7 @@ jobs:
# Bump alpha package versions
- name: Bump alpha package versions
run: node common/release/node_modules/beachball/bin/beachball canary --canary-name alpha+${{ steps.datetime.outputs.datetime }} --tag dev --no-publish
run: node common/config/node_modules/beachball/bin/beachball canary --canary-name alpha+${{ steps.datetime.outputs.datetime }} --tag dev --no-publish
# Build packages
- name: Build @azure/communication-ui package

2
.github/workflows/npm-release-bump.yml поставляемый
Просмотреть файл

@ -43,7 +43,7 @@ jobs:
# Bump package versions
- name: Bump package versions
run: node common/release/node_modules/beachball/bin/beachball bump
run: node common/config/node_modules/beachball/bin/beachball bump
# Get datetime for release branch name
- name: Create datetime

2
.github/workflows/npm-release-publish.yml поставляемый
Просмотреть файл

@ -39,7 +39,7 @@ jobs:
# Perform changelog check
- name: Guard check - ensure no new changes were introduced
run: node common/release/node_modules/beachball/bin/beachball check
run: node common/config/node_modules/beachball/bin/beachball check
# Builds
- name: Build Packages and Samples

Просмотреть файл

@ -26,14 +26,30 @@ jobs:
run: rush install
- name: Build Packages and Samples
run: rush build -t "@azure/communication-ui"
run: |
rush build -t "@azure/communication-ui"
rush build -t "@azure/acs-chat-declarative"
rush build -t "@azure/acs-chat-selector"
rush build -t "@azure/acs-calling-declarative"
- name: Package Private-Preview Artifact
- name: Package @communication-ui
run: npm pack
working-directory: ./packages/communication-ui/
- name: Archive builds
run: 7z a private-preview.zip ./packages/communication-ui/private-preview/*
- name: Package @azure/acs-chat-declarative
run: npm pack
working-directory: ./packages/acs-chat-declarative/
- name: Package @azure/acs-chat-selector
run: npm pack
working-directory: ./packages/acs-chat-selector/
- name: Package @azure/acs-calling-declarative
run: npm pack
working-directory: ./packages/acs-calling-declarative/
- name: Compile private preview zip
run: 7z a private-preview.zip ./packages/**/private-preview/*
# Get datetime to name and tag the releases with.
- name: Get Release names

4
.gitignore поставляемый
Просмотреть файл

@ -87,4 +87,6 @@ junit.xml
dist/
build/
temp/
docGen/
docGen/
private-preview/
private-preview.zip

Просмотреть файл

@ -1,2 +1,2 @@
require('./common/release/ts-node-register');
module.exports = require('./common/release/changelog-config').config;
require('./common/config/beachball/ts-node-register');
module.exports = require('./common/config/beachball/changelog-config').config;

Просмотреть файл

@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "Add commonjs support",
"packageName": "@azure/acs-calling-declarative",
"email": "mail@jamesburnside.com",
"dependentChangeType": "patch"
}

Просмотреть файл

@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "Add commonjs support",
"packageName": "@azure/acs-chat-declarative",
"email": "mail@jamesburnside.com",
"dependentChangeType": "patch"
}

Просмотреть файл

@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "Add commonjs support",
"packageName": "@azure/acs-chat-selector",
"email": "mail@jamesburnside.com",
"dependentChangeType": "patch"
}

Просмотреть файл

@ -0,0 +1,7 @@
{
"type": "none",
"comment": "Exclude config files from npm pack",
"packageName": "@azure/communication-ui",
"email": "mail@jamesburnside.com",
"dependentChangeType": "none"
}

Просмотреть файл

@ -1,5 +1,5 @@
{
"name": "release-tools",
"name": "build-tools",
"version": "1.0.0",
"private": true,
"scripts": {
@ -11,8 +11,12 @@
},
"devDependencies": {
"@octokit/rest": "~18.0.6",
"@rollup/plugin-commonjs": "~17.1.0",
"@types/node": "^14.14.10",
"beachball": "~1.53.2",
"rollup": "~2.42.4",
"rollup-plugin-sourcemaps": "~0.6.3",
"rollup-plugin-svg": "~2.0.0",
"ts-node": "^9.1.1"
}
}

Просмотреть файл

@ -0,0 +1,20 @@
// © Microsoft Corporation. All rights reserved.
import commonjs from '@rollup/plugin-commonjs';
import sourcemaps from 'rollup-plugin-sourcemaps';
import svg from 'rollup-plugin-svg';
export default (packageJson) => ({
context: 'window',
external: [
...(packageJson.dependencies ? Object.keys(packageJson.dependencies) : []),
...(packageJson.peerDependencies ? Object.keys(packageJson.peerDependencies) : [])
],
input: './dist/dist-esm/index.js',
output: {
file: './dist/dist-cjs/index.js',
format: 'cjs',
sourcemap: true
},
plugins: [commonjs(), sourcemaps(), svg()]
});

Просмотреть файл

@ -13,14 +13,14 @@
"commandKind": "global",
"name": "changelog",
"summary": "Runs beachball change",
"shellCommand": "node common/release/node_modules/beachball/bin/beachball",
"shellCommand": "node common/config/node_modules/beachball/bin/beachball",
"safeForSimultaneousRushProcesses": true
},
{
"commandKind": "global",
"name": "changelog:check",
"summary": "Checks change files have been generated",
"shellCommand": "node common/release/node_modules/beachball/bin/beachball check",
"shellCommand": "node common/config/node_modules/beachball/bin/beachball check",
"safeForSimultaneousRushProcesses": true
},
{

Просмотреть файл

@ -19,11 +19,11 @@ dependencies:
'@rush-temp/acs-calling-declarative': file:projects/acs-calling-declarative.tgz_prettier@2.0.5+ts-node@9.1.1
'@rush-temp/acs-chat-declarative': file:projects/acs-chat-declarative.tgz_prettier@2.0.5+ts-node@9.1.1
'@rush-temp/acs-chat-selector': file:projects/acs-chat-selector.tgz_prettier@2.0.5
'@rush-temp/build-tools': file:projects/build-tools.tgz_typescript@4.1.5
'@rush-temp/calling': file:projects/calling.tgz_570bf42e92a70fb216c5cd4d5ed668ef
'@rush-temp/chat': file:projects/chat.tgz_40b0c9f7a7a0fac66e4b6fcf06de2a42
'@rush-temp/communication-ui': file:projects/communication-ui.tgz_webpack-cli@4.5.0
'@rush-temp/one-to-one-call': file:projects/one-to-one-call.tgz_570bf42e92a70fb216c5cd4d5ed668ef
'@rush-temp/release-tools': file:projects/release-tools.tgz_typescript@4.1.5
'@rush-temp/server': file:projects/server.tgz
'@rush-temp/storybook': file:projects/storybook.tgz_webpack-cli@4.5.0
'@storybook/addon-actions': 6.1.21_30bc4764d4ba778218056aab0be8023f
@ -86,6 +86,7 @@ dependencies:
eslint-plugin-prettier: 3.3.1_cdac37046eab2e8d6fb794f34ed825c2
eslint-plugin-react: 7.22.0_eslint@7.22.0
eslint-plugin-react-hooks: 4.2.0_eslint@7.22.0
events: 3.3.0
express: 4.16.4
http-errors: 1.6.3
husky: 4.3.8
@ -20203,9 +20204,11 @@ packages:
eslint-plugin-header: 3.1.1_eslint@7.22.0
eslint-plugin-import: 2.22.1_eslint@7.22.0
eslint-plugin-prettier: 3.3.1_cdac37046eab2e8d6fb794f34ed825c2
events: 3.3.0
immer: 8.0.1
jest: 26.6.0_ts-node@9.1.1
nanoid: 3.1.22
rollup: 2.42.4
ts-jest: 26.5.3_jest@26.6.0+typescript@4.1.5
typescript: 4.1.5
dev: false
@ -20215,7 +20218,7 @@ packages:
prettier: '*'
ts-node: '*'
resolution:
integrity: sha512-27XkTAtdMHzfP28mzzTk9lQbSTO88/bWqBTcw5NDTHatpi6gWVmtKt7TLmIT/LoCFZLWJh2xk6wAqq+KKqtbpQ==
integrity: sha512-Dvfet7uEYruGSHOgIksbZNzgzhkatwbwdMO0MS8PMbLeyiL/qS45bqnBPZ0h3r+SxpwfbVd+vJKIKEn9n2HhQQ==
tarball: file:projects/acs-chat-declarative.tgz
version: 0.0.0
file:projects/acs-chat-selector.tgz_prettier@2.0.5:
@ -20241,6 +20244,25 @@ packages:
integrity: sha512-vgq6DDxDUEWYFZ87cBH4q1E92dgwgtbVsPUf6YVIrtITro9kA+YrR7CmgI5smLDwJbCau5vxd9UIEASkg8cXCA==
tarball: file:projects/acs-chat-selector.tgz
version: 0.0.0
file:projects/build-tools.tgz_typescript@4.1.5:
dependencies:
'@octokit/rest': 18.0.15
'@rollup/plugin-commonjs': 17.1.0_rollup@2.42.4
'@types/node': 14.14.35
beachball: 1.53.2
rollup: 2.42.4
rollup-plugin-sourcemaps: 0.6.3_9135ee81d9218d0e99b56082525729b5
rollup-plugin-svg: 2.0.0
ts-node: 9.1.1_typescript@4.1.5
dev: false
id: file:projects/build-tools.tgz
name: '@rush-temp/build-tools'
peerDependencies:
typescript: '*'
resolution:
integrity: sha512-b5hFauElrTQk+ieDLylltlsXYuREKzGdSgkbZY/NC9PgniOwHvxJPuuAQCWf0rHbgYzH8HOddbB5yIoFADO/ug==
tarball: file:projects/build-tools.tgz
version: 0.0.0
file:projects/calling.tgz_570bf42e92a70fb216c5cd4d5ed668ef:
dependencies:
'@azure/communication-administration': 1.0.0-beta.3
@ -20463,7 +20485,7 @@ packages:
peerDependencies:
webpack-cli: '*'
resolution:
integrity: sha512-KsffXOujTVbXbseiFJYZnzsNGbbtSmniaMzglpMaB75IK3QAeNsR5H7jHln/8jazplzE+O7EmdGLwuo9AHE5Ag==
integrity: sha512-irlqrdu6PIGa6dbiOIYfrBqwhBSeZIVB8gAKPgSCmefAJtSlAgmYTKRxlwNhhjA7Az0ZXF4ICXiM3nya8ZChgw==
tarball: file:projects/communication-ui.tgz
version: 0.0.0
file:projects/one-to-one-call.tgz_570bf42e92a70fb216c5cd4d5ed668ef:
@ -20536,21 +20558,6 @@ packages:
integrity: sha512-7Eei6TVL74VGNBmON8HLssHISzQr8G8ImvnnvLBOTTGUat72KR7QjO16GHMr4QUYlKFLFd/+hvFFiwjvu6u/hw==
tarball: file:projects/one-to-one-call.tgz
version: 0.0.0
file:projects/release-tools.tgz_typescript@4.1.5:
dependencies:
'@octokit/rest': 18.0.15
'@types/node': 14.14.35
beachball: 1.53.2
ts-node: 9.1.1_typescript@4.1.5
dev: false
id: file:projects/release-tools.tgz
name: '@rush-temp/release-tools'
peerDependencies:
typescript: '*'
resolution:
integrity: sha512-z8gCO5dSCyziWJ+KCb64AK7YSaU+hep4QQ9rcswo/dTE2JpMHkrACkdV/jjOKrx0wtUHIH6BmypWIROVzaf7Zw==
tarball: file:projects/release-tools.tgz
version: 0.0.0
file:projects/server.tgz:
dependencies:
'@azure/communication-chat': 1.0.0-beta.3
@ -20715,11 +20722,11 @@ specifiers:
'@rush-temp/acs-calling-declarative': file:./projects/acs-calling-declarative.tgz
'@rush-temp/acs-chat-declarative': file:./projects/acs-chat-declarative.tgz
'@rush-temp/acs-chat-selector': file:./projects/acs-chat-selector.tgz
'@rush-temp/build-tools': file:./projects/build-tools.tgz
'@rush-temp/calling': file:./projects/calling.tgz
'@rush-temp/chat': file:./projects/chat.tgz
'@rush-temp/communication-ui': file:./projects/communication-ui.tgz
'@rush-temp/one-to-one-call': file:./projects/one-to-one-call.tgz
'@rush-temp/release-tools': file:./projects/release-tools.tgz
'@rush-temp/server': file:./projects/server.tgz
'@rush-temp/storybook': file:./projects/storybook.tgz
'@storybook/addon-actions': ^6.1.1
@ -20782,6 +20789,7 @@ specifiers:
eslint-plugin-prettier: ^3.1.4
eslint-plugin-react: ^7.18.3
eslint-plugin-react-hooks: ^4.1.2
events: ~3.3.0
express: ~4.16.1
http-errors: ~1.6.3
husky: ^4.3.0

Просмотреть файл

@ -52,6 +52,8 @@ cd packages\storybook
rushx start
```
When `rushx start` completes you should be able to view the storybook at: http://localhost:6006/
---
* Next: [Testing your changes](<./4. testing-your-changes.md>)

Просмотреть файл

@ -20,7 +20,7 @@ API Extractor is run as part of the build commands for each package. Running `ru
## Configuration Files
The primary configuration file can be found here: [common/api-extractor/api-extractor.json](https://github.com/Azure/communication-ui-sdk/blob/main/common/api-extractor/api-extractor.json). Each package has their own `api-extractor.json` that extends from this.
The primary configuration file can be found here: [common/config/api-extractor/api-extractor.json](https://github.com/Azure/communication-ui-sdk/blob/main/common/config/api-extractor/api-extractor.json). Each package has their own `api-extractor.json` that extends from this.
## Gating PRs

Просмотреть файл

@ -41,14 +41,14 @@ For writing a good changelog entry for the change file see: [Tips for writing me
### Package version bumping
This is done by our github actions. If this needs to be down manually you can run `npm run beachball -- bump` under `common/release`.
This is done by our github actions. If this needs to be down manually you can run `npm run beachball -- bump` under `common/config`.
See [creating a release](./creating-a-release.md) for more information.
### Changelog Generation
This happens as part of the `beachball bump` command. In our repo however we have custom changelog renderers to create a feature rich changelog with links to PRs and authors.
These custom renderers are located here: [common/release/changelog-custom-renders.ts](https://github.com/Azure/communication-ui-sdk/blob/main/common/release/changelog-custom-renders.ts).
These custom renderers are located here: [common/config/beachball/changelog-custom-renders.ts](https://github.com/Azure/communication-ui-sdk/blob/main/common/config/beachball/changelog-custom-renders.ts).
## Gating PRs
@ -57,6 +57,6 @@ To see all PR gates, view [pull requests](./pull-requests.md) docs.
## Configuration Files
The primary beachball configuration file is at: [common/release/changelog-config.ts](https://github.com/Azure/communication-ui-sdk/blob/main/common/release/changelog-config.ts). This is picked up by the root level `beachball.config.js`.
The primary beachball configuration file is at: [common/config/beachball/changelog-config.ts](https://github.com/Azure/communication-ui-sdk/blob/main/common/config/beachball/changelog-config.ts). This is picked up by the root level `beachball.config.js`.
Each `package.json` must also not be marked `private:true` or beachball will ignore it and may optionally contain a `beachball:` section that contains package specific configuration.

Просмотреть файл

@ -1,14 +1,10 @@
public/
node_modules/
.vs/
.vscode/
jest/
src/
tests/
scripts/
tsconfig.json
.eslintignore
.prettierignore
.prettierrc
.eslintrc.js
jest.config.js
# Disallow everything by default so new files aren't accidently included:
*
# Allow dist folder, this is the folder that should be packed and published:
!dist/**/*
# Exceptions in the dist folder that should still be disallowed:
dist/dist-esm/mocks/
**/*.test.*
**/*.spec.*

Просмотреть файл

@ -1,3 +1,3 @@
{
"extends": "../../common/api-extractor/api-extractor.json"
"extends": "../../common/config/api-extractor/api-extractor.json"
}

Просмотреть файл

@ -3,10 +3,12 @@
"version": "1.0.0-beta",
"description": "ACS UI SDK",
"module": "dist/dist-esm/index.js",
"main": "dist/dist-esm/index.js",
"main": "dist/dist-cjs/index.js",
"types": "dist/acs-calling-declarative.d.ts",
"scripts": {
"build": "tsc && api-extractor run --local",
"build": "rushx build:esm && rushx build:cjs && api-extractor run --local",
"build:esm": "tsc",
"build:cjs": "rollup -c --silent --failAfterWarnings",
"build:watch": "rushx build",
"test": "jest",
"test:coverage": "npm run test -- --coverage",
@ -14,7 +16,8 @@
"lint:fix": "npm run lint -- --fix",
"lint:quiet": "npm run lint -- --quiet",
"api-extractor": "tsc && api-extractor run --local",
"generate-doc": "api-documenter markdown -i temp -o docGen"
"generate-doc": "api-documenter markdown -i temp -o docGen",
"postpack": "copyfiles -E \"./*.tgz\" private-preview"
},
"browserslist": {
"production": [
@ -31,6 +34,7 @@
"dependencies": {
"@azure/communication-common": "1.0.0-beta.4",
"@azure/communication-calling": "1.0.0-beta.9",
"events": "~3.3.0",
"immer": "~8.0.1"
},
"devDependencies": {
@ -39,12 +43,14 @@
"@types/jest": "^26.0.20",
"@typescript-eslint/eslint-plugin": "^4.12.0",
"@typescript-eslint/parser": "^4.12.0",
"copyfiles": "^2.4.1",
"eslint-config-prettier": "^6.12.0",
"eslint-plugin-header": "^3.1.0",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-prettier": "^3.1.4",
"eslint": "^7.7.0",
"jest": "26.6.0",
"rollup": "~2.42.4",
"ts-jest": "^26.4.4",
"typescript": "4.1.5"
},

Просмотреть файл

@ -0,0 +1,6 @@
// © Microsoft Corporation. All rights reserved.
import Package from './package.json';
import commonConfig from '../../common/config/rollup/rollup.config';
export default commonConfig(Package);

Просмотреть файл

@ -1,14 +1,10 @@
public/
node_modules/
.vs/
.vscode/
jest/
src/
tests/
scripts/
tsconfig.json
.eslintignore
.prettierignore
.prettierrc
.eslintrc.js
jest.config.js
# Disallow everything by default so new files aren't accidently included:
*
# Allow dist folder, this is the folder that should be packed and published:
!dist/**/*
# Exceptions in the dist folder that should still be disallowed:
dist/dist-esm/mocks/
**/*.test.*
**/*.spec.*

Просмотреть файл

@ -1,3 +1,3 @@
{
"extends": "../../common/api-extractor/api-extractor.json"
"extends": "../../common/config/api-extractor/api-extractor.json"
}

Просмотреть файл

@ -3,10 +3,12 @@
"version": "1.0.0-beta",
"description": "ACS UI SDK",
"module": "dist/dist-esm/index.js",
"main": "dist/dist-esm/index.js",
"main": "dist/dist-cjs/index.js",
"types": "dist/acs-chat-declarative.d.ts",
"scripts": {
"build": "tsc && api-extractor run --local",
"build": "rushx build:esm && rushx build:cjs && api-extractor run --local",
"build:esm": "tsc",
"build:cjs": "rollup -c --silent --failAfterWarnings",
"build:watch": "rushx build",
"test": "jest",
"test:coverage": "npm run test -- --coverage",
@ -14,7 +16,8 @@
"lint:fix": "npm run lint -- --fix",
"lint:quiet": "npm run lint -- --quiet",
"api-extractor": "tsc && api-extractor run --local",
"generate-doc": "api-documenter markdown -i temp -o docGen"
"generate-doc": "api-documenter markdown -i temp -o docGen",
"postpack": "copyfiles -E \"./*.tgz\" private-preview"
},
"browserslist": {
"production": [
@ -31,9 +34,10 @@
"dependencies": {
"@azure/communication-chat": "1.0.0-beta.4",
"@azure/communication-signaling": "1.0.0-beta.2",
"@azure/core-paging": "~1.1.3",
"events": "~3.3.0",
"immer": "~8.0.1",
"nanoid": "~3.1.20",
"@azure/core-paging": "~1.1.3"
"nanoid": "~3.1.20"
},
"devDependencies": {
"@microsoft/api-documenter": "~7.12.11",
@ -41,12 +45,14 @@
"@types/jest": "^26.0.20",
"@typescript-eslint/eslint-plugin": "^4.12.0",
"@typescript-eslint/parser": "^4.12.0",
"copyfiles": "^2.4.1",
"eslint-config-prettier": "^6.12.0",
"eslint-plugin-header": "^3.1.0",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-prettier": "^3.1.4",
"eslint": "^7.7.0",
"jest": "26.6.0",
"rollup": "~2.42.4",
"ts-jest": "^26.4.4",
"typescript": "4.1.5"
},

Просмотреть файл

@ -0,0 +1,6 @@
// © Microsoft Corporation. All rights reserved.
import Package from './package.json';
import commonConfig from '../../common/config/rollup/rollup.config';
export default commonConfig(Package);

Просмотреть файл

@ -1,23 +1,12 @@
// © Microsoft Corporation. All rights reserved.
import { ChatMessage, ChatThreadClient, SendChatMessageResult, WithResponse } from '@azure/communication-chat';
import { ChatMessageWithStatus, MessageStatus } from './types/ChatMessageWithStatus';
import { ChatThreadClient, SendChatMessageResult, WithResponse } from '@azure/communication-chat';
import { ChatMessageWithStatus } from './types/ChatMessageWithStatus';
import { ChatContext } from './ChatContext';
import { nanoid } from 'nanoid';
import { createDecoratedListMessages } from './iterators/createDecoratedListMessages';
import { createDecoratedListReadReceipts } from './iterators/createDecoratedListReadReceipts';
import { createDecoratedListParticipants } from './iterators/createDecoratedListParticipants';
export const convertChatMessage = (
message: ChatMessage,
status: MessageStatus = 'delivered',
clientMessageId?: string
): ChatMessageWithStatus => {
return {
...message,
clientMessageId: clientMessageId,
status
};
};
import { convertChatMessage } from './convertChatMessage';
class ProxyChatThreadClient implements ProxyHandler<ChatThreadClient> {
private _context: ChatContext;

Просмотреть файл

@ -13,7 +13,7 @@ import {
TypingIndicatorReceivedEvent
} from '@azure/communication-signaling';
import { ChatContext } from './ChatContext';
import { convertChatMessage } from './ChatThreadClientDeclarative';
import { convertChatMessage } from './convertChatMessage';
import { ChatMessageWithStatus } from './types/ChatMessageWithStatus';
import { ReadReceipt } from './types/ReadReceipt';
import { TypingIndicator } from './types/TypingIndicator';

Просмотреть файл

@ -0,0 +1,16 @@
// © Microsoft Corporation. All rights reserved.
import { ChatMessage } from '@azure/communication-chat';
import { ChatMessageWithStatus, MessageStatus } from './types/ChatMessageWithStatus';
export const convertChatMessage = (
message: ChatMessage,
status: MessageStatus = 'delivered',
clientMessageId?: string
): ChatMessageWithStatus => {
return {
...message,
clientMessageId: clientMessageId,
status
};
};

Просмотреть файл

@ -1,7 +1,7 @@
// © Microsoft Corporation. All rights reserved.
import { ChatMessage, ChatThreadClient, RestListMessagesOptions } from '@azure/communication-chat';
import { ChatContext } from '../ChatContext';
import { convertChatMessage } from '../ChatThreadClientDeclarative';
import { convertChatMessage } from '../convertChatMessage';
import { createDecoratedIterator } from './createDecoratedIterator';
import { PagedAsyncIterableIterator } from '@azure/core-paging';

Просмотреть файл

@ -1,14 +1,10 @@
public/
node_modules/
.vs/
.vscode/
jest/
src/
tests/
scripts/
tsconfig.json
.eslintignore
.prettierignore
.prettierrc
.eslintrc.js
jest.config.js
# Disallow everything by default so new files aren't accidently included:
*
# Allow dist folder, this is the folder that should be packed and published:
!dist/**/*
# Exceptions in the dist folder that should still be disallowed:
dist/dist-esm/mocks/
**/*.test.*
**/*.spec.*

Просмотреть файл

@ -1,3 +1,3 @@
{
"extends": "../../common/api-extractor/api-extractor.json"
"extends": "../../common/config/api-extractor/api-extractor.json"
}

Просмотреть файл

@ -3,10 +3,12 @@
"version": "1.0.0-beta",
"description": "ACS UI SDK",
"module": "dist/dist-esm/index.js",
"main": "dist/dist-esm/index.js",
"main": "dist/dist-cjs/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc && api-extractor run --local",
"build": "rushx build:esm && rushx build:cjs && api-extractor run --local",
"build:esm": "tsc",
"build:cjs": "rollup -c --silent --failAfterWarnings",
"build:watch": "rushx build",
"test": "jest --passWithNoTests",
"test:coverage": "npm run test -- --coverage",
@ -14,7 +16,8 @@
"lint:fix": "npm run lint -- --fix",
"lint:quiet": "npm run lint -- --quiet",
"api-extractor": "tsc && api-extractor run --local",
"generate-doc": "api-documenter markdown -i temp -o docGen"
"generate-doc": "api-documenter markdown -i temp -o docGen",
"postpack": "copyfiles -E \"./*.tgz\" private-preview"
},
"browserslist": {
"production": [
@ -29,20 +32,22 @@
]
},
"dependencies": {
"@azure/acs-chat-declarative": "~1.0.0-beta",
"@azure/communication-chat": "1.0.0-beta.4",
"reselect": "~4.0.0",
"@azure/acs-chat-declarative": "~1.0.0-beta",
"memoize-one": "~5.1.1"
},
"devDependencies": {
"@microsoft/api-documenter": "~7.12.11",
"@microsoft/api-extractor": "~7.13.2",
"@types/react": "^16.9.49",
"copyfiles": "^2.4.1",
"eslint": "^7.7.0",
"eslint-config-prettier": "^6.12.0",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-header": "^3.1.0",
"eslint-plugin-import": "^2.20.1",
"rollup": "~2.42.4",
"typescript": "4.1.5"
},
"beachball": {

Просмотреть файл

@ -0,0 +1,6 @@
// © Microsoft Corporation. All rights reserved.
import Package from './package.json';
import commonConfig from '../../common/config/rollup/rollup.config';
export default commonConfig(Package);

Просмотреть файл

@ -1,18 +1,10 @@
public/
node_modules/
.vs/
.vscode/
dist/stories/
jest/
src/
tests/
Media/
scripts/
cached-package.json
tsconfig.json
.eslintignore
.prettierignore
.prettierrc
.eslintrc.js
jest.config.js
*.tgz
# Disallow everything by default so new files aren't accidently included:
*
# Allow dist folder, this is the folder that should be packed and published:
!dist/**/*
# Exceptions in the dist folder that should still be disallowed:
dist/dist-esm/mocks/
**/*.test.*
**/*.spec.*

Просмотреть файл

@ -1,4 +1,4 @@
{
"extends": "../../common/api-extractor/api-extractor.json",
"extends": "../../common/config/api-extractor/api-extractor.json",
"mainEntryPointFilePath": "<projectFolder>/dist/dist-esm/release.index.d.ts"
}

Просмотреть файл

@ -53,7 +53,6 @@
"@mdx-js/react": "^1.6.22",
"@microsoft/api-documenter": "~7.12.11",
"@microsoft/api-extractor": "~7.13.2",
"@rollup/plugin-commonjs": "~17.1.0",
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react-hooks": "^3.4.2",
"@types/jest": "^26.0.20",
@ -95,8 +94,6 @@
"react": "^16.13.1",
"regenerator-runtime": "^0.13.7",
"rollup": "~2.42.4",
"rollup-plugin-sourcemaps": "~0.6.3",
"rollup-plugin-svg": "~2.0.0",
"source-map-explorer": "^2.5.0",
"styled-components": "~5.2.1",
"ts-jest": "^26.4.4",

Просмотреть файл

@ -1,22 +1,6 @@
// © Microsoft Corporation. All rights reserved.
import commonjs from '@rollup/plugin-commonjs';
import sourcemaps from 'rollup-plugin-sourcemaps';
import svg from 'rollup-plugin-svg';
import Package from './package.json';
import commonConfig from '../../common/config/rollup/rollup.config';
export default {
context: 'window',
external: [
...Object.keys(Package.dependencies),
...Object.keys(Package.peerDependencies),
'@fluentui/react-northstar/dist/commonjs/components/Alert/Alert'
],
input: './dist/dist-esm/index.js',
output: {
file: './dist/dist-cjs/index.js',
format: 'cjs',
sourcemap: true
},
plugins: [commonjs(), sourcemaps(), svg()]
};
export default commonConfig(Package);

Просмотреть файл

@ -63,8 +63,8 @@
"reviewCategory": "tools"
},
{
"packageName": "release-tools",
"projectFolder": "common/release",
"packageName": "build-tools",
"projectFolder": "common/config",
"reviewCategory": "tools"
}
]