npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

starter-project

v2.2.13

Published

A set of gulp tasks that helps you develop high performant websites using latest best practices.

Downloads

74

Readme

Starter Project

Starter Project on NPM Starter 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-project/postinstall.js

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.

In case you want to update the project structure, you should update the SPRO config. Learn more about SPRO here.

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 primary Gulp tasks:

| Task | Description | | --------- | --------------------------------------------------------------------------------------------- | | default | the task for running all the tasks (useful for more thorough development process) | | build | the task for running all tasks with the exit process (useful for Netlify builds, for example) | | dev | the task for running only essential tasks (useful for basic development process) |

There are four other Gulp tasks:

| Task | Description | | ----------- | -------------------------------------------------------------- | | bumpPatch | the task for bumping patch versions of the package.json file | | bumpMinor | the task for bumping minor versions of the package.json file | | bumpMajor | the task for bumping major versions of the package.json file | | clean | the task for deleting compiled code. |

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

Configuration

Site configuration is stored in the data/site.json file. Make sure to update the configuration file per your needs. If you want to access the data from pug templates, make sure to update the src/layout/variables.pug file with the correct configuration.

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

.starter-project.json is the main Gulp 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
    |-- .editorconfig
    |-- .eslintignore
    |-- .eslintrc.json
    |-- .gitignore
    |-- .htmllintrc
    |-- .stylelintrc
    |-- data
    |   |-- site.json
    |-- gulpfile.js
    |   |-- .critical.json
    |   |-- .css.json
    |   |-- .favicon-data.json
    |   |-- .favicon.json
    |   |-- .gfx.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
    |   |-- 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
        |   |   |-- scripts.pug
        |   |-- _layout
        |   |   |-- layout.pug
        |   |-- _partials
        |   |   |-- banner.pug
        |   |   |-- footer.pug
        |   |   |-- head.pug
        |   |   |-- header.pug
        |   |   |-- sidebar.pug
        |   |-- structure
        |       |-- index.pug
        |-- js
        |   |-- homepage.md
        |   |-- index.js
        |-- scss
            |-- homepage.md
            |-- style.critical.scss
            |-- style.scss
            |-- components
                |-- _font-face.scss
                |-- _font-style.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 uses the following packages:

  • @babel/core,
  • @babel/preset-env,
  • browser-sync,
  • del,
  • eslint,
  • eslint-config-airbnb-base,
  • eslint-plugin-import,
  • eslint-plugin-node,
  • gulp,
  • gulp-autoprefixer,
  • gulp-babel,
  • gulp-bump,
  • gulp-clean-css,
  • gulp-cssimport,
  • gulp-eslint,
  • gulp-exit,
  • gulp-htmllint,
  • gulp-htmlmin,
  • gulp-if,
  • gulp-imagemin,
  • gulp-include,
  • gulp-inline-source,
  • gulp-penthouse,
  • gulp-pug,
  • gulp-real-favicon,
  • gulp-rename,
  • gulp-sass,
  • gulp-sourcemaps,
  • gulp-stylelint,
  • gulp-uglify,
  • gulp-wait,
  • imagemin-mozjpeg,
  • imagemin-pngquant,
  • kss,
  • path,
  • stylelint,
  • stylelint-config-sass-guidelines,
  • stylelint-order, and
  • stylelint-scss.

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.

Changelog

Changelog available in CHANGELOG.md file.