Skip to content

Commit

Permalink
build: move to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
zouyaoji committed Dec 5, 2021
1 parent 5a77bee commit 8623870
Show file tree
Hide file tree
Showing 90 changed files with 17,944 additions and 19,841 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/master-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- main

jobs:
main-deploy:
deploy-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -16,16 +16,21 @@ jobs:
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '12'
node-version: '16'

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: latest

- name: Install dependencies
run: yarn bootstrap
run: pnpm i --frozen-lockfile

- name: Build Website
run: yarn website-build
run: pnpm website-build

- name: Build Indices
run: yarn build:indices
run: pnpm build:indices
env:
ALGOLIA_KEY: ${{secrets.ALGOLIA_KEY}}

Expand All @@ -39,11 +44,6 @@ jobs:
GIT_CONFIG_EMAIL: [email protected]
COMMIT_MESSAGE: website deploy

# - name: Sync
# env:
# TRIGGERSYNCURL: ${{ secrets.TRIGGERSYNCURL }}
# run: curl "$TRIGGERSYNCURL"

- name: Sync to Gitee
uses: x-dr/[email protected]
env:
Expand Down
18 changes: 13 additions & 5 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,17 @@ jobs:
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '14'
node-version: '16'
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Install dependencies
run: yarn bootstrap
run: pnpm i --frozen-lockfile
- name: Lint
run: yarn lint
run: pnpm lint
- name: Test
run: yarn test
run: pnpm test

publish:
needs: test
Expand All @@ -27,8 +31,12 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
node-version: '16'
registry-url: https://registry.npmjs.com/
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Get version
run: echo "TAG_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Get git head
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@ jobs:
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '14'
node-version: '16'
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Install dependencies
run: yarn bootstrap
run: pnpm i --frozen-lockfile
- name: Lint
run: yarn lint
run: pnpm lint
- name: Test
run: yarn test
run: pnpm test

dependabot:
needs:
Expand Down
23 changes: 11 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
.vscode
# Editor directories and files
.idea
.vscode

# Package Manager
node_modules
.pnpm-debug.log*

# System
.DS_Store

# Bundle
dist
*.local
yarn-error.log
lerna-debug.json
lerna-debug.log
yarn-error.log
storybook-static
coverage/
website-dist
lib
website/play/index.vue
coverage
packages/vue-cesium/version.ts
/es/
website-dist
es
lib
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
shamefully-hoist = true
electron_mirror=https://npm.taobao.org/mirrors/electron/
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v16
1 change: 0 additions & 1 deletion .yarnrc

This file was deleted.

2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @Author: zouyaoji@https://github.com/zouyaoji
* @Date: 2021-09-16 09:28:13
* @LastEditTime: 2021-10-11 13:33:18
* @LastEditTime: 2021-12-04 16:29:36
* @LastEditors: zouyaoji
* @Description:
* @FilePath: \vue-cesium@next\babel.config.js
Expand Down
8 changes: 8 additions & 0 deletions build/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* @Author: zouyaoji@https://github.com/zouyaoji
* @Date: 2021-12-03 14:11:08
* @LastEditTime: 2021-12-05 09:46:55
* @LastEditors: zouyaoji
* @Description:
* @FilePath: \vue-cesium@next\build\.eslintrc.js
*/
module.exports = {
rules: {
'no-console': 'off'
Expand Down
86 changes: 0 additions & 86 deletions build/build-helper-zh.js

This file was deleted.

96 changes: 0 additions & 96 deletions build/build-helper.ts

This file was deleted.

Loading

0 comments on commit 8623870

Please sign in to comment.