@bitgenics/fab-upload-cli
CI tool for building and uploading a Frontend Application Bundle to Linc.
Last updated 4 days ago by plexey .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @bitgenics/fab-upload-cli 
SYNC missed versions from official npm registry.

fab-upload

Builds and uploads a FAB to Linc.

fab-upload let's you enjoy the benefits of Linc without having to give up your existing CI solution.

oclif  Version  License 

Prerequisites

  1. An existing Linc account.
  2. A frontend project configured to output a FAB.

Getting started

Install @bitgenics/fab-upload-cli as a development dependency in your frontend project:

yarn add --dev @bitgenics/fab-upload-cli
npm install --dev @bitgenics/fab-upload-cli

Then add the following script to your package.json:

  {
    "scripts": {
      "build": "react-scripts build",
      "build:fab": "npm run fab-static build",
+     "fab-upload": "fab-upload"
    }
  }

Usage

@bitgenics/fab-upload-cli takes the following options:

USAGE
  $ fab-upload [SITENAME]

OPTIONS
  -a, --apiKey=apiKey  Your Linc site API key
  -h, --help           show CLI help

EXAMPLES
  $ fab-upload my-site-name

When fab-upload is run, it attempts to generate a FAB by running the build:fab script defined in your package.json.

Running the build:fab script should compile a FAB by using a relevant FAB package.

If a FAB is successfully compiled, fab-upload will then upload the FAB to Linc along with a record of the build as well as some related git metadata.

In order for fab-upload to operate, you will need to supply it with the name of your Linc site and an API key for that Linc site.

You can supply these two values as environment variables:

Variable Type Value
LINC_API_KEY String Your Linc site API key
LINC_SITE_NAME String The name of your Linc site

Alternatively, you can pass these values to fab-upload via the [SITENAME] argument and --apiKey flag as follows:

fab-upload my-site-name --apiKey=abcd1234

Once fab-upload has successfully uploaded a FAB to Linc, it will return a list of preview URLs for the FAB, as well as a link to the build log in the Linc interface.

Obtaining an API key

An API key for fab-upload can be obtained in Linc. See the External CI Linc docs for more info.

Current Tags

  • 0.2.3                                ...           latest (4 days ago)

24 Versions

  • 0.2.3                                ...           4 days ago
  • 0.2.2                                ...           5 days ago
  • 0.2.1                                ...           2 months ago
  • 0.2.0                                ...           2 months ago
  • 0.1.9                                ...           2 months ago
  • 0.1.8                                ...           2 months ago
  • 0.1.7                                ...           3 months ago
  • 0.1.6                                ...           4 months ago
  • 0.1.5                                ...           4 months ago
  • 0.1.4                                ...           6 months ago
  • 0.1.3                                ...           6 months ago
  • 0.1.2                                ...           6 months ago
  • 0.1.1                                ...           6 months ago
  • 0.1.0                                ...           6 months ago
  • 0.0.9                                ...           6 months ago
  • 0.0.8                                ...           6 months ago
  • 0.0.7                                ...           6 months ago
  • 0.0.6                                ...           6 months ago
  • 0.0.5                                ...           6 months ago
  • 0.0.4                                ...           6 months ago
  • 0.0.3                                ...           6 months ago
  • 0.0.2                                ...           6 months ago
  • 0.0.1                                ...           6 months ago
  • 0.0.0                                ...           6 months ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 38
Last Month 60
Dependencies (8)
Dev Dependencies (12)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |