start-from-github
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

start-from-github

Download, install dependences and start a nodeJS project from GitHub

How to use

Start with a URL

Start with a config json

Create a config json file

To create config json

npx start-from-github init filename
  • filename - (Optional) Config file name. Default value is repository.json

To start

npm start-from-github up filename
  • filename - (Optional) Config file name. Default value is repository.json

Config json file

{
  "name": "name",
  "url": "github_repository_url",
  "token": "token",
  "webhookPort": "port",
  "preCommands": [
    "npm run build"
  ],
  "startCommand": "npm run launch",
  "symlinks": [
    {
      "source": "destination"
    }
  ]
}
  • name - A name for the repository
  • url - The project URL
  • token - (Optional) It's required for private projects. Read more: ...
  • webhookPort - (Optional) Port to start a http server to webhook
  • preCommands - (Optional) Commands to run before to start the project
  • startCommand - (Optional) The command to start the project. Default value is npm start
  • symlinks - (Optional) Symblinks for files to share with the project

Obs: you can use webhook to download latest version of the repository and to restart it.

Webhook api: http://host:wehbookPort/update

Start with a URL

npx start-from-github github_repository_url

The command used to start the project is 'npm start'.

/start-from-github/

    Package Sidebar

    Install

    npm i start-from-github

    Weekly Downloads

    0

    Version

    0.1.2

    License

    ISC

    Unpacked Size

    99.3 kB

    Total Files

    158

    Last publish

    Collaborators

    • rootzul