-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[optimize] text2color() supports Exclude colors
[optimize] remove CSS imports in Bundle scripts [optimize] update Upstream packages
- Loading branch information
Showing
10 changed files
with
618 additions
and
476 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,19 +15,23 @@ A **[React][1] advanced components library** based on [TypeScript][2] & [Bootstr | |
```html | ||
<link | ||
rel="stylesheet" | ||
href="https://unpkg.com/[email protected]-beta1/dist/css/bootstrap.min.css" | ||
href="https://unpkg.com/[email protected]/dist/css/bootstrap.min.css" | ||
/> | ||
<link | ||
rel="stylesheet" | ||
href="https://unpkg.com/bootstrap-icons@1.8.3/font/bootstrap-icons.css" | ||
href="https://unpkg.com/bootstrap-icons@1.9.1/font/bootstrap-icons.css" | ||
/> | ||
<link | ||
rel="stylesheet" | ||
href="https://unpkg.com/[email protected]/animate.min.css" | ||
/> | ||
<link | ||
rel="stylesheet" | ||
href="https://unpkg.com/[email protected]/themes/prism.min.css" | ||
href="https://unpkg.com/[email protected]/themes/prism.min.css" | ||
/> | ||
<link | ||
rel="stylesheet" | ||
href="https://unpkg.com/[email protected]/dist/index.umd.css" | ||
/> | ||
``` | ||
|
||
|
@@ -79,7 +83,7 @@ A **[React][1] advanced components library** based on [TypeScript][2] & [Bootstr | |
2. add Git tag | ||
|
||
```shell | ||
git tag vx.xx.x # 0.23.0 | ||
git tag vx.xx.x # such as v0.23.0 | ||
``` | ||
|
||
3. review tag | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#! /usr/bin/env ts-node | ||
|
||
import { promises } from 'fs'; | ||
|
||
const list = [ | ||
{ file: 'dist/index.js', pattern: 'import "./index.css";' }, | ||
{ file: 'dist/index.umd.js', pattern: 'require("./index.umd.css");' } | ||
]; | ||
|
||
(async () => { | ||
console.log(); | ||
console.time('Bundle fix'); | ||
|
||
for (const { file, pattern } of list) { | ||
const code = await promises.readFile(file, { encoding: 'utf-8' }); | ||
|
||
await promises.writeFile(file, code.replace(pattern, '').trim()); | ||
|
||
console.log(`[fixed] ${file}`); | ||
} | ||
console.timeEnd('Bundle fix'); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "idea-react", | ||
"version": "0.26.5", | ||
"version": "0.26.8", | ||
"license": "LGPL-3.0", | ||
"author": "[email protected]", | ||
"description": "A React advanced components library based on TypeScript & Bootstrap, built by idea2app remote developers team.", | ||
|
@@ -25,33 +25,35 @@ | |
"dependencies": { | ||
"@editorjs/editorjs": "^2.25.0", | ||
"@editorjs/paragraph": "^2.8.0", | ||
"@swc/helpers": "^0.4.3", | ||
"@swc/helpers": "^0.4.11", | ||
"classnames": "^2.3.1", | ||
"editorjs-html": "^3.4.2", | ||
"lodash": "^4.17.21", | ||
"prismjs": "^1.28.0", | ||
"prismjs": "^1.29.0", | ||
"react": "^17.0.2", | ||
"react-bootstrap": "^2.4.0", | ||
"react-bootstrap": "^2.5.0", | ||
"react-dom": "^17.0.2", | ||
"react-editor-js": "^2.1.0", | ||
"react-element-to-jsx-string": "^15.0.0", | ||
"web-utility": "^3.7.6" | ||
"web-utility": "^3.9.2" | ||
}, | ||
"devDependencies": { | ||
"@parcel/packager-ts": "^2.6.2", | ||
"@parcel/transformer-less": "^2.6.2", | ||
"@parcel/transformer-typescript-types": "^2.6.2", | ||
"@types/lodash": "^4.14.182", | ||
"@parcel/packager-ts": "~2.7.0", | ||
"@parcel/transformer-less": "~2.7.0", | ||
"@parcel/transformer-typescript-types": "~2.7.0", | ||
"@types/lodash": "^4.14.184", | ||
"@types/node": "^14.18.27", | ||
"@types/prismjs": "^1.26.0", | ||
"@types/react": "^17.0.47", | ||
"@types/react": "^17.0.49", | ||
"@types/react-dom": "^17.0.17", | ||
"husky": "^8.0.1", | ||
"less": "^4.1.3", | ||
"lint-staged": "^13.0.3", | ||
"open-cli": "^7.0.1", | ||
"parcel": "^2.6.2", | ||
"parcel": "~2.7.0", | ||
"prettier": "^2.7.1", | ||
"typedoc": "^0.23.7", | ||
"ts-node": "^10.9.1", | ||
"typedoc": "^0.23.14", | ||
"typedoc-plugin-mdn-links": "^2.0.0", | ||
"typescript": "~4.7.4" | ||
}, | ||
|
@@ -73,7 +75,7 @@ | |
"scripts": { | ||
"prepare": "husky install", | ||
"test": "lint-staged", | ||
"make": "parcel build", | ||
"make": "parcel build --no-source-maps && ts-node bundle-fix", | ||
"build": "rm -rf dist/ docs/ && typedoc source/ && npm run make", | ||
"start": "typedoc source/ && open-cli docs/index.html", | ||
"prepublishOnly": "npm test && npm run build", | ||
|
Oops, something went wrong.
c864750
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for idea-react ready!
✅ Preview
https://idea-react-haopekvt4-stevending1st.vercel.app
Built with commit c864750.
This pull request is being automatically deployed with vercel-action