Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
fix: add workflow and add cssTarget for vite
Browse files Browse the repository at this point in the history
  • Loading branch information
haoziqaq committed Mar 5, 2022
1 parent b35cbd0 commit 95f70c9
Show file tree
Hide file tree
Showing 7 changed files with 98 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/ISSUE_TEMPLATE/1-bug-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: 'Bug report 🐞'
about: "If something isn't working as expected 🤔."
---

# Bug report 🐞

## Version & Environment

## Expectation

## Actual results (or Errors)
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/2-feature-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: 'Feature request 🚀'
about: 'I have a suggestion!'
---

# Feature request 🚀

### Expected:

- No breaking changes

### Examples:

```js

```

### Programme:

### Others:
6 changes: 6 additions & 0 deletions .github/ISSUE_TEMPLATE/3-style.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
name: 'About `styles` 🛠️'
about: 'Issues and feature requests for styles'
---

# About `styles` 🛠️
6 changes: 6 additions & 0 deletions .github/ISSUE_TEMPLATE/4-docs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
name: 'About `docs` 🛠️'
about: 'Issues and feature requests for docs'
---

# About `docs`
10 changes: 10 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## Checklist

---

- [ ] Fix linting errors
- [ ] Tests have been added / updated (or snapshots)

## Change information

---
43 changes: 43 additions & 0 deletions .github/workflows/deploy-site-sync-gitee.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Deploy Site And Sync to Gitee

on:
push:
branches: [dev, main]

jobs:
deploy-site-sync-gitee:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 6

- name: Set node version to 14
uses: actions/setup-node@v2
with:
node-version: '14.x'
cache: 'pnpm'

- name: Install dependencies
run: pnpm bootstrap

- name: Build site
run: cd packages/varlet-vue2-ui && pnpm build

- name: Deploy site
uses: JamesIves/github-pages-deploy-action@4.1.1
with:
branch: gh-page
folder: packages/varlet-vue2-ui/site

- name: Sync to Gitee
uses: wearerequired/git-mirror-action@master
env:
SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY_FOR_VUE2 }}
with:
source-repo: git@github.com:varletjs/varlet-vue2.git
destination-repo: git@gitee.com:varlet/varlet-ui-vue2.git
1 change: 1 addition & 0 deletions packages/varlet-vue2-cli/src/config/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export function getBuildConfig(varletConfig: Record<string, any>): InlineConfig
outDir: SITE_OUTPUT_PATH,
brotliSize: false,
emptyOutDir: true,
cssTarget: 'chrome61',
rollupOptions: {
input: {
main: resolve(SITE_DIR, 'index.html'),
Expand Down

0 comments on commit 95f70c9

Please sign in to comment.