Skip to content

Commit

Permalink
chore(deps): update dependency tsbb to v3.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 9, 2021
1 parent 25801da commit 3293bc2
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 100 deletions.
37 changes: 0 additions & 37 deletions .babelrc

This file was deleted.

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

- name: Setup Node
uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12

- name: Look Changelog
uses: jaywcjlove/[email protected]
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:lib
- run: npm run build
- run: npm run doc

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
github_token: ${{ secrets.GITHUB_TOKEN }}
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-codesandbox@${{ steps.create_tag.outputs.versionNumber }}/file/README.md)
```bash
npm i @uiw/react-codesandbox@${{ steps.create_tag.outputs.versionNumber }}
```
${{ steps.changelog.outputs.compareurl }}
${{ steps.changelog.outputs.changelog }}
draft: false
prerelease: false
23 changes: 6 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,15 @@
"name": "@uiw/react-codesandbox",
"version": "1.1.0",
"description": "A React component is provided that allows you to programmatically generate codesandbox projects from code samples on the fly.",
"main": "lib/cjs/index.js",
"module": "lib/esm/index.js",
"typings": "lib/esm/index.d.ts",
"main": "cjs/index.js",
"module": "esm/index.js",
"homepage": "https://uiwjs.github.io/react-codesandbox/",
"scripts": {
"prepare": "npm run build:lib",
"prepare": "npm run build",
"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"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -49,11 +39,10 @@
"@types/react-dom": "17.0.3",
"@uiw/react-github-corners": "1.2.0",
"@uiw/react-markdown-preview": "2.1.1",
"compile-less-cli": "1.7.0",
"react": "17.0.2",
"react-dom": "17.0.2",
"kkt": "6.8.2",
"tsbb": "2.1.2"
"tsbb": "3.1.5"
},
"eslintConfig": {
"extends": [
Expand Down
28 changes: 7 additions & 21 deletions src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,24 +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-jsx"
},
"include": ["../src"]
}
"outDir": "../cjs",
"emitDeclarationOnly": true,
"noEmit": false
}
}

0 comments on commit 3293bc2

Please sign in to comment.