项目作者: fuse-fonts

项目描述 :
The Fuse Fonts website
高级语言: HTML
项目地址: git://github.com/fuse-fonts/website.git
创建时间: 2020-01-26T03:21:10Z
项目社区:https://github.com/fuse-fonts/website

开源协议:MIT License

下载


Fuse Fonts Website

This is the Fuse Fonts website built using Firebase, Sapper, and Svelte.

Status

CI/CD

Resources

Up and Running

  1. npm install

Development

Refer to sapper docs.

To perform local development:

  1. npm run dev

This site utilizes refererURLs, so Firebase Analytics scripts don’t load when performaing local dev. See [src/client/analytics.js](src/client/analytics.js) for details. Enable the debug flag to log to the events to the console.

Deployment

You’ll need firebase:

  1. npm i -g firebase-tools@latest

With firebase, you will need multiple hosting targets to map the deployment commands in package.json.

The three targets consist of: production, cdn, staging, and demo. The item needing most explaining is demo: it is a production hosting target which contains the fuse fonts demo.

Run this to add a hosting target—replacing [resource] with your firebase hosting resource name. Learn More

  1. firebase target:apply hosting production [resource]
  2. firebase target:apply hosting cdn [resource]
  3. firebase target:apply hosting staging [resource]
  4. firebase target:apply hosting demo [resource]

Deploying demo target

  1. If you want to deploy the fusefonts demo, you will need to clone the Fuse Fonts Plugin submodule first:

    1. git submodule init
    2. git submodule update

    Learn more about git submodules here.

  2. Install the Fuse Font plugin dependencies

    1. npm run init:demo
  3. Build and Deploy

    You can work within the plugin folder, if you so wish, and utilize those npm commands.
    But to perform a build from @fusefonts/website, run:

    1. npm run build:demo

    and when you’re ready to deploy:

    1. npm run deploy:demo