Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change tsup to webpack #6

Merged
merged 5 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"plugin:prettier/recommended"
],
"env": {
"browser": true
"browser": true,
"node": true
},
"plugins": ["@typescript-eslint", "prettier", "import"],
"root": true,
Expand Down Expand Up @@ -42,6 +43,7 @@
}
}
],
"@typescript-eslint/no-var-requires": 0,
"sort-imports": [
"error",
{
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ jobs:
- name: Zip It Up 🤐
run: |
pnpm build
zip -r agora-rtc-sdk-ng-fake.zip dist
tar -czvf agora-rtc-sdk-ng-fake.tar.gz dist

- name: Upload Artifact ⬆️
uses: actions/upload-artifact@v3
with:
name: agora-rtc-sdk-ng-fake.zip
path: agora-rtc-sdk-ng-fake.zip
name: agora-rtc-sdk-ng-fake.tar.gz
path: agora-rtc-sdk-ng-fake.tar.gz

- name: Setup NPM auth token
if: ${{ inputs.publish-npm }}
Expand All @@ -59,4 +59,4 @@ jobs:

- name: Release and Publish
run: |
pnpm release ${{ steps.package-info.outputs.version }} --ci --npm.publish=${{ inputs.publish-npm }} --github.update --github.assets=dist/agora-rtc-sdk-ng-fake.js
pnpm release ${{ steps.package-info.outputs.version }} --ci --npm.publish=${{ inputs.publish-npm }} --github.update --github.assets=agora-rtc-sdk-ng-fake.tar.gz
72 changes: 1 addition & 71 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# agora-rtc-sdk-ng-fake

## 1.0.0 (2023-10-16)
## 1.0.0 (2023-10-17)

### Features

Expand All @@ -14,76 +14,6 @@
- update readme ([c25fea2](https://github.com/AgoraIO-Extensions/agora-rtc-sdk-ng-fake/commit/c25fea253fc71712bbe84f1443e008b0ddfc08ba))
- update readme ([4379382](https://github.com/AgoraIO-Extensions/agora-rtc-sdk-ng-fake/commit/4379382632853a9660d46a662bf1bb18c568cb62))

* chore: change to umd compile (#4) (21e63ba)

## 1.0.0 (2023-10-13)

### Features

- add default export ([2298832](https://github.com/AgoraIO-Extensions/agora-rtc-sdk-ng-fake/commit/22988323b5701fb288d4bbc719fc74937ac2619e))
- export FakeAgoraRTC ([8ab4dd6](https://github.com/AgoraIO-Extensions/agora-rtc-sdk-ng-fake/commit/8ab4dd60e975cda60c43af4bd749127f897e61ca))
- fake-agora-rtc ([9375445](https://github.com/AgoraIO-Extensions/agora-rtc-sdk-ng-fake/commit/9375445974e8ca824c3467306f9f24206fc91e95))
- watch mode ([35d5b76](https://github.com/AgoraIO-Extensions/agora-rtc-sdk-ng-fake/commit/35d5b764547c078aa869f98e77d93c8bc526eadd))

### Documentation

- update readme ([c25fea2](https://github.com/AgoraIO-Extensions/agora-rtc-sdk-ng-fake/commit/c25fea253fc71712bbe84f1443e008b0ddfc08ba))
- update readme ([4379382](https://github.com/AgoraIO-Extensions/agora-rtc-sdk-ng-fake/commit/4379382632853a9660d46a662bf1bb18c568cb62))

* chore(deps-dev): bump get-func-name from 2.0.0 to 2.0.2 (#1) (27ed3d3)
* chore(deps-dev): bump postcss from 8.4.29 to 8.4.31 (#2) (9e34fc1)
* Merge pull request #3 from AgoraIO-Extensions/dev/export-FakeAgoraRTC (fe5c5b7)
* chore: fix ci issue (76f89b9)
* feat: watch mode (35d5b76)
* chore: release 1.0.0 (001e78a)
* Update publish.yml (17e89f9)
* chore: release 1.0.0 (fbe4d07)
* Update publish.yml (934af34)
* chore: release 1.0.0 (a98db50)
* chore: ci (86eb463)

- Update publish.yml (17e89f9)
- chore: release 1.0.0 (fbe4d07)
- Update publish.yml (934af34)
- chore: release 1.0.0 (a98db50)
- chore: ci (86eb463)

* Update publish.yml (934af34)
* chore: release 1.0.0 (a98db50)
* chore: ci (86eb463)

- chore: ci (86eb463)

## 1.0.0 (2023-10-13)

### Features

- add default export ([2298832](https://github.com/AgoraIO-Extensions/agora-rtc-sdk-ng-fake/commit/22988323b5701fb288d4bbc719fc74937ac2619e))
- export FakeAgoraRTC ([8ab4dd6](https://github.com/AgoraIO-Extensions/agora-rtc-sdk-ng-fake/commit/8ab4dd60e975cda60c43af4bd749127f897e61ca))
- fake-agora-rtc ([9375445](https://github.com/AgoraIO-Extensions/agora-rtc-sdk-ng-fake/commit/9375445974e8ca824c3467306f9f24206fc91e95))

### Documentation

- update readme ([c25fea2](https://github.com/AgoraIO-Extensions/agora-rtc-sdk-ng-fake/commit/c25fea253fc71712bbe84f1443e008b0ddfc08ba))
- update readme ([4379382](https://github.com/AgoraIO-Extensions/agora-rtc-sdk-ng-fake/commit/4379382632853a9660d46a662bf1bb18c568cb62))

* feat: export FakeAgoraRTC (8ab4dd6)
* docs: update readme (c25fea2)

## 1.0.0 (2023-09-05)

### Features

- add default export ([2298832](https://github.com/AgoraIO-Extensions/agora-rtc-sdk-ng-fake/commit/22988323b5701fb288d4bbc719fc74937ac2619e))
- fake-agora-rtc ([9375445](https://github.com/AgoraIO-Extensions/agora-rtc-sdk-ng-fake/commit/9375445974e8ca824c3467306f9f24206fc91e95))

### Documentation

- update readme ([4379382](https://github.com/AgoraIO-Extensions/agora-rtc-sdk-ng-fake/commit/4379382632853a9660d46a662bf1bb18c568cb62))

* feat: add default export (2298832)
* docs: update readme (4379382)

## 1.0.0 (2023-09-05)

### Features
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ agora-rtc-sdk-ng-fake
│ ├─ index.ts //entry
│ ├─ utils.ts // utils
│ ├─ version.ts //package version
├─ tsup.config.ts //build config
├─ webpack.config.ts //build config
└─ vite.config.ts //vitest unit test config

```
1 change: 0 additions & 1 deletion cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"preinstall",
"stremas",
"treeshake",
"tsup",
"UNILBS",
"unocss",
"unpublish",
Expand Down
15 changes: 11 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "agora-rtc-sdk-ng-fake",
"version": "1.0.0",
"version": "1.0.1",
"private": true,
"description": "Fake Agora Web RTC for testing",
"repository": {
Expand All @@ -12,9 +12,10 @@
},
"main": "src/index.ts",
"scripts": {
"start": "tsup src/index.ts --watch",
"prepare": "husky install",
"build": "tsup",
"build": "NODE_ENV=production webpack && pnpm create-package",
"create-package": "node scripts/build-finished.ts",
"watch": "webpack --watch --mode=development",
"test": "vitest --coverage",
"test:watch": "vitest --ui",
"lint": "eslint --ext .ts,.tsx . && prettier --check .",
Expand Down Expand Up @@ -42,9 +43,15 @@
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^4.2.1",
"webpack": "^5.73.0",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.9.2",
"clean-webpack-plugin": "^4.0.0",
"html-webpack-plugin": "^5.5.0",
"husky": "^8.0.3",
"ts-loader": "^9.3.1",
"file-loader": "^6.2.0",
"jsdom": "^22.1.0",
"tsup": "^7.1.0",
"lint-staged": "^14.0.0",
"markdown-it": "^13.0.1",
"minimist": "^1.2.8",
Expand Down
Loading