Commands
Skulljs comes with a CLI and commands for performing common tasks.
sk new
Create new project based on github repositories templates
Usage
sk new <project-name> [options]
sk n <project-name> [options]
Arguments
Argument | Description | Type | Required |
---|---|---|---|
<project-name> | name of the new project | string | true |
Options
Option | Description |
---|---|
--back -b | generate only the backend part |
--front -f | generate only the frontend part |
Example
sk new my-awesome-project
sk route:generate
Feature
Generate a new route for the backend repository and a new service for the frontend repository based on the user’s answers
Usage
sk route:generate <route-path> [options]
sk rg <route-path> [options]
Arguments
Argument | Description | Type | Required |
---|---|---|---|
<route-path> | path for the route to be created (ex : example/my-route). If not provided it will be asked to the user. | string | false |
Options
Option | Description |
---|---|
--no-service | skip the service generation |
Example
sk route:generate
sk doc
Feature
Generate the documentation for the skulljs project
Usage
sk doc
Example
sk doc
sk build
Feature
Build both frontend and backend projects into a dist folder ready to be used for PM2 or Docker.
See deployment guide for more informations.
Usage
sk build
Example
sk build