@@ -4,8 +4,9 @@ const path = require('path');
4
4
const Q = require ( "q" ) ;
5
5
const shelljs = require ( 'shelljs' ) ;
6
6
7
- const EXAMPLES_PATH = path . join ( __dirname , '/../content/examples' ) ;
8
- const BOILERPLATE_PATH = path . join ( EXAMPLES_PATH , '_boilerplate' ) ;
7
+ const EXAMPLES_PATH = path . join ( __dirname , '/../../content/examples' ) ;
8
+ const SHARED_PATH = path . join ( __dirname , '/shared' ) ;
9
+ const BOILERPLATE_PATH = path . join ( SHARED_PATH , 'boilerplate' ) ;
9
10
const EXAMPLES_TESTING_PATH = path . join ( EXAMPLES_PATH , 'testing' ) ;
10
11
11
12
const files = {
@@ -28,7 +29,7 @@ const files = {
28
29
29
30
// requires admin access because it adds symlinks
30
31
function add ( ) {
31
- const realPath = path . join ( EXAMPLES_PATH , '/node_modules' ) ;
32
+ const realPath = path . join ( SHARED_PATH , '/node_modules' ) ;
32
33
const nodeModulesPaths = getNodeModulesPaths ( EXAMPLES_PATH ) ;
33
34
34
35
// we install the examples modules first
@@ -122,7 +123,7 @@ function getUnitTestingPaths(basePath) {
122
123
}
123
124
124
125
function installNodeModules ( ) {
125
- shelljs . exec ( 'yarn' , { cwd : EXAMPLES_PATH } ) ;
126
+ shelljs . exec ( 'yarn' , { cwd : SHARED_PATH } ) ;
126
127
}
127
128
128
129
function remove ( ) {
0 commit comments