From 4b5ad06968f91f7b71713c2cac45b8ec7dfd4f2d Mon Sep 17 00:00:00 2001 From: vitonsky <86191922+vitonsky@users.noreply.github.com> Date: Mon, 15 Aug 2022 19:40:55 +0300 Subject: [PATCH 1/2] chore( #19): add archetype manifest for charmix --- archetype.json | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 archetype.json diff --git a/archetype.json b/archetype.json new file mode 100644 index 0000000..b9c4dc7 --- /dev/null +++ b/archetype.json @@ -0,0 +1,8 @@ +{ + "name": "typescript-boilerplate", + "type": "staticTemplate", + "files": { + "include": "./*", + "exclude": ["./archetype.json"] + } +} From a90d27d5152631a8a047f4980853ce47e7f8a33e Mon Sep 17 00:00:00 2001 From: vitonsky <86191922+vitonsky@users.noreply.github.com> Date: Mon, 15 Aug 2022 19:49:27 +0300 Subject: [PATCH 2/2] docs( #19): add section about use with charmix --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 656d7d0..e03eeff 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,16 @@ yarn esbuild-browser * Take a look at all the scripts in [`package.json`](https://github.com/metachris/typescript-boilerplate/blob/master/package.json) * For publishing to npm, use `yarn publish` (or `npm publish`) +You may use this boilerplate as static [charmix archetype](https://github.com/vitonsky/charmix) + +```bash +# Install archetype +charmix add -t git https://github.com/metachris/typescript-boilerplate.git + +# Generate project +charmix use -d ./projectDirectory typescript-boilerplate +``` + ## esbuild [esbuild](https://esbuild.github.io/) is an extremely fast bundler that supports a [large part of the TypeScript syntax](https://esbuild.github.io/content-types/#typescript). This project uses it to bundle for browsers (and Node.js if you want).