Socket
Socket
Sign inDemoInstall

create-lx-cli

Package Overview
Dependencies
68
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    create-lx-cli

Create a project in seconds!


Version published
Weekly downloads
9
decreased by-43.75%
Maintainers
1
Install size
362 kB
Created
Weekly downloads
 

Readme

Source

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
  • 🦕 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

FAQs

Last updated on 12 Jul 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc