create-lx-cli
Create a project in seconds!
$ npx create-lx-cli -h
$ npm init lx-cli <project-name> <-t|--template> [Options] [--force]
$ cd <project-name>
$ npm install
$ npm run dev
If using yarn
:
$ yarn create lx-cli <project-name> <-t|--template> [Options] [--force]
$ cd <project-name>
$ yarn
$ yarn dev
If using npx
:
$ npx create-lx-cli <project-name> <-t|--template> [Options] [--force]
Templates
Available templates: default is react-dva-ts
Vite
react-dva-ts
: Build apps based on React, Dvajs and TypeScript.
Deno
deno-oak
: Creating a basic web server in Deno using 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
To scaffold with specific template:
$ npm init lx-cli my-react-project --template react-dva-ts
$ npm init lx-cli . --template deno-vscode-cmd --force
Related List
- 🦕 Deno: A secure runtime for JavaScript and TypeScript.
- 🦕 Oak: A middleware framework for Deno's net server.
- 🦕 deno-getfiles: Recursively get all files in a directory
- Dvajs: React and redux based, lightweight and elm-style framework.
- Vite: Native-ESM powered web dev build tool. It's fast.
- VS Code User Snippets: Code snippets are templates that make it easier to enter repeating code patterns, such as loops or conditional-statements.
License
MIT