1.14.2 • Published 2 years ago

spa-cli v1.14.2

Weekly downloads
1
License
MIT
Repository
-
Last release
2 years ago

Command Line Interface (CLI) to support Single Page Application(js) framework.

INSTALL

npm install -g spa-cli


#USAGE:

Create a new app

spa-cli appName

OR use --new option to download and use the latest boilerplate bundle from SPA.js repository.

spa-cli appName --new


Create a new component

NOTE: Use . instead of 'appName' if 'appName' directory is current working directory.

spa-cli appName componentName

OR

spa-cli appName/componentName

OR use --new option to download and use the latest boilerplate bundle from SPA.js repository.

spa-cli appName/componentName --new

spa-cli appName componentName --new

Create multiple components

NOTE: Use . instead of 'appName' if 'appName' directory is current working directory.

spa-cli appName componentX,componentY

OR

spa-cli appName/componentX,componentY

OR use --new option to download and use the latest boilerplate bundle from SPA.js repository.

spa-cli appName componentX,componentY --new

spa-cli appName/componentX,componentY --new


To use your own boilerplate bundle for new app and components.

spa-cli your-custom-app-bundle.zip --app

spa-cli your-custom-component-bundle.zip --component

your-custom-component-bundle.zip must contain the following files with custom content:

  • componentX.js
  • componentX.html
  • componentX.css (optional)

NOTE: The string 'componentX' will be replaced with actual componentName, including the file name and the content inside the files during a new component creation.

To create boilerplate bundle from a folder

spa-cli your-custom-boilerplate-folder --bundle

This will create your-custom-boilerplate-folder.zip file. Use this zip file to update the default boilerplate for new --app or --component creation.

Reset to default bundle

Reset bundles with the latest boilerplate bundle(s) from SPA.js repository.

spa-cli --reset

spa-cli --reset --app

spa-cli --reset --component


Backup app

spa-cli appName --zip


Update SPA JS Bundle with the latest version

spa-cli appName --update


LiveServer Options

###Requires live-server (run install command as root/Administrator)

npm install -g live-server

To start LiveServer for an app, use --start option at the end of spa-cli command.

Example:

spa-cli appName --start

Along with --start option, use --ch OR --chrome OR --ff OR --firefox OR --ie OR --iexplore to open respective browser.

Example:

spa-cli appName --start --ch

spa-cli appName --start --chrome

spa-cli appName --start --ff

spa-cli appName --start --firefox

spa-cli appName --start --ie

spa-cli appName --start --iexplore


LINKS

SPA JS (Web) | SPA JS (GitHub)

1.14.1

2 years ago

1.14.0

2 years ago

1.14.2

2 years ago

1.13.0

4 years ago

1.12.3

4 years ago

1.12.2

4 years ago

1.12.1

4 years ago

1.12.0

4 years ago

1.11.2

4 years ago

1.11.1

4 years ago

1.11.0

4 years ago

1.10.1

4 years ago

1.10.0

4 years ago

1.9.3

4 years ago

1.9.2

4 years ago

1.9.1

4 years ago

1.9.0

4 years ago

1.8.8

4 years ago

1.8.7

4 years ago

1.8.6

4 years ago

1.8.5

4 years ago

1.8.4

4 years ago

1.8.3

4 years ago

1.8.2

4 years ago

1.8.1

4 years ago

1.8.0

5 years ago

1.7.6

5 years ago

1.7.5

5 years ago

1.7.4

5 years ago

1.7.3

5 years ago

1.7.2

5 years ago

1.7.1

5 years ago

1.7.0

5 years ago

1.6.0

5 years ago

1.5.2

5 years ago

1.5.1

6 years ago

1.5.0

6 years ago

1.4.6

6 years ago

1.4.5

6 years ago

1.4.4

6 years ago

1.4.3

6 years ago

1.4.2

6 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago