0.70.2 • Published 4 years ago

@albertli90/al-cli v0.70.2

Weekly downloads
22
License
MIT
Repository
-
Last release
4 years ago

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
0.70.2

4 years ago

0.60.20

5 years ago

0.50.50

5 years ago

0.50.40

5 years ago

0.50.20

5 years ago

0.40.10

5 years ago

0.35.44

5 years ago

0.35.40

5 years ago

0.35.32-beta

5 years ago

0.35.21

5 years ago

0.35.20

5 years ago

0.35.3-beta

5 years ago

0.30.3-beta

5 years ago

0.30.2-beta

5 years ago

0.25.15

5 years ago

0.25.10

5 years ago

0.20.17

6 years ago

0.20.16

6 years ago

0.20.15

6 years ago

0.20.10

6 years ago