dctc 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +18 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,4 +1,13 @@
1
- # dynamic-compile-tsx-commond(dctc)
1
+ <h1 align="center">
2
+ <br/>
3
+ <img src="https://emojis.slackmojis.com/emojis/images/1699040186/73833/yellow_bee.gif?1699040186" width="100"/>
4
+ <br/>
5
+ </h1>
6
+
7
+ [![npm version](https://img.shields.io/npm/v/dctc.svg?style=flat-square)](https://www.npmjs.com/package/dctc)
8
+ [![npm downloads](https://img.shields.io/npm/dt/dctc.svg?style=flat-square)](https://www.npmjs.com/package/dctc)
9
+ [![deps](https://img.shields.io/github/license/SteamedBread2333/dctc.svg)](https://www.npmjs.com/package/dctc)
10
+
2
11
  TypeScript Execute (tsx): Dynamically compile TSX/TS file and execute it.
3
12
 
4
13
  `dctc` may be similar tools in the fastest speed of execution!! <img src="https://emojis.slackmojis.com/emojis/images/1643514389/3643/cool-doge.gif?1643514389" width="30"/>
@@ -131,5 +140,13 @@ dctc generate-html.tsx
131
140
  Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
132
141
  Please make sure to update tests as appropriate.
133
142
 
143
+ ## Scene
144
+ Some scenarios where you need to compile and execute tsx.
145
+ - Developed using react, and needed to generate an html template for email.
146
+ - When you want to preview a react component, but there is no suitable playground.
147
+
148
+ ## Notice
149
+ If you need to load the style file, perform an additional loader and eventually insert the style into the html template in the product, but the email template does not support external style import.
150
+
134
151
  ## License
135
152
  MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dctc",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Dynamically compile TSX/TS files and execute them.",
5
5
  "main": "./lib/index.js",
6
6
  "bin": {