0.2.6 • Published 1 year ago

lc-static v0.2.6

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

lc-static

A tool to publish generated static site to Lyrid cloud platform.

Register a Lyrid Account to get started.

Check on our Documentation for more details.

Installation

With NPM

npm i -g lc-static or

npm i lc-static --save-dev

With YARN

yarn global add lc-static or

yarn add lc-static --dev

Usage

  1. Render / build the static site first eg: npm run build or ng build or vue-cli-service build or react-scripts build
  2. Note the output path, the index.html has to be within said directory.
  3. Set your environments: LYRID_API_KEY and LYRID_API_SECRET to authenticate with Lyrid API
  4. lc-static -n <app name> -p <output path>

you can also add a deploy script inside your package.json, here's an example we have for a docusaurus site:

{
  "scripts": {
    "docusaurus": "docusaurus",
    "start": "docusaurus start",
    "build": "docusaurus build",
    "swizzle": "docusaurus swizzle",
    "deploy": "docusaurus deploy",
    "serve": "docusaurus serve",
    "clear": "docusaurus clear",
    "build:deploy": "yarn build && lc-static -n docs -p ./build"
  }
}

and just call:

npm run build:deploy or

yarn build:deploy

0.2.1

1 year ago

0.2.0

1 year ago

0.2.6

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.5

1 year ago

0.2.4

1 year ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago