1.1.3 • Published 4 years ago

create-lx-cli v1.1.3

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

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 project

If 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 project

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:

# 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 # 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

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.3

4 years ago

0.1.0

4 years ago