7.0.4 • Published 4 years ago

brickyard-cli v7.0.4

Weekly downloads
65
License
ISC
Repository
github
Last release
4 years ago

CLI for Brickyard Build Status

Command Line Interface for Brickyard.

Install

npm i -g brickyard-cli

Usage

<cmd> [args]

Commands:
  ls [plan..]                        Get the plan list of brickyard_modules
  build <plan..>                     Build one or more plans
  run [dir]                          Run a brickyard app
  test <plan..>                      Test modules of plans
  create-module <type> <dir> [name]  Create a brickyard module with name to the
                                     dir
  build-docker <plan...>             Create a dockerfile for the plan and build
                                     with docker

Options:
  --version            Show version number                             [boolean]
  --help               Show help                                       [boolean]
  --verbose, -v        Log level. 0: INFO, 1: DEBUG, 2: TRACE
                                                            [count] [default: 0]
  --brickyard_modules  Path of brickyard_modules folder
                                                [default: "./brickyard_modules"]

brickyard --version

Show the version of current brickyard-cli.

brickyard ls

Display a list of modules for the brickyard_modules directory.

You will get a plan list which is available to build.

brickyard ls plan

Display a list of modules for the specified plan.

brickyard build plan

Build a plan.

options

  • --run: Run the program after build.
  • --watch: Rebuild when files change.
  • --debug: Use debug mode to build a plan.
  • --output, -o: Path of build dir. default: "./output"

brickyard run dir

Run a built brickyard program.

options

brickyard create-module type dir name.

Create a brickyard module in the specified dir with a specified name and type. After call, a directories path will be created. And the package.json and index.js will be set for you.

options

  • --type: Must be "frontend", "backend", "plan" or "buildtask".
  • --dir: Path of the module directory.
  • --name: Package name of the module. default: basename(dir)

brickyard test plan

Run unit test for a plan. You can specify multi plans to run the unit tests. Example

mocha test mocha common-service-push

options

brickyard build-docker plan

Create a dockerfile and then run docker build. Your brickyard app will build in two docker containers. One for building, another for deploying or running.

options

  • --expose: Expose port for dockerfile
  • --tag: Name the docker image
  • --only-dockerfile: Just write a dockerfile to output

other options

7.0.4

4 years ago

7.0.3

4 years ago

7.0.2

5 years ago

7.0.1

5 years ago

7.0.0

5 years ago

6.4.6

5 years ago

6.4.5

5 years ago

6.4.2

6 years ago

6.4.1

7 years ago

6.4.0

7 years ago

6.3.1

7 years ago

6.3.0

7 years ago

6.2.4

7 years ago

6.2.1

7 years ago

6.2.0

7 years ago

6.1.1

7 years ago

6.1.0

7 years ago

6.0.3

7 years ago

6.0.0

7 years ago

5.1.4

7 years ago

5.1.3

8 years ago

5.1.2

8 years ago

5.1.0

8 years ago

5.0.1

8 years ago

5.0.0

8 years ago

4.7.0

8 years ago

4.6.2

8 years ago

4.6.1

8 years ago

4.6.0

8 years ago

4.5.3

8 years ago

4.5.2

8 years ago

4.5.1

8 years ago

4.5.0

8 years ago

4.4.0

8 years ago

4.2.3

9 years ago

4.2.2

9 years ago

4.2.1

9 years ago

4.2.0

9 years ago

4.1.0

9 years ago

4.0.2

9 years ago

4.0.1

9 years ago

3.4.1

9 years ago

3.4.0

9 years ago

3.3.1

10 years ago

3.3.0

10 years ago

3.2.3

10 years ago

3.2.2

10 years ago

3.2.1

10 years ago

3.2.0

10 years ago

3.1.4

10 years ago

3.1.3

10 years ago

3.1.2

10 years ago

3.1.1

10 years ago

3.1.0

10 years ago