Skip to content

A minimalistic Eleventy boilerplate setup with Spruce CSS to help you start with your next project.

License

Notifications You must be signed in to change notification settings

conedevelopment/sprucecss-eleventy-starter

Repository files navigation


Spruce CSS

The “Spruce CSS Eleventy Starter” repository contains a simple boilerplate for starting your next project with Eleventy x Spruce CSS.

Table of Contents

Get Up and Running

We use eleventy --serve and compile Sass with sass-cli with npm scripts.

  1. Clone the repository.

  2. Install the dependencies.

    In the package.json file, you will find all of the dependencies (and scripts) to install them using the following command:

    npm install
  3. Run the development mode

    To run the development mode, use the npm script. This script will also watch for changes.

    npm start
  4. Run the production mode

    Before you go live, you should use the production script to compress the Sass files.

    npm run prod

SCSS

The project compiles the SCSS files from the ./src/scss folder into the ./src/css folder. The project includes Spruce CSS, which gives the styling with some Spruce UI components.

Other Scripts

  • sass:lint/sass:lint:fix You can lint your SCSS files with Stylelint and stylelint-config-sass-guidelines preset with the npm run sass:lint command. Use the npm run sass:lint:fix command if you want automatic fixes.

  • js:lint/js:lint:fix You can also lint your JS like with Sass. For the rules, we use the Airbnb preset.

License

The code is licensed under the MIT.