Skip to content

Commit

Permalink
[optimize] upgrade Upstream packages
Browse files Browse the repository at this point in the history
[optimize] replace Travis CI with GitHub Actions
[add] GitHub Sponsor configuration
  • Loading branch information
TechQuery committed Jan 3, 2021
1 parent 02c5655 commit bdf4d2d
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 45 deletions.
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
custom:
- https://paypal.me/TechQuery
- https://tech-query.me/image/TechQuery-Alipay.jpg
25 changes: 25 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI & CD
on:
push:
branches:
- v2
jobs:
Build-and-Deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2-beta
with:
node-version: '14'
- name: Install & build
run: |
npm install
npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./docs
personal_token: ${{ secrets.GITHUB_TOKEN }}
force_orphan: true
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ test/
dist/
Contributing.md
docs/
.travis.yml
.github/
.vscode/
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[Web Component][1] Router based on [WebCell][2] & [Iterable Observer][3]

[![NPM Dependency](https://david-dm.org/EasyWebApp/cell-router.svg)][4]
[![Build Status](https://travis-ci.com/EasyWebApp/cell-router.svg?branch=master)][5]
[![CI & CD](https://github.com/EasyWebApp/cell-router/workflows/CI%20&%20CD/badge.svg)][5]

[![NPM](https://nodei.co/npm/cell-router.png?downloads=true&downloadRank=true&stars=true)][6]

Expand Down Expand Up @@ -141,7 +141,7 @@ documentReady.then(() =>
[2]: https://web-cell.dev/
[3]: https://web-cell.dev/iterable-observer/
[4]: https://david-dm.org/EasyWebApp/cell-router
[5]: https://travis-ci.com/EasyWebApp/cell-router
[5]: https://github.com/EasyWebApp/cell-router/actions
[6]: https://nodei.co/npm/cell-router/
[7]: https://github.com/EasyWebApp/cell-router/blob/v2/test/source/index.less#L5
[8]: https://github.com/EasyWebApp/cell-router/blob/v2/test/source/page/index.tsx#L12
29 changes: 14 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cell-router",
"version": "2.0.2",
"version": "2.0.4",
"license": "LGPL-3.0",
"description": "Web Component Router based on WebCell & MobX",
"keywords": [
Expand All @@ -25,28 +25,29 @@
"module": "dist/cell-router.js",
"dependencies": {
"iterable-observer": "^1.0.0-beta.5",
"web-cell": "^2.2.0",
"web-utility": "^2.1.0"
"web-cell": "^2.3.0-beta.5",
"web-utility": "^2.4.1"
},
"devDependencies": {
"@types/jest": "^26.0.18",
"@types/node": "^14.14.12",
"@types/puppeteer-core": "^2.0.0",
"@types/jest": "^26.0.19",
"@types/node": "^14.14.19",
"@types/puppeteer-core": "^5.4.0",
"@webcomponents/webcomponentsjs": "^2.5.0",
"element-internals-polyfill": "^0.1.1",
"fs-match": "^1.5.0",
"husky": "^4.3.5",
"husky": "^4.3.6",
"jest": "^26.6.3",
"koapache": "^2.1.1",
"less": "^3.12.2",
"less": "^4.0.0",
"lint-staged": "^10.5.3",
"microbundle": "^0.12.4",
"microbundle": "^0.13.0",
"parcel-bundler": "^1.12.4",
"prettier": "^2.2.1",
"puppeteer-core": "^5.5.0",
"snabbdom": "^1.0.1",
"snabbdom": "^2.1.0",
"ts-jest": "^26.4.4",
"typedoc": "^0.19.2",
"typescript": "^4.1.2"
"typedoc": "^0.20.10",
"typescript": "^4.1.3"
},
"scripts": {
"start": "cd test/ && parcel source/index.html --no-source-maps --open",
Expand All @@ -71,9 +72,7 @@
"testEnvironment": "node"
},
"lint-staged": {
"*.{html,md,js,json,ts,tsx}": [
"prettier --write"
]
"*.{html,md,js,json,ts,tsx}": "prettier --write"
},
"husky": {
"hooks": {
Expand Down
7 changes: 3 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
{
"compilerOptions": {
"module": "ES6",
"module": "ES2020",
"moduleResolution": "Node",
"esModuleInterop": true,
"downlevelIteration": true,
"experimentalDecorators": true,
"jsx": "react",
"jsxFactory": "createCell",
"lib": ["ES2019", "DOM", "DOM.Iterable"],
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"target": "ES5"
},
"include": ["source/*"],
"typedocOptions": {
"name": "Cell Router",
"mode": "file",
"excludeExternals": true,
"excludeNotExported": true,
"excludePrivate": true,
"readme": "./ReadMe.md",
"out": "docs/"
}
Expand Down

0 comments on commit bdf4d2d

Please sign in to comment.