Skip to content

Commit d6e9368

Browse files
committed
chore: add actions
1 parent e8fdf49 commit d6e9368

File tree

8 files changed

+8393
-35
lines changed

8 files changed

+8393
-35
lines changed

.checklist.md

-30
This file was deleted.

.github/workflows/release-tag.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
on:
2+
push:
3+
tags:
4+
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
5+
6+
name: Create Release
7+
8+
jobs:
9+
build:
10+
name: Create Release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@master
15+
- name: Create Release for Tag
16+
id: release_tag
17+
uses: yyx990803/release-tag@master
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
with:
21+
tag_name: ${{ github.ref }}
22+
body: |
23+
Please refer to [CHANGELOG.md](https://github.com/posva/vue-lib/blob/master/CHANGELOG.md) for details.

.github/workflows/size-limit.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: 'size'
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
jobs:
7+
size:
8+
runs-on: ubuntu-latest
9+
env:
10+
CI_JOB_NUMBER: 1
11+
steps:
12+
- uses: actions/checkout@v1
13+
- uses: andresz1/[email protected]
14+
with:
15+
github_token: ${{ secrets.GITHUB_TOKEN }}

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ yarn-error.log
66
coverage.lcov
77
dist
88
package-lock.json
9-
yarn.lock
109
.DS_Store
10+
temp

README.md

+26-1
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,37 @@ Demo (TODO link)
66

77
## Copying this project
88

9-
Using [degit](https://github.com/Rich-Harris/degit):
9+
You can directly create a project from this template by using the [Use this template button](https://github.com/posva/vue-lib-boilerplate/generate) if you plan on hosting it on GitHub.
10+
11+
You can also use [degit](https://github.com/Rich-Harris/degit):
1012

1113
```sh
1214
degit posva/vue-lib-boilerplate
1315
```
1416

17+
### Checklist of things to do when creating a lib
18+
19+
#### Rename the project
20+
21+
```sh
22+
sed -i '' 's/vue-lib-boilerplates/vue-lib/g' README.md package.json`
23+
```
24+
25+
#### Circle CI
26+
27+
- Add the project: https://circleci.com/projects/gh/posva
28+
- Check _Build on forked pull requests_: https://circleci.com/gh/posva/vue-lib/edit#advanced-settings
29+
- Check _Auto cancel redundant build_ (same place)
30+
31+
## Dependabot
32+
33+
- Activate it: https://dependabot.com/
34+
- Limit checks to per week
35+
36+
## Github Settings
37+
38+
- Activate Sponsor section
39+
1540
(Remove this section after creating your own lib)
1641

1742
## Installation

package.json

-3
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,8 @@
4646
"conventional-changelog-cli": "^2.0.34",
4747
"jest": "^26.2.2",
4848
"lint-staged": "^10.2.11",
49-
"pascalcase": "^1.0.0",
5049
"prettier": "^2.0.5",
5150
"rollup": "^2.23.0",
52-
"rollup-plugin-commonjs": "^10.1.0",
53-
"rollup-plugin-node-resolve": "^5.2.0",
5451
"rollup-plugin-terser": "^6.1.0",
5552
"rollup-plugin-typescript2": "^0.27.1",
5653
"size-limit": "^4.5.5",

src/index.ts

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/**
2+
* Returns true.
3+
*/
14
export function mylib() {
25
return true
36
}

0 commit comments

Comments
 (0)