1.1.3 • Published 5 years ago
create-lx-cli v1.1.3
create-lx-cli
Create a project in seconds!
# command help
$ npx create-lx-cli -h# project-name: target directory
# Options: template options
# --force: even if the target directory is not empty, it is mandatory to create a template.
$ npm init lx-cli <project-name> <-t|--template> [Options] [--force]
$ cd <project-name>
# if the project has a package.json
$ npm install # install dependencies
$ npm run dev # run projectIf using yarn:
$ yarn create lx-cli <project-name> <-t|--template> [Options] [--force]
$ cd <project-name>
# if the project has a package.json
$ yarn # install dependencies
$ yarn dev # run projectIf 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: Baseddenoandvscode user snippets, displaying all"@cmd: "commands in the project.snippetsmust 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 cachecmd.output$ deno run --allow-read --allow-write cmd.ts --update- updatecmd.outputfile$ deno run --allow-read --allow-write cmd.ts --update=tree- tree structure
To scaffold with specific template:
# default template: `npm init lx-cli my-react-project`
$ npm init lx-cli my-react-project --template react-dva-ts
$ npm init lx-cli . --template deno-vscode-cmd --force # forceRelated 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