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

brei-project-scaffold

v1.2.1

Published

Modern client project by BarkleyREI

Downloads

6

Readme

<%= appname %>

CMS:

JIRA Project:

Epic Ticket:

Stash Repo: <%= stashrepo %>

##Project Info:

Static Repo Versions

Project Scaffold: <%= scaffoldversion %>

SASS Boilerplate: <%= sassversion %>

SASS Mixins: <%= mixinversion %>

Assemble Structure: <%= assembleversion %>

Assemble Helpers: <%= helperversion %>

NPM Scripts

npm install

Commands

npm run check - run linting tests

npm start - run server

Building

npm run build - Run a plain build

Deployment

npm run deploy - Clone dist/ into appropriate deployment directories

Tasks

assemble

npm run clean:assemble && npm run assemble:build && npm run assemble:execute

  • Cleans assemble directories.
  • Builds assemble files.
  • Executes sass reference script (updateScss.js).

assemble:server

npm run clean:assemble && npm run assemble:server-build && npm run assemble:execute

  • Cleans assemble directories.
  • Builds assemble files (with server flag).
  • Executes sass reference script (updateScss.js).

assemble:server-build

assemble default organisms --file _config/assemblefile.js --option=server:true

  • Runs the assemble tasks "default" and "organisms", using a provided config file. Adds a flag for a server build to allow specific actions.

assemble:build

assemble default organisms --file _config/assemblefile.js

  • Runs the assemble tasks "default" and "organisms", using a provided config file.

assemble:execute

node lib/updateScss.js

  • Runs the node script that builds empty sass files for modules, partials, and templates based on what handlebar files exist.

build

npm run clean:dist && npm run scaffold && npm run check && npm run build:img && npm run build:css && npm run build:js && npm run copy

  • Cleans up the dist folder.
  • Runs the assemble server tasks and preprocessor tasks. (scaffold)
  • Runs lint checks for SASS and ES6 (check)
  • Runs the IMG build tasks. (build:img)
  • Runs the CSS build tasks. (build:css)
  • Runs the JavaScript build tasks. (build:js)
  • Copies all the compiled HTML into the dist folder.

build:css

npm run sass:build && npm run postcss:preprocess && npm run sass:dist && npm run postcss:postprocess

  • Runs Sass build task. (sass:build)
  • Runs PostCSS preprocess task. (postcss:preprocess)
  • Runs Sass dist task. (sass:dist)
  • Runs PostCSS postprocess task. (postcss:postprocess)

build:img

node lib/imagemin.js

  • Runs imagemin script on app/img and outputs into dist/img.

build:js

npx webpack --config ./_config/webpack.config.js --mode=production

  • Runs webpack configuration on ejs directory, with a production flag.

check

eslint --ignore-path _config/.eslintignore -c _config/.eslintrc.json app/ejs && npm run sass:lint

  • Runs eslint on the ejs directory.
  • Runs Sass linting tasks. (sass:lint)

clean:assemble

node lib/del.js --assemble

  • Removes all .html files under app/ and under app/modules/

clean:deploy

node lib/del.js --deploy

  • Remove all contents of the deployment folder(s) based on the del config.

clean:dist

node lib/del.js --dist

  • Remove all contents of the dist folder based on the del config.

copy

node lib/copy.js --dist

  • Copies all files under app/ to dist based on the copy config.

deploy

npm run clean:deploy && node lib/copy.js --deploy

  • Runs deploy clean task. (clean:deploy)
  • Copies all files under app/ to deploy folder(s) based on the copy config.

modernizr

customizr -c ./_config/modernizr-config.json

  • Runs customizr script to produce a custom build of modernizr.js, which it places in app/js/plugins/

postcss:fixsass

postcss --config _config/ -r app/scss/**/*.scss --env=scss

  • Runs postcss script using congfiguration (_config/postcss.config.js) on css file in dist directory. This is using the scss configuration.
  • PostCSS plugins:

postcss:postprocess

postcss --config _config/ -r dist/css/main.css --env=csspost

  • Runs postcss script using congfiguration (_config/postcss.config.js) on css file in dist directory. This is using the csspost configuration.
  • PostCSS plugins:

postcss:preprocess

postcss --config _config/ -r app/css/main.css --env=csspre

  • Runs postcss script using congfiguration (_config/postcss.config.js) on css file in app directory. This is using the csspre configuration.
  • PostCSS plugins:
    • autoprefixer - Adds vendor prefixes based on browser requirements.

preprocess

npm run preprocess:css && npm run preprocess:js && npm run modernizr

  • Runs CSS Preprocessing task.
  • Runs JS Preprocessing task.
  • Runs modernizr task.

preprocess:css

npm run sass:build && npm run postcss:preprocess

  • Runs Sass Build task.
  • Runs Postcss Preprocess task.

preprocess:js

npx webpack --config ./_config/webpack.config.js

  • Compiles ES6 JavaScript using Webpack configuration.

sass:build

node lib/nodesass.js

  • Compiles SCSS using nodesass configuration.

sass:dist

node lib/copy.js --css

  • Copies CSS from app to dist.

sass:lint

npm run postcss:fixsass && stylelint "app/scss/**/*.scss" --fix --cache --cache-location "./.stylelintcache/" --config "./_config/.stylelintrc.json" --ignore-path "./_config/.stylelintignore"

  • Runs Postcss Fixsass task.
  • Lints the SCSS files based on defined stylelint rules.

scaffold

npm run assemble && npm run preprocess

  • Runs Assemble tasks
  • Runs preprocess task

scaffold:server

npm run assemble:server && npm run preprocess

  • Runs Assemble server tasks
  • Runs preprocess task

start

npm run scaffold && node lib/browsersync.js

  • Runs scaffold task
  • Starts a server on port 3000 (or first available port) and opens in a new tab using default browser.

test

mocha

  • Runs tests on the project files.