Front-end boilerplate for projects by Locomotive.
Learn more about languages and technologies.
Make sure you have the following installed:
💡 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
:
@locomotivemtl/boilerplate
Locomotive Boilerplate
package-lock.json
:
@locomotivemtl/boilerplate
loconfig.json
:
locomotive-boilerplate.test
Remove paths.url
to use BrowserSync's built-in server which uses paths.dest
../views/boilerplate/template
environment.js
:
Boilerplate
site.webmanifest
:
Locomotive Boilerplate
Boilerplate
Locomotive Boilerplate
# Switch to recommended Node version from .nvmrc
nvm use
# Install dependencies from package.json
npm install
# Start development server, watch for changes, and compile assets
npm start
# Compile and minify assets
npm run build
Learn more about development and building.