Giter Site home page Giter Site logo

testbp's Introduction

Locomotive Boilerplate

Front-end boilerplate for projects by Locomotive.

Features

  • Uses a custom task runner for handling assets.
  • Uses BrowserSync for fast development and testing in browsers.
  • Uses Sass for a feature rich superset of CSS.
  • Uses ESBuild for extremely fast processing of JS/ES modules.
  • 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 a custom grid system for layout creation.

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 8.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

# Switch to recommended Node version from .nvmrc
nvm use

# Install dependencies from package.json
npm install

Development

# Start development server, watch for changes, and compile assets
npm start

# Compile and minify assets
npm run build

Learn more about development and building.

Documentation

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.