Starter Project Logo - Folder with start button

Starter Project

The easiest way to implement the latest best practices in your project.

Starter Project

Starter Project on NPMStarter Project CLI on NPM

Starter Package is the best starting point for your new project — achieve the maximum score on page speed testing tools.

Starter Project Logo - Folder with start button

Starter Package is a package with the latest best practices for your HTML (pug), CSS (Sass), JavaScript (es6), graphic, font, and favicon files.

Version 2

Version 2 is a major update! This version uses the Starter Project CLI for creating a perfect Gulp development environment within a few minutes.

You could use node_modules/.bin/spro start command, if you want to reinitialize Starter Project CLI. See more at Starter Project CLI docs.

Version 2 is not backward compatible with version 1.

Installation

The package is available on npm. To install Starter Package, create a new directory, enter it and run the following command to install the latest version:

npm install starter-project --save

After the installation, run the following command to set up the project:

node node_modules/starter-package/postinstall.js
npm i -S fontfaceobserver

Starter Project should have installed source files, Gulp files, and configuration files.

If you want to learn more about the project structure, jump to the Structure section. If you want to learn more about npm packages, jump to the Packages section.

Gulp tasks

You should be able to run Gulp tasks now. In the gulpfile.js folder you could find all Gulp task files and configuration files.

There are three available major Gulp tasks:

TaskDescription
defaultthe task for running and watching all the tasks (useful for more thorough development process)
buildthe task for running all tasks with the exit process (useful for Netlify builds)
devthe task for running and watching only essential tasks (useful for primary development process)

There are four other Gulp tasks:

TaskDescription
bumpPatchthe task for bumping patch versions of the package.json file
bumpMinorthe task for bumping minor versions of the package.json file
bumpMajorthe task for bumping major versions of the package.json file
cleanthe task for deleting compiled code.

Run gulp --tasks to see all available Gulp tasks.

Configuration

If you want more control over your Gulp tasks, you could find the configuration files for every single Gulp task in the gulpfile.js folder.

.starter-project.json is the main configuration file in which you could find all global settings for Gulp tasks. Avoid editing this file manually. See Starter Project CLI docs for more details.

Structure

|-- Workspace
    |-- .browserslistrc
    |-- .editorconfig
    |-- .eslintignore
    |-- .eslintrc.json
    |-- .gitignore
    |-- .htmllintrc
    |-- .stylelintrc
    |-- gulpfile.js
    |   |-- .critical.json
    |   |-- .css.json
    |   |-- .favicon-data.json
    |   |-- .favicon.json
    |   |-- .gfx.json
    |   |-- .gzip.json
    |   |-- .helpers.json
    |   |-- .html.json
    |   |-- .js.json
    |   |-- .jsdoc.json
    |   |-- .kss.json
    |   |-- .sassdoc.json
    |   |-- .starter-project.json
    |   |-- .sync.json
    |   |-- .watch.json
    |   |-- bump.js
    |   |-- clean.js
    |   |-- critical.js
    |   |-- css.js
    |   |-- favicon.js
    |   |-- fonts.js
    |   |-- gfx.js
    |   |-- gzip.js
    |   |-- helpers.js
    |   |-- html.js
    |   |-- index.js
    |   |-- js.js
    |   |-- jsdoc.js
    |   |-- kss.js
    |   |-- sassdoc.js
    |   |-- sync.js
    |-- src
        |-- favicons
        |   |-- README.md
        |   |-- android-chrome-192x192.png
        |   |-- android-chrome-512x512.png
        |   |-- apple-touch-icon.png
        |   |-- browserconfig.xml
        |   |-- favicon-16x16.png
        |   |-- favicon-32x32.png
        |   |-- favicon.ico
        |   |-- html_code.html
        |   |-- mstile-144x144.png
        |   |-- mstile-150x150.png
        |   |-- mstile-310x150.png
        |   |-- mstile-310x310.png
        |   |-- mstile-70x70.png
        |   |-- safari-pinned-tab.svg
        |   |-- site.webmanifest
        |-- fonts
        |   |-- lato
        |       |-- Lato-Regular.woff
        |       |-- Lato-Regular.woff2
        |-- gfx
        |   |-- jpg
        |   |   |-- starter-project-md.jpg
        |   |   |-- starter-project.jpg
        |   |-- png
        |   |   |-- starter-project-md.png
        |   |   |-- starter-project.png
        |   |-- svg
        |       |-- starter-project-md.svg
        |       |-- starter-project.svg
        |-- html
        |   |-- 404.pug
        |   |-- index.pug
        |   |-- _assets
        |   |   |-- critical-css.pug
        |   |   |-- deferred-styles.pug
        |   |   |-- favicon.pug
        |   |   |-- foft-font-loading.pug
        |   |   |-- scripts.pug
        |   |-- _layout
        |   |   |-- layout.pug
        |   |-- _partials
        |   |   |-- banner.pug
        |   |   |-- footer.pug
        |   |   |-- head.pug
        |   |   |-- header.pug
        |   |   |-- sidebar.pug
        |   |-- structure
        |       |-- index.pug
        |-- js
        |   |-- deferredStyles.js
        |   |-- foftFontLoading.js
        |   |-- homepage.md
        |   |-- index.js
        |-- scss
            |-- foft.scss
            |-- homepage.md
            |-- style.critical.scss
            |-- style.scss
            |-- components
                |-- _font-face.scss
                |-- _fonts.scss
                |-- _helpers.scss
                |-- _locks.scss
                |-- _theme.scss
                |-- _typography.scss
                |-- _variables.scss
                |-- elements
                    |-- _banner.scss
                    |-- _content.scss
                    |-- _header.scss
                    |-- _sidebar.scss
                    |-- _sig.scss

Packages

Starter Package CLI uses the following packages:

Support

Show your support by starring the project on Github, or by sharing on Twitter, please. 🙏

Contribute: create a new issue or create a pull request.

Powered by Starter Project.