Skip to content

Running an Edition Against Local Core

Brian Muenzenmeyer edited this page Jun 11, 2016 · 1 revision

Running Against Local Core

There are cases where you might want to run against a local copy of core, especially when contributing.

Use npm link like the below:

cd /path/to/local/core
npm link 

cd /path/to/local/edition
npm link patternlab-node

or, alter the entry within the edition's gulpfile that requires the npm-installed core module, and replace it with a local copy, like below.

/******************************************************
 * PATTERN LAB CONFIGURATION
******************************************************/
//read all paths from our namespaced config file
var config = require('./patternlab-config.json'),
    //pl = require('patternlab-node')(config);
    pl = require('C:\\src\\pln\\core\\lib\\patternlab.js')(config);
Clone this wiki locally