Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @growthops/generator-kh-drupal-theme with all npm packages installed. Try it out:

var generatorKhDrupalTheme = require("@growthops/generator-kh-drupal-theme")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@growthops/generator-kh-drupal-theme v1.0.1

Generates custom webpack-based themes for Drupal 8

generator-kh-drupal-theme NPM version Build Status Dependency Status

Generates custom Webpack-based themes for Drupal 8

Installation

First, install Yeoman and generator-kh-drupal-theme using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g @growthops/generator-kh-drupal-theme

Usage

Say you want to generate a theme called "My Custom Theme"

mkdir -p custom/my_custom_theme
cd custom/my_custom_theme
yo @growthops/kh-drupal-theme

Then at the prompts

  1. Enter your theme name (e.g. My Custom Theme)
  2. Enter your local drupal server's URI (e.g. http://my-awesome-site.dev.dd:8083)

Finally start your webpack dev server

npm start

License

MIT © Trimantium Growth Ops

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free