Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lencx/create-xc-app
⚡️ Create a project in seconds!
https://github.com/lencx/create-xc-app
cli create-xc-app deno react template vite wasm
Last synced: 3 months ago
JSON representation
⚡️ Create a project in seconds!
- Host: GitHub
- URL: https://github.com/lencx/create-xc-app
- Owner: lencx
- License: mit
- Created: 2020-07-02T08:40:04.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-22T02:22:49.000Z (over 3 years ago)
- Last Synced: 2024-05-23T06:03:34.593Z (7 months ago)
- Topics: cli, create-xc-app, deno, react, template, vite, wasm
- Language: TypeScript
- Homepage:
- Size: 127 KB
- Stars: 19
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# create-xc-app
Create a project in seconds!
> **Compatibility Note:**
> Vite requires [Node.js](https://nodejs.org/en/) version >=12.0.0.With NPM:
```bash
npm init xc-app
```With Yarn:
```bash
yarn create xc-app
```Then follow the prompts!
You can also directly specify the project name and the template you want to use via additional command line options. For example, to scaffold a Vite + WebAssembly + React project, run:
```bash
# npm 6.x
npm init xc-app my-wasm-app --template wasm-react# npm 7+, extra double-dash is needed:
npm init xc-app my-wasm-app -- --template wasm-react
```Currently supported template presets include:
* `react-dva-ts`
* `wasm-react`
* `wasm-vue`
* `deno-oak`
* `deno-vscode-cmd`: Based `deno` and `vscode user snippets`, displaying all `"@cmd: "` commands in the project.
* `snippets` must contain `"@cmd: "` string
* the string must be in the first 10 lines of the file will be matched
* `$ deno run --allow-read --allow-write cmd.ts` - use cache `cmd.output`
* `$ deno run --allow-read --allow-write cmd.ts --update` - update `cmd.output` file
* `$ deno run --allow-read --allow-write cmd.ts --update=tree` - tree structure## Related List
* [vite-plugin-rsw](https://github.com/lencx/vite-plugin-rsw): wasm-pack plugin for vite@v2.
* [WebAssembly入门](https://lencx.github.io/book/wasm/rust_wasm_frontend.html)
* [WebAssembly Series](https://github.com/lencx/z/discussions/22)
* [🦕 Deno](https://deno.land): A secure runtime for JavaScript and TypeScript.
* [🦕 Oak](https://github.com/oakserver/oak): A middleware framework for Deno's net server.
* [🦕 deno-getfiles](https://github.com/lencx/deno-getfiles): Recursively get all files in a directory
* [Dvajs](https://github.com/dvajs/dva): React and redux based, lightweight and elm-style framework.
* [Vite](https://github.com/vitejs/vite): Native-ESM powered web dev build tool. It's fast.
* [VS Code User Snippets](https://code.visualstudio.com/docs/editor/userdefinedsnippets): Code snippets are templates that make it easier to enter repeating code patterns, such as loops or conditional-statements.## License
MIT License © 2020 [lencx](https://github.com/lencx)