0.5.8 • Published 2 years ago

@fast-project/cli v0.5.8

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
2 years ago

@fast-project/cli

1. Installation

npm install -g @fast-project/cli

2. Available commands

fp init

This command will generate files based on the preset file. It useful when you want to start a new project.

fp init --preset example-preset.yml --output ./generated

How the example-preset.yml file looks like:

apps:
  - projectName: 'example-node-js'
    plugins:
      - git
      - name: node
        config:
          packageManger: yarn
      - typescript
      - docker
      - eslint
      - express

Preset properties:

  • apps: list of apps to generate.
  • projectName: name of the project, it will be used as a folder name.
  • plugins: list of plugins to apply for the project. A plugin can be a string or an object. If it's a string, it will be used as a plugin name. If it's an object, it will be used as a plugin config. The plugin config is different for each plugin. Please check the plugin docs to see how to config it.

To see all this command options, run fp init --help.

fp gen

This command will generate files based on the template file. It useful when you want to generate files for an existing project.

To generate using a template file:

fp gen --template example-template.hbs

To generate using a directory containing template files:

fp gen --template ./templates 

Supported template syntax:

To see all this command options, run fp gen --help.

fp integrate

This command will integrate a plugin into the project. It useful when you want to add a new plugin to an existing project.

fp integrate --plugin eslint

To see all this command options, run fp integrate --help.

0.5.8

2 years ago

0.5.7

2 years ago

0.5.6

2 years ago

0.5.5

2 years ago

0.5.4

2 years ago

0.5.3

2 years ago

0.5.2

2 years ago

0.5.0

2 years ago

0.4.4

2 years ago

0.4.3

2 years ago

0.4.2

2 years ago

0.4.1

2 years ago

0.3.8

2 years ago

0.3.7

2 years ago

0.3.6

2 years ago

0.3.5

2 years ago

0.3.4

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.7

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago