Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Sep 17, 2022. It is now read-only.

Commit 1c50a00

Browse filesBrowse files
authored
Merge pull request #1 from fluent-vue/setup-build
Setup new build
2 parents 7279914 + 97bf60a commit 1c50a00
Copy full SHA for 1c50a00

File tree

Expand file treeCollapse file tree

10 files changed

+4969
-290
lines changed
Filter options
Expand file treeCollapse file tree

10 files changed

+4969
-290
lines changed

‎.eslintrc.js

Copy file name to clipboard
+15Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
root: true,
3+
parser: '@typescript-eslint/parser',
4+
parserOptions: {
5+
project: './tsconfig.json'
6+
},
7+
plugins: ['@typescript-eslint'],
8+
extends: [
9+
'eslint:recommended',
10+
'plugin:@typescript-eslint/eslint-recommended',
11+
'plugin:@typescript-eslint/recommended',
12+
'standard-with-typescript'
13+
],
14+
ignorePatterns: ['node_modules/', 'dist/', '*.js']
15+
}

‎.github/workflows/ shipjs-trigger.yml

Copy file name to clipboard
+28Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Ship js trigger
2+
on:
3+
pull_request:
4+
types:
5+
- closed
6+
jobs:
7+
build:
8+
name: Release
9+
runs-on: ubuntu-latest
10+
if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'releases/v')
11+
steps:
12+
- uses: actions/checkout@v2.3.5
13+
with:
14+
fetch-depth: 0
15+
ref: main
16+
- uses: actions/setup-node@v2.4.1
17+
with:
18+
registry-url: "https://registry.npmjs.org"
19+
node-version: '14'
20+
- uses: pnpm/action-setup@v2.0.1
21+
with:
22+
version: 6.x.x
23+
run_install: true
24+
- run: npx shipjs trigger
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
28+
SLACK_INCOMING_HOOK: ${{ secrets.SLACK_INCOMING_HOOK }}

‎.github/workflows/test.yml

Copy file name to clipboard
+52Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Test
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
env:
10+
CI: true
11+
12+
jobs:
13+
test:
14+
name: "Test on Node.js ${{ matrix.node }} OS: ${{ matrix.os }} Vue: ${{matrix.vue}}"
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
matrix:
18+
os: [ubuntu-latest, windows-latest]
19+
node: [16]
20+
steps:
21+
- uses: actions/checkout@v2.3.5
22+
with:
23+
fetch-depth: 0
24+
- uses: actions/setup-node@v2.4.1
25+
with:
26+
node-version: ${{ matrix.node }}
27+
- uses: pnpm/action-setup@v2.0.1
28+
with:
29+
version: 6.x.x
30+
run_install: true
31+
32+
- name: Test
33+
run: pnpm test -- --coverage
34+
35+
- name: Upload code coverage
36+
uses: codecov/codecov-action@v2
37+
38+
lint:
39+
runs-on: ubuntu-latest
40+
name: "Lint source code"
41+
steps:
42+
- uses: actions/checkout@v2.3.5
43+
with:
44+
fetch-depth: 0
45+
- uses: actions/setup-node@v2.4.1
46+
- uses: pnpm/action-setup@v2.0.1
47+
with:
48+
version: 6.x.x
49+
run_install: true
50+
51+
- name: Lint
52+
run: pnpm lint

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.