Deven Caron 97d9f1ec00 Merge pull request #107 from locomotivemtl/feature/documentation
Rewrite README and add documentation
2022-03-24 10:03:58 -04:00
2022-03-24 09:58:40 -04:00
2022-03-21 17:24:10 -04:00
2019-06-05 14:28:56 -04:00
2021-03-05 09:23:11 -05:00
2022-03-23 14:06:11 -04:00
2021-09-14 18:20:45 -04:00
2016-09-07 18:30:36 -04:00
2022-03-21 17:24:10 -04:00
2022-03-21 17:24:10 -04:00
2022-03-24 09:58:40 -04:00

Locomotive Boilerplate

Front-end boilerplate for projects by Locomotive.

Features

  • Uses a custom, easily configured, wrapper asset handler.
  • Uses Sass for a feature rich extension of CSS.
  • Uses ESBuild for extremely fast processing of JS/ES6.
  • Uses SVG Mixer for processing SVG files and generating spritesheets.
  • Uses ITCSS for a sane and scalable CSS architecture.
  • Uses Locomotive Scroll for smooth scrolling with parallax effects.
  • Uses BrowserSync for fast development and testing in browsers.

Learn more about languages and technologies.

Getting started

Make sure you have the following installed:

  • Node — at least 14.17, the latest LTS is recommended.
  • NPM — at least 6.0, the latest LTS is recommended.

💡 You can use NVM to install and use different versions of Node via the command-line.

# Clone the repository.
git clone https://github.com/locomotivemtl/locomotive-boilerplate.git my-new-project

# Enter the newly-cloned directory.
cd my-new-project

Then replace the original remote repository with your project's repository.

Then update the following files to suit your project:

  • README.md: The file you are currently reading.
  • package.json:
    • Package name: @locomotivemtl/boilerplate
    • Package title: Locomotive Boilerplate
  • package-lock.json:
    • Package name: @locomotivemtl/boilerplate
  • loconfig.json:
    • BrowserSync proxy URL: locomotive-boilerplate.test Remove paths.url to use BrowserSync's built-in server which uses paths.dest.
    • View path: ./views/boilerplate/template
  • environment.js:
    • Application name: Boilerplate
  • site.webmanifest:
    • Manifest name: Locomotive Boilerplate
    • Manifest short name: Boilerplate
  • HTML files:
    • Page title: Locomotive Boilerplate

Installation

# Install dependencies from package.json
npm install

Development

# Watch for file changes and compile assets
npm start

# Compile and minify assets
npm run build

Learn more about development and building.

Documentation

Description
九州官网
Readme 2.2 MiB
Languages
JavaScript 64.5%
SCSS 22.1%
HTML 7%
CSS 6.4%