Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

storm-scaffold

Package Overview
Dependencies
Maintainers
4
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

storm-scaffold

Project scaffold

  • 1.7.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

How to run this project

Installation

npm install

Run

npm start

Production run

npm run production

CI build

Production build, plus generates artefacts and SRI hash json file

npm run ci

Tests

Jest (https://jestjs.io/docs/en/api) and Puppeteer (https://pptr.dev/) are included, along with a static build accessibility test.

npm t

JS

The app uses es6 modules that are transpiled then transformed using browserify into a minified single app.js containing the core js used on every page.

Page or component-specific JS files should be loaded asynchronously as required. These files, which need to be browser-ready or UMD, should be placed in src/js/async.

Custom components that require their own build system to generate standalone modules for async import can be added to a 'src/js/custom-components' directory. The easiest way to build standalone modules that are consumed by the build is to use https://github.com/mjbp/storm-component-boilerplate.

CSS

SCSS, with a partial structure

  • abstracts
  • base/
  • components/
  • layout/
  • vendor/

All project configurations and variables are set in abstracts/_variables.scss.

HTML

Nunjucks templates, (https://mozilla.github.io/nunjucks/)

  1. Layout templates defining the overall structure of the complete HTML document.
  2. View templates, one for each page on the website, the structure of the static build site follows the structure of the views
  3. Macro templates contain functional components
  4. Partial view templates contain components

Variables can be set in yml in the head of each template.

Gulp Tasks

The key build tasks should be run via npm scripts, but the full gulp API can be read at the bottom of the gulpfile.

Add a production flag to run in production mode, and compress everything.

node node_modules/.bin/gulp start --production

FAQs

Package last updated on 27 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc