Skip to content

Commit 826351b

Browse files
committed
workflow: switch to pnpm
1 parent caa7a99 commit 826351b

File tree

13 files changed

+9065
-8438
lines changed

13 files changed

+9065
-8438
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,15 @@ jobs:
2525
with:
2626
node-version: 14
2727
registry-url: https://registry.npmjs.org/
28-
- run: yarn install --frozen-lockfile
28+
- run: npm i -g pnpm @antfu/ni
29+
- run: nci
30+
- run: nr test --if-present
31+
- run: npx conventional-github-releaser -p angular
32+
continue-on-error: true
2933
env:
30-
ELECTRON_SKIP_BINARY_DOWNLOAD: '1'
31-
- run: npm run publish:ci
34+
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{secrets.GITHUB_TOKEN}}
35+
- run: nr publish:ci
3236
env:
3337
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
3438
NODE_OPTIONS: '--max-old-space-size=6144'
35-
- run: npx conventional-github-releaser -p angular
36-
env:
37-
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{secrets.GITHUB_TOKEN}}
3839

.github/workflows/test.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,11 @@ jobs:
2727
uses: actions/setup-node@v1
2828
with:
2929
node-version: ${{ matrix.node-version }}
30-
- name: Install
31-
run: yarn install --frozen-lockfile
32-
env:
33-
ELECTRON_SKIP_BINARY_DOWNLOAD: '1'
30+
- run: npm i -g pnpm @antfu/ni
31+
- run: nci
3432
- name: Lint
35-
run: yarn lint
33+
run: nr lint
3634
- name: Test Vue 3
37-
run: yarn run test:3
35+
run: nr test:3
3836
- name: Test Vue 2
39-
run: yarn run test:2
37+
run: nr test:2

.gitignore

Lines changed: 5 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -1,99 +1,11 @@
1-
# Created by .ignore support plugin (hsz.mobi)
2-
### Node template
3-
# Logs
4-
/logs
5-
*.log
6-
npm-debug.log*
7-
yarn-debug.log*
8-
yarn-error.log*
9-
10-
# Runtime data
11-
pids
12-
*.pid
13-
*.seed
14-
*.pid.lock
15-
16-
# Directory for instrumented libs generated by jscoverage/JSCover
17-
lib-cov
18-
19-
# Coverage directory used by tools like istanbul
20-
coverage
21-
22-
# nyc test coverage
23-
.nyc_output
24-
25-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
26-
.grunt
27-
28-
# Bower dependency directory (https://bower.io/)
29-
bower_components
30-
31-
# node-waf configuration
32-
.lock-wscript
33-
34-
# Compiled binary addons (https://nodejs.org/api/addons.html)
35-
build/Release
36-
37-
# Dependency directories
38-
node_modules/
39-
jspm_packages/
40-
41-
# TypeScript v1 declaration files
42-
types/
43-
typings/
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-
63-
# parcel-bundler cache (https://parceljs.org/)
64-
.cache
65-
66-
# next.js build output
67-
.next
68-
69-
# nuxt.js build output
1+
.DS_Store
2+
.idea
703
.nuxt
71-
72-
# Nuxt generate
734
dist
74-
75-
# vuepress build output
76-
.vuepress/dist
77-
78-
# Serverless directories
79-
.serverless
80-
81-
# IDE / Editor
82-
.idea
83-
84-
# Service worker
85-
sw.*
86-
87-
# Mac OSX
88-
.DS_Store
89-
90-
# Vim swap files
91-
*.swp
92-
5+
node_modules
936
packages/*/LICENSE
947
packages/contributing.md
95-
packages/core/README.md
968
packages/core/indexes.json
9+
packages/core/README.md
9710
packages/recently-updated.md
98-
.as-fs
99-
.editor-as-fs
11+
types

.gitpod.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
tasks:
2-
- init: yarn install && yarn build
3-
command: yarn dev
2+
- init: npm i -g pnpm && pnpm install && pnpm run build
3+
command: pnpm run dev
44
ports:
55
- port: 6006
66
onOpen: open-preview

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
shamefully-hoist: true

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ Thanks for being interested in contributing to this project!
99
Clone this repo to your local machine and install the dependencies.
1010

1111
```bash
12-
yarn install
12+
pnpm install
1313
```
1414

1515
We use Vitepress for rapid development and documenting. You can start it locally by
1616

1717
```bash
18-
yarn dev
18+
pnpm dev
1919
```
2020

2121
## Contributing

netlify.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
[build.environment]
2+
NPM_FLAGS = "--prefix=/dev/null"
3+
NODE_OPTIONS = "--max_old_space_size=4096"
4+
NODE_VERSION = "16"
5+
16
[build]
27
publish = "packages/.vitepress/dist"
38
command = "npm run docs:build"
@@ -13,6 +18,3 @@
1318
to = "/index.html"
1419
status = 200
1520

16-
[build.environment]
17-
NODE_OPTIONS = "--max_old_space_size=4096"
18-
NODE_VERSION = "16"

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
"description": "Collection of essential Vue Composition Utilities",
66
"license": "MIT",
77
"author": "Anthony Fu<https://github.com/antfu>",
8-
"workspaces": [
9-
"packages/*"
10-
],
118
"scripts": {
129
"build": "esno scripts/build.ts",
1310
"build:redirects": "esno scripts/redirects.ts",
@@ -102,5 +99,8 @@
10299
"vue": "^3.2.18",
103100
"vue-demi": "^0.11.4",
104101
"vue2": "npm:vue@2"
102+
},
103+
"pnpm": {
104+
"neverBuiltDependencies": ["electron"]
105105
}
106106
}

0 commit comments

Comments
 (0)