0.2.6 • Published 1 year ago
lc-static v0.2.6
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
- Render / build the static site first eg:
npm run build
orng build
orvue-cli-service build
orreact-scripts build
- Note the output path, the
index.html
has to be within said directory. - Set your environments: LYRID_API_KEY and LYRID_API_SECRET to authenticate with Lyrid API
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