Socket
Socket
Sign inDemoInstall

@albertli90/al-cli

Package Overview
Dependencies
105
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @albertli90/al-cli

albert li personal cli to generate boilerplate codes


Version published
Weekly downloads
2
Maintainers
1
Install size
14.8 MB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 27 Dec 2019

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