From eb501694cf4e1b10534d1e3d2369032e4b424fff Mon Sep 17 00:00:00 2001 From: Shyam-Chen Date: Wed, 6 Mar 2024 17:33:51 +0800 Subject: [PATCH 1/2] feat(processors): civet --- README.md | 4 +- docs/getting-started.md | 3 +- docs/preprocessing.md | 3 ++ package.json | 5 +++ pnpm-lock.yaml | 80 ++++++++++++++++++++++++++++++++++- src/index.ts | 1 + src/modules/language.ts | 4 ++ src/processors/civet.ts | 38 +++++++++++++++++ src/transformers/civet.ts | 27 ++++++++++++ src/types/options.ts | 8 ++++ test/fixtures/script.civet | 1 + test/processors/civet.test.ts | 47 ++++++++++++++++++++ 12 files changed, 217 insertions(+), 4 deletions(-) create mode 100644 src/processors/civet.ts create mode 100644 src/transformers/civet.ts create mode 100644 test/fixtures/script.civet create mode 100644 test/processors/civet.test.ts diff --git a/README.md b/README.md index a4ac2d6f..79da5240 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Svelte Preprocess -> A [Svelte](https://svelte.dev) preprocessor with sensible defaults and support for: PostCSS, SCSS, Less, Stylus, CoffeeScript, TypeScript, Pug and much more. +> A [Svelte](https://svelte.dev) preprocessor with sensible defaults and support for: PostCSS, SCSS, Less, Stylus, CoffeeScript, TypeScript, Civet, Pug and much more.

@@ -176,7 +176,7 @@ into ### Built-in support for commonly used languages -The current supported languages out-of-the-box are Sass, Stylus, Less, CoffeeScript, TypeScript, Pug, PostCSS, Babel. +The current supported languages out-of-the-box are Sass, Stylus, Less, CoffeeScript, TypeScript, Civet, Pug, PostCSS, Babel. ```html