Skip to content

Commit 235ee8f

Browse files
bun -> rush (#62)
Signed-off-by: Kristina Fefelova <[email protected]>
1 parent 9ac6151 commit 235ee8f

File tree

128 files changed

+9839
-1890
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+9839
-1890
lines changed

.gitattributes

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Don't allow people to merge changes to these generated files, because the result
2+
# may be invalid. You need to run "rush update" again.
3+
pnpm-lock.yaml merge=text
4+
shrinkwrap.yaml merge=binary
5+
npm-shrinkwrap.json merge=binary
6+
yarn.lock merge=binary
7+
8+
# Rush's JSON config files use JavaScript-style code comments. The rule below prevents pedantic
9+
# syntax highlighters such as GitHub's from highlighting these comments as errors. Your text editor
10+
# may also require a special configuration to allow comments in JSON.
11+
#
12+
# For more information, see this issue: https://github.com/microsoft/rushstack/issues/1088
13+
#
14+
*.json linguist-language=JSON-with-Comments

.github/workflows/main.yaml

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -34,32 +34,26 @@ jobs:
3434
- name: Checkout
3535
uses: actions/checkout@v4
3636

37-
- name: Set up bun
38-
uses: oven-sh/setup-bun@v2
39-
with:
40-
bun-version: 1.2.9
41-
4237
- name: Set up Node.js
4338
uses: actions/setup-node@v4
4439
with:
45-
node-version: 20
40+
node-version: 22
4641
registry-url: 'https://npm.pkg.github.com'
4742
scope: '@hcengineering'
4843

49-
- name: Prepare deps
44+
- name: Prepare .npmrc for GitHub Packages
5045
run: |
51-
echo "@hcengineering:registry=https://npm.pkg.github.com" > .npmrc
52-
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
53-
54-
- name: Install dependencies
55-
run: bun install
56-
57-
- name: Build
58-
run: bun run build
59-
60-
- name: Check format
61-
run: bun run format:check
62-
63-
- name: Lint
64-
run: bun run lint
65-
46+
echo "//npm.pkg.github.com/:_authToken=${{secrets.GITHUB_TOKEN}}" > ~/.npmrc
47+
48+
- name: Checking for mis-matching dependencies...
49+
run: node common/scripts/install-run-rush.js check
50+
- name: Rush Install
51+
run: node common/scripts/install-run-rush.js update
52+
- name: Rush rebuild
53+
run: node common/scripts/install-run-rush.js build
54+
- name: Rush validate
55+
run: node common/scripts/install-run-rush.js validate
56+
- name: Linting
57+
run: node common/scripts/install-run-rush.js lint
58+
- name: Formatting
59+
run: node common/scripts/install-run-rush.js format

.gitignore

Lines changed: 125 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,129 @@
1-
# build output
2-
dist/
1+
# Logs
2+
*.log
3+
npm-debug.log*
4+
yarn-debug.log*
5+
yarn-error.log*
6+
.pnpm-debug.log*
7+
rush-logs/
8+
9+
# Diagnostic reports (https://nodejs.org/api/report.html)
10+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11+
12+
# Runtime data
13+
*.pid
14+
*.seed
15+
*.pid.lock
16+
17+
# Directory for instrumented libs generated by jscoverage/JSCover
18+
lib-cov/
19+
20+
# Coverage directory used by tools like istanbul
21+
coverage/
22+
23+
# nyc test coverage
24+
.nyc_output/
25+
26+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
27+
.grunt/
28+
29+
# Bower dependency directory (https://bower.io/)
30+
bower_components/
31+
32+
# node-waf configuration
33+
.lock-wscript/
34+
35+
# Compiled binary addons (https://nodejs.org/api/addons.html)
36+
build/Release/
37+
38+
# Dependency directories
39+
node_modules/
40+
jspm_packages/
41+
42+
# TypeScript cache
43+
*.tsbuildinfo
44+
45+
# Optional npm cache directory
46+
.npm/
47+
48+
# Optional eslint cache
49+
.eslintcache/
50+
51+
# Optional REPL history
52+
.node_repl_history
53+
54+
# Output of 'npm pack'
55+
*.tgz
56+
57+
# Yarn Integrity file
58+
.yarn-integrity
59+
60+
# dotenv environment variables file
61+
.env
62+
.env.development.local
63+
.env.test.local
64+
.env.production.local
65+
.env.local
66+
67+
# next.js build output
68+
.next/
69+
70+
# Docusaurus cache and generated files
71+
.docusaurus/
72+
73+
# Serverless directories
74+
.serverless/
75+
76+
# FuseBox cache
77+
.fusebox/
78+
79+
# DynamoDB Local files
80+
.dynamodb/
81+
82+
# yarn v2
83+
.yarn/cache/
84+
.yarn/unplugged/
85+
.yarn/build-state.yml
86+
.yarn/install-state.gz
87+
.pnp.*
88+
89+
# OS X temporary files
90+
.DS_Store
91+
92+
# IntelliJ IDEA project files; if you want to commit IntelliJ settings, this recipe may be helpful:
93+
# https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
94+
.idea/
95+
*.iml
96+
97+
# Visual Studio Code
98+
.vscode/
99+
!.vscode/tasks.json
100+
!.vscode/launch.json
101+
102+
# Rush temporary files
103+
common/deploy/
104+
common/temp/
105+
common/autoinstallers/*/.npmrc
106+
**/.rush/temp/
107+
*.lock
108+
109+
# Common toolchain intermediate files
110+
temp/
3111
lib/
112+
lib-amd/
113+
lib-es6/
114+
lib-esnext/
115+
lib-commonjs/
116+
lib-shim/
117+
dist/
118+
dist-storybook/
119+
120+
# Heft temporary files
121+
.cache/
122+
.heft/
123+
.rush/
124+
.validate
125+
126+
# build output
4127
.turbo/
5128
**/types/
6129

@@ -9,21 +132,9 @@ lib/
9132
# VS Code settings
10133
.vscode/settings.json
11134

12-
# Jetbrains setting folder
13-
.idea/
14-
15-
# dependencies
16-
node_modules/
17-
18135
# logs
19-
npm-debug.log*
20-
yarn-debug.log*
21-
yarn-error.log*
22136
pnpm-debug.log*
23137

24138
# environment variables
25-
.env
26139
.env.production
27140

28-
# macOS-specific files
29-
.DS_Store

README.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,34 @@
11
## 📡 Platform Communication Package
22

33
A modular communication package for platform-level messaging —
4-
built with [Bun](https://bun.sh).
4+
built with [Rush](https://rushjs.io/).
55

66
---
77

88
### 📦 Installation
99

10-
Install dependencies using Bun:
10+
Install rush:
1111

1212
```bash
13-
bun install
13+
npm install -g @microsoft/rush
14+
```
15+
16+
Install dependencies:
17+
18+
```bash
19+
rush update
1420
```
1521

1622
### Build packages
1723

1824
```bash
19-
bun run build
25+
rush build
26+
rush validate
2027
```
2128

2229
### Lint & format
2330

2431
```bash
25-
bun run lint
26-
bun run format
32+
rush lint
33+
rush format
2734
```

0 commit comments

Comments
 (0)