Skip to content

Commit

Permalink
workflow: switch to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 25, 2021
1 parent caa7a99 commit 826351b
Show file tree
Hide file tree
Showing 13 changed files with 9,065 additions and 8,438 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ jobs:
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- run: yarn install --frozen-lockfile
- run: npm i -g pnpm @antfu/ni
- run: nci
- run: nr test --if-present
- run: npx conventional-github-releaser -p angular
continue-on-error: true
env:
ELECTRON_SKIP_BINARY_DOWNLOAD: '1'
- run: npm run publish:ci
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{secrets.GITHUB_TOKEN}}
- run: nr publish:ci
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NODE_OPTIONS: '--max-old-space-size=6144'
- run: npx conventional-github-releaser -p angular
env:
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{secrets.GITHUB_TOKEN}}

12 changes: 5 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: yarn install --frozen-lockfile
env:
ELECTRON_SKIP_BINARY_DOWNLOAD: '1'
- run: npm i -g pnpm @antfu/ni
- run: nci
- name: Lint
run: yarn lint
run: nr lint
- name: Test Vue 3
run: yarn run test:3
run: nr test:3
- name: Test Vue 2
run: yarn run test:2
run: nr test:2
98 changes: 5 additions & 93 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,99 +1,11 @@
# Created by .ignore support plugin (hsz.mobi)
### Node template
# Logs
/logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
types/
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.DS_Store
.idea
.nuxt

# Nuxt generate
dist

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless

# IDE / Editor
.idea

# Service worker
sw.*

# Mac OSX
.DS_Store

# Vim swap files
*.swp

node_modules
packages/*/LICENSE
packages/contributing.md
packages/core/README.md
packages/core/indexes.json
packages/core/README.md
packages/recently-updated.md
.as-fs
.editor-as-fs
types
4 changes: 2 additions & 2 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
tasks:
- init: yarn install && yarn build
command: yarn dev
- init: npm i -g pnpm && pnpm install && pnpm run build
command: pnpm run dev
ports:
- port: 6006
onOpen: open-preview
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
shamefully-hoist: true
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ Thanks for being interested in contributing to this project!
Clone this repo to your local machine and install the dependencies.

```bash
yarn install
pnpm install
```

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

```bash
yarn dev
pnpm dev
```

## Contributing
Expand Down
8 changes: 5 additions & 3 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
[build.environment]
NPM_FLAGS = "--prefix=/dev/null"
NODE_OPTIONS = "--max_old_space_size=4096"
NODE_VERSION = "16"

[build]
publish = "packages/.vitepress/dist"
command = "npm run docs:build"
Expand All @@ -13,6 +18,3 @@
to = "/index.html"
status = 200

[build.environment]
NODE_OPTIONS = "--max_old_space_size=4096"
NODE_VERSION = "16"
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
"description": "Collection of essential Vue Composition Utilities",
"license": "MIT",
"author": "Anthony Fu<https://github.com/antfu>",
"workspaces": [
"packages/*"
],
"scripts": {
"build": "esno scripts/build.ts",
"build:redirects": "esno scripts/redirects.ts",
Expand Down Expand Up @@ -102,5 +99,8 @@
"vue": "^3.2.18",
"vue-demi": "^0.11.4",
"vue2": "npm:vue@2"
},
"pnpm": {
"neverBuiltDependencies": ["electron"]
}
}
Loading

0 comments on commit 826351b

Please sign in to comment.