@danielx/civet 0.6.25 → 0.6.27
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 +7 -0
- package/dist/babel-plugin.mjs +15 -0
- package/dist/browser.js +5834 -17282
- package/dist/bun-civet.mjs +2 -8
- package/dist/civet +143 -124
- package/dist/config.js +37 -31
- package/dist/esbuild-plugin.js +88 -105
- package/dist/esbuild.d.mts +7 -0
- package/dist/esbuild.d.ts +7 -0
- package/dist/esbuild.js +176 -0
- package/dist/esbuild.mjs +9 -0
- package/dist/esm.mjs +56 -103
- package/dist/main.js +5834 -17282
- package/dist/main.mjs +5834 -17282
- package/dist/rollup.d.mts +7 -0
- package/dist/rollup.d.ts +7 -0
- package/dist/rollup.js +176 -0
- package/dist/rollup.mjs +9 -0
- package/dist/unplugin-shared.mjs +141 -0
- package/dist/unplugin.d.mts +16 -0
- package/dist/unplugin.d.ts +16 -0
- package/dist/unplugin.js +171 -0
- package/dist/unplugin.mjs +6 -0
- package/dist/vite.d.mts +7 -0
- package/dist/vite.d.ts +7 -0
- package/dist/vite.js +176 -0
- package/dist/vite.mjs +9 -0
- package/dist/webpack.d.mts +6 -0
- package/dist/webpack.d.ts +6 -0
- package/dist/webpack.js +176 -0
- package/dist/webpack.mjs +9 -0
- package/package.json +37 -9
- package/dist/browser.js.gzip +0 -0
package/README.md
CHANGED
|
@@ -4,6 +4,7 @@ Civet
|
|
|
4
4
|
[](https://github.com/DanielXMoore/Civet/actions/workflows/build.yml)
|
|
5
5
|
[](https://www.npmjs.com/package/@danielx/civet)
|
|
6
6
|
[](https://www.npmjs.com/package/@danielx/civet)
|
|
7
|
+
[](https://coveralls.io/github/DanielXMoore/Civet?branch=main)
|
|
7
8
|
[](https://discord.com/invite/xkrW9GebBc)
|
|
8
9
|
[](https://opencollective.com/civet)
|
|
9
10
|
|
|
@@ -17,6 +18,7 @@ The modern way to write TypeScript.
|
|
|
17
18
|
- Plugins for
|
|
18
19
|
[esbuild](source/esbuild-plugin.civet),
|
|
19
20
|
[Vite](https://github.com/lorefnon/vite-plugin-civet),
|
|
21
|
+
[Babel](source/babel-plugin.mjs),
|
|
20
22
|
[Gulp](integrations/gulp),
|
|
21
23
|
[ESM module resolution](source/esm.civet),
|
|
22
24
|
[CJS](register.js),
|
|
@@ -372,6 +374,11 @@ esbuild.build({
|
|
|
372
374
|
|
|
373
375
|
It's super fast and works great!
|
|
374
376
|
|
|
377
|
+
Code Coverage
|
|
378
|
+
---
|
|
379
|
+
|
|
380
|
+
[](https://coveralls.io/github/DanielXMoore/Civet?branch=main)
|
|
381
|
+
|
|
375
382
|
Sponsorship
|
|
376
383
|
---
|
|
377
384
|
If you are so inclined, you can sponsor Civet on [Open Collective](https://opencollective.com/civet).
|
package/dist/babel-plugin.mjs
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
// Babel plugin for compiling .civet files
|
|
2
|
+
|
|
3
|
+
/* Example babel.config.json:
|
|
4
|
+
|
|
5
|
+
{
|
|
6
|
+
"plugins": [
|
|
7
|
+
[
|
|
8
|
+
"@danielx/civet/babel-plugin"
|
|
9
|
+
]
|
|
10
|
+
],
|
|
11
|
+
"sourceMaps": "inline"
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
*/
|
|
15
|
+
|
|
1
16
|
import { compile } from "./main.mjs"
|
|
2
17
|
|
|
3
18
|
export default function (api, civetOptions) {
|