Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: uiwjs/react-github-corners
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.4.0
Choose a base ref
...
head repository: uiwjs/react-github-corners
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.5.0
Choose a head ref
  • 3 commits
  • 5 files changed
  • 1 contributor

Commits on Aug 29, 2021

  1. Copy the full SHA
    6325247 View commit details
  2. Copy the full SHA
    1c56615 View commit details
  3. released v1.5.0

    jaywcjlove committed Aug 29, 2021
    Copy the full SHA
    86c9149 View commit details
Showing with 39 additions and 89 deletions.
  1. +0 −37 .babelrc
  2. +9 −3 .github/workflows/ci.yml
  3. +5 −2 .gitignore
  4. +19 −24 package.json
  5. +6 −23 src/tsconfig.json
37 changes: 0 additions & 37 deletions .babelrc

This file was deleted.

12 changes: 9 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -17,14 +17,14 @@ jobs:

- name: Create Tag
id: create_tag
uses: jaywcjlove/create-tag-action@v1.1.10
uses: jaywcjlove/create-tag-action@v1.2.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
package-path: ./package.json

- name: Generate Changelog
id: changelog
uses: jaywcjlove/changelog-generator@v1.3.10
uses: jaywcjlove/changelog-generator@v1.4.3
with:
token: ${{ secrets.GITHUB_TOKEN }}
head-ref: ${{steps.create_tag.outputs.version}}
@@ -40,16 +40,22 @@ jobs:
tag: ${{ steps.create_tag.outputs.version }}
body: |
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-github-corners@${{steps.create_tag.outputs.versionNumber}}/file/README.md) [![](https://img.shields.io/github/issues/uiwjs/react-github-corners.svg)](https://github.com/uiwjs/react-github-corners/releases) [![](https://img.shields.io/github/forks/uiwjs/react-github-corners.svg)](https://github.com/uiwjs/react-github-corners/network) [![](https://img.shields.io/github/stars/uiwjs/react-github-corners.svg)](https://github.com/uiwjs/react-github-corners/stargazers) [![](https://img.shields.io/github/release/uiwjs/react-github-corners.svg)](https://github.com/uiwjs/react-github-corners/releases) [![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-github-corners)](https://bundlephobia.com/result?p=@uiw/react-github-corners@${{steps.create_tag.outputs.versionNumber}})
```bash
npm i @uiw/react-github-corners@${{steps.create_tag.outputs.versionNumber}}
```
${{ steps.changelog.outputs.compareurl }}
${{ steps.changelog.outputs.changelog }}
- run: npm run doc
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
publish_dir: ./build

- run: npm install @jsdevtools/npm-publish -g
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json

7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
node_modules
lib
cjs
esm
build
npm-debug.log*
package-lock.json
node_modules

.DS_Store
.cache
.rdoc-dist
.vscode

*.log
*.bak
*.tem
*.temp
43 changes: 19 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,19 @@
{
"name": "@uiw/react-github-corners",
"version": "1.4.0",
"version": "1.5.0",
"description": "Add a Github corner to your project page, This GitHub corners for react component.",
"main": "lib/cjs/index.js",
"module": "lib/esm/index.js",
"main": "cjs/index.js",
"module": "esm/index.js",
"scripts": {
"prepare": "npm run build",
"released": "npm run build && npm run doc",
"doc": "kkt build --app-src ./website",
"start": "kkt start --app-src ./website",
"watch": "npm run ts:watch & npm run types:watch",
"build": "npm run ts:build && npm run types:esm && npm run types:cjs && npm run css:build && npm run css:build:dist",
"types:build": "tsbb types --sourceRoot src --target ESNEXT",
"types:watch": "npm run types:esm -- --watch & npm run types:cjs -- --watch",
"types:esm": "npm run types:build -- --outDir ../lib/esm",
"types:cjs": "npm run types:build -- --outDir ../lib/cjs",
"css:build": "compile-less -d src -o lib/esm",
"css:watch": "compile-less -d src -o lib/esm --watch",
"css:build:dist": "compile-less -d src --combine lib/w-github-corners.css --rm-global",
"ts:watch": "tsbb watch --env-name esm:dev --env-name cjs --target react",
"ts:build": "tsbb build --target react"
"css:build": "compile-less -d src -o esm",
"css:watch": "compile-less -d src -o esm --watch",
"css:build:dist": "compile-less -d src --combine w-github-corners.css --rm-global",
"watch": "tsbb watch",
"build": "tsbb build"
},
"homepage": "https://uiwjs.github.io/react-github-corners",
"repository": {
@@ -33,23 +27,24 @@
"react-dom": ">=16.8.0"
},
"files": [
"lib",
"cjs",
"esm",
"src"
],
"dependencies": {},
"devDependencies": {
"@types/react": "17.0.5",
"@types/react-dom": "17.0.3",
"@uiw/react-markdown-preview": "3.1.1",
"@types/react": "17.0.19",
"@types/react-dom": "17.0.9",
"@uiw/react-markdown-preview": "3.3.0",
"@uiw/react-shields": "1.1.1",
"@uiw/reset.css": "1.0.4",
"@kkt/raw-modules": "6.9.0",
"@kkt/scope-plugin-options": "6.9.0",
"compile-less-cli": "1.8.0",
"kkt": "6.9.0",
"@uiw/reset.css": "1.0.5",
"@kkt/raw-modules": "6.11.0",
"@kkt/scope-plugin-options": "6.11.0",
"compile-less-cli": "1.8.1",
"kkt": "6.11.0",
"react": "17.0.2",
"react-dom": "17.0.2",
"tsbb": "2.2.0"
"tsbb": "3.0.0"
},
"eslintConfig": {
"extends": [
29 changes: 6 additions & 23 deletions src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,10 @@
{
"extends": "../tsconfig",
"include": ["../src"],
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"declaration": true,
"baseUrl": ".",
"jsx": "react"
},
"include": ["../src"],
"typeRoots": [
"../node_modules/@types",
]
"outDir": "../cjs",
"emitDeclarationOnly": true,
"noEmit": false
}
}