Skip to content
This repository has been archived by the owner on May 21, 2023. It is now read-only.

isaacrankin/launch

Repository files navigation

Launch

Launch is a basic front-end boilerplate that is designed for creating static websites, or for easy integration with a CMS website.

Requirements

Setup

  1. npm install
  2. gulp
  3. gulp serve

If you don't want to use Browsersync just run gulp then gulp watch and use your own server.

Customisation

Replace the Launch example meta-data with your own:

  • Update the example ./src/manifest.json file with your application details, read about it here.

  • Update the ./package.json file with your application details, learn about it here

Tests

npm test to run the tests.

A useful way to automatically run the tests is with a pre-commit hook. Just copy pre-commit to .git/hooks/ and apply the correct permissions with chmod +x .git/hooks/post-commit

Mocha is used for unit testing. Because we are working with ES2015 modules, we transpile to CommonJS modules first, using Babel.

Build Tasks

  • gulp builds the project to the dist directory.
  • gulp watch listens for file changes and re-builds the project.
  • gulp serve builds the project, starts a Browsersync server and watches for file changes (hot reloading included).
  • gulp compress-images image compression.
  • gulp test runs the unit tests.

What's in the box