项目作者: teear

项目描述 :
Foxtrot Lima Activations
高级语言: SCSS
项目地址: git://github.com/teear/activations.fldx.org.git
创建时间: 2019-09-05T16:48:43Z
项目社区:https://github.com/teear/activations.fldx.org

开源协议:

下载


activations.fldx.org

Foxtrot Lima Activations. Served up at https://activations.fldx.org and hosted on Netlify

Overview

This site is comprised of static files generated by Eleventy for simplified deployment and hosting.

Local development

To build the site you need:

  • Node - to run the build
  • npm - to install and manage dependencies

Getting started

  1. # clone this repository
  2. git clone https://github.com/teear/activations.fldx.org.git
  3. # go to the working directory
  4. cd activations.fldx.org
  5. # install dependencies
  6. npm install
  7. # start a local build server with hot reloading
  8. npm start

Commands

Run a development server

  1. npm start or npm run dev

Run a development server with production settings

  1. npm run prod

Build the site

  1. npm run build

Delete the dist directory

  1. npm run clean

Note that images are not copied automatically to dist from src by
Eleventy, npm run build:images handles image compression (reads from
src and outputs to dist).

Deployment

Netlify Status

The build command npm run build will generate a set of static assets in a dist folder which can be deployed to any web hosting service.

My preferred method is to host on Netlify which can run this build process in a CI environment and then deploy the build automatically to a global CDN. Such deployments are triggered automatically by every git push to the master branch of the origin repository.