New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

generator-dmninteractives

Package Overview
Dependencies
Maintainers
4
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-dmninteractives

Yeoman generator for interactive pages at The Dallas Morning News

  • 0.8.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

generator-dmninteractives NPM version

A Yeoman generator for DMN-flavored "interactive" pages with easy publishing.

Translation: A simple app that helps speed up developing a custom "interactive" page using our DMN house template.

What it does:

  • Scaffolds your project's development directory, shortcutting setup time.
  • Compiles and bundles SCSS and JS files.
  • Populates meta tags from a JSON file.
  • Creates responsive image sets optimized for mobile devices.
  • Publishes your project to an Amazon S3 bucket.

See the wiki for complete instructions on using the app.

Requirements

  • Node - brew install node
  • Git - brew install git
  • Recommended: git-secrets - brew install git-secrets

Installation

Install global dependencies, including Yeoman and the generator.

$ npm install -g gulp-cli yo
$ npm install -g --production generator-dmninteractives

(The --production flag is optional, but prevents your global Node modules folder from getting confused by the dev tooling for the generator)

Usage

Starting a new project

Create a clean directory for your project in your terminal.

$ mkdir your-app-directory
$ cd your-app-directory

Run the generator in your new project directory.

$ yo dmninteractives

The generator will set up your working directory, install dependencies, copy template files and scripts, start a local webserver and open your browser.

Be sure to fill out the meta.json file to correctly complete metatags in the template.

Developing your project

The generator uses gulp, a node-based task runner, to watch your directories for changes as you code, render templates, prepare static files and start a local webserver to preview your project in the browser.

To work on your project, launch gulp in your app's root directory:

$ gulp

Your project is separated into two main directories:

  • src
  • dist

The src directory is your working directory. You'll write all your code and place all necessary static assets in this directory.

The dist directory includes transpiled SCSS, minified JavaScript and responsive images. Gulp serves a live preview of your page from this folder.

Publishing your project

Execute one of the gulp publish commands to publish to either the test or production directory of the bucket:

  • gulp publish
  • gulp publish-test

Keywords

FAQs

Package last updated on 20 Jul 2020

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