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-shields
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.1.1
Choose a base ref
...
head repository: uiwjs/react-shields
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.1.2
Choose a head ref
  • 6 commits
  • 6 files changed
  • 2 contributors

Commits on Jan 21, 2021

  1. Copy the full SHA
    01ea1c2 View commit details
  2. Copy the full SHA
    d5dfb94 View commit details

Commits on Mar 29, 2021

  1. Copy the full SHA
    878f43c View commit details

Commits on Sep 9, 2021

  1. Copy the full SHA
    124fa59 View commit details
  2. Copy the full SHA
    65a05bc View commit details
  3. released v1.1.2

    jaywcjlove committed Sep 9, 2021
    Copy the full SHA
    e04b76b View commit details
Showing with 54 additions and 120 deletions.
  1. +0 −37 .babelrc
  2. +21 −25 .github/workflows/ci.yml
  3. +4 −2 .gitignore
  4. +4 −4 .kktrc.ts
  5. +18 −28 package.json
  6. +7 −24 src/tsconfig.json
37 changes: 0 additions & 37 deletions .babelrc

This file was deleted.

46 changes: 21 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -7,20 +7,10 @@ jobs:
build-deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master

- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '10.x'

- name: Look Changelog
uses: jaywcjlove/changelog-generator@v1.3.9
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
head-ref: ${{steps.create_tag.outputs.version}}
filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
node-version: 14

- run: npm install
- run: npm run build
@@ -33,34 +23,40 @@ jobs:
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./build

- name: Create Tag
- name: Is a tag created auto?
id: create_tag
uses: jaywcjlove/create-tag-action@v1.1.7
uses: jaywcjlove/create-tag-action@v1.2.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
package-path: ./package.json

- name: Generate Changelog
id: changelog
uses: jaywcjlove/changelog-generator@v1.3.9
uses: jaywcjlove/changelog-generator@v1.4.3
with:
token: ${{ secrets.GITHUB_TOKEN }}
head-ref: ${{steps.create_tag.outputs.version}}
filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
filter-author: (jaywcjlove|小弟调调™|dependabot|dependabot\[bot\]|Renovate Bot)
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'


- name: Create Release
id: create_release
uses: actions/create-release@latest
uses: ncipollo/release-action@v1
if: steps.create_tag.outputs.successful
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.create_tag.outputs.version }}
release_name: ${{ steps.create_tag.outputs.version }}
token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ steps.create_tag.outputs.version }}
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-shields@${{ steps.create_tag.outputs.versionNumber }}/file/README.md)
```bash
npm i @uiw/react-shields@${{ steps.create_tag.outputs.versionNumber }}
```
${{ steps.changelog.outputs.compareurl }}
${{ steps.changelog.outputs.changelog }}
draft: false
prerelease: false
- run: npm install @jsdevtools/npm-publish -g
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
node_modules
lib
esm
cjs
build
node_modules
npm-debug.log*
package-lock.json

.DS_Store
.cache
.rdoc-dist
8 changes: 4 additions & 4 deletions .kktrc.ts
Original file line number Diff line number Diff line change
@@ -6,15 +6,16 @@ import rawModules from '@kkt/raw-modules';
import scopePluginOptions from '@kkt/scope-plugin-options';
import pkg from './package.json';

export default (conf: Configuration, env: string, options: LoaderConfOptions) => {
export default (conf: Configuration, env: 'production' | 'development', options: LoaderConfOptions) => {
conf = lessModules(conf, env, options);
conf = rawModules(conf, env, { ...options });
conf = scopePluginOptions(conf, env, {
...options,
allowedFiles: [
path.resolve(process.cwd(), 'README.md')
path.resolve(process.cwd(), 'README.md'),
]
});
conf = lessModules(conf, env, options);
// conf.resolve!.alias = { '@uiw/react-monacoeditor': process.cwd() };
// Get the project version.
conf.plugins!.push(new webpack.DefinePlugin({
VERSION: JSON.stringify(pkg.version),
@@ -24,4 +25,3 @@ export default (conf: Configuration, env: string, options: LoaderConfOptions) =>
}
return conf;
}

46 changes: 18 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,16 @@
{
"name": "@uiw/react-shields",
"version": "1.1.1",
"version": "1.1.2",
"description": "Shields.io for react component, Quality metadata badges for open source projects.",
"main": "lib/cjs/index.js",
"module": "lib/esm/index.js",
"typings": "lib/cjs/index.d.ts",
"main": "cjs/index.js",
"module": "esm/index.js",
"scripts": {
"prepare": "npm run build:lib",
"prepare": "npm run build",
"released": "npm run build && npm run doc",
"doc": "kkt build --app-src ./website",
"start": "kkt start --app-src ./website",
"build": "npm run build:lib && npm run doc",
"build:lib": "npm run ts:build && npm run types:esm && npm run types:cjs && npm run css:build",
"watch": "npm run ts:watch & npm run types:watch & npm run css:watch",
"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",
"ts:watch": "tsbb watch --env-name esm:dev --env-name cjs --target react",
"ts:build": "tsbb build --target react"
"watch": "tsbb watch",
"build": "tsbb build"
},
"homepage": "https://uiwjs.github.io/react-shields",
"repository": {
@@ -31,7 +21,8 @@
"license": "MIT",
"files": [
"src",
"lib"
"esm",
"cjs"
],
"peerDependencies": {
"@babel/runtime": ">=7.0.0",
@@ -40,17 +31,16 @@
},
"dependencies": {},
"devDependencies": {
"@kkt/less-modules": "6.2.1",
"@kkt/raw-modules": "6.2.1",
"@kkt/scope-plugin-options": "6.2.1",
"@types/react": "16.9.34",
"@types/react-dom": "16.9.6",
"@uiw/react-github-corners": "1.1.3",
"compile-less-cli": "1.6.0",
"kkt": "6.2.1",
"react": "16.13.1",
"react-dom": "16.13.1",
"tsbb": "1.7.1"
"@kkt/less-modules": "6.11.0",
"@kkt/raw-modules": "6.11.0",
"@kkt/scope-plugin-options": "6.11.0",
"@types/react": "17.0.20",
"@types/react-dom": "17.0.9",
"@uiw/react-github-corners": "1.5.1",
"kkt": "6.11.0",
"react": "17.0.2",
"react-dom": "17.0.2",
"tsbb": "3.1.5"
},
"eslintConfig": {
"extends": [
31 changes: 7 additions & 24 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
}
}