@albertli90/al-cli

0.70.2 • Public • Published

al-cli - Albert's personal scaffolding client

version license

This project is reserved for personal usage and for the react-openfin-js scaffolding tool please refer openfin-js-cli instead. Currently, this client no longer support to generate openfin prototype projects

        _ _               _             _ _ 
   __ _| | |__   ___ _ __| |_       ___| (_)
  / _` | | '_ \ / _ \ '__| __|____ / __| | |
 | (_| | | |_) |  __/ |  | ||_____| (__| | |
  \__,_|_|_.__/ \___|_|   \__|     \___|_|_|
                                            
  v0.70.2

  albert li personal cli to generate boilerplate codes

  SYNOPSIS
      $ al-cli electron-ts <app name>
      $ al-cli react-ts <app name>
      $ al-cli comp <component name>
      $ al-cli view <view component name>
      $ al-cli lyt <layout component name>
      $ al-cli help
  DESCRIPTION
      --force -f          Create the target file by force, override if any already exist
      --directory -d      Override the default path where the file created
      --verbose -v        Include comments
      --skipInstall       Skip to install node_moduels

Installation

    npm install @albertli90/al-cli -g
    or 
    yarn global add @albertli90/al-cli

create electron react app in typescript

To generate a electron prototype project basing on create-react-app in typescript

    $ al-cli electron-ts sample-electron-app
  • -v or --verbose will log the files created
  • --skipInstall will skip the node_module processes

Once created, change into the working directory:

    # install dependencies if skipped before
    yarn install
    
    # clean building directory for the workspace
    yarn clean

    # start dev server
    yarn start
    
    # bundle and build the js codes for production
    yarn build
    
    # run all unit test cases
    yarn test
    
    # eject all scaffolding files
    yarn eject
    
    # conditionally run all end2end test cases; this task expects bundle files to be built in advance at directory build 
    yarn e2e

    # bundle and build the js codes and package into binaries for production
    yarn package

    # bundle and build the js codes and package into binaries with directories for production
    yarn package:dir
    
    # lint all source codes
    yarn lint
    
    # prettify all source codes 
    yarn prettify

create react app in typescript

To generate a front-end prototype project basing on create-react-app in typescript

    $ al-cli react-ts sample-react-ts-app -v --skipInstall    
  • -v or --verbose will log the files created
  • --skipInstall will skip the node_module processes

Once created, change into the working directory:

    # install dependencies if skipped before
    yarn install
    
    # start dev server
    yarn start
    
    # build the applicaton for production
    yarn build
    
    # run all unit test cases
    yarn test
    
    # eject all scaffolding files
    yarn eject
    
    # conditionally run all end2end test cases; this task expects active server running, like a dev server
    yarn e2e
    
    # lint all source codes
    yarn lint
    
    # prettify all source codes 
    yarn prettify

Package Sidebar

Install

npm i @albertli90/al-cli

Weekly Downloads

0

Version

0.70.2

License

MIT

Unpacked Size

471 kB

Total Files

133

Last publish

Collaborators

  • albertli90