dctc 1.0.2 → 1.0.4
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.
- package/README.md +18 -1
- package/lib/complie_es.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
|
|
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
|
+
[](https://www.npmjs.com/package/dctc)
|
|
8
|
+
[](https://www.npmjs.com/package/dctc)
|
|
9
|
+
[](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/lib/complie_es.js
CHANGED