File tree Expand file tree Collapse file tree 3 files changed +18
-12
lines changed Expand file tree Collapse file tree 3 files changed +18
-12
lines changed Original file line number Diff line number Diff line change 8
8
*
9
9
*/
10
10
11
- var patternlab_engine = function ( ) {
11
+ var patternlab_engine = function ( config ) {
12
12
'use strict' ;
13
13
14
14
var path = require ( 'path' ) ,
@@ -25,7 +25,7 @@ var patternlab_engine = function () {
25
25
patternlab = { } ;
26
26
27
27
patternlab . package = fs . readJSONSync ( './package.json' ) ;
28
- patternlab . config = fs . readJSONSync ( './config.json' ) ;
28
+ patternlab . config = config || fs . readJSONSync ( './config.json' ) ;
29
29
30
30
var paths = patternlab . config . paths ;
31
31
Original file line number Diff line number Diff line change 2
2
"name" : " patternlab-node" ,
3
3
"description" : " Pattern Lab is a collection of tools to help you create atomic design systems. This is the node command line interface (CLI)." ,
4
4
"version" : " 1.0.1" ,
5
- "devDependencies " : {
6
- "browser-sync " : " ^2.10.0 " ,
5
+ "main " : " ./builder/patternlab.js " ,
6
+ "dependencies " : {
7
7
"del" : " ^2.0.2" ,
8
8
"diveSync" : " ^0.3.0" ,
9
9
"fs-extra" : " ^0.26.2" ,
10
10
"glob" : " ^6.0.1" ,
11
+ "html-entities" : " ^1.2.0" ,
12
+ "mustache" : " ^2.2.0"
13
+ },
14
+ "devDependencies" : {
15
+ "browser-sync" : " ^2.10.0" ,
11
16
"gulp" : " ^3.9.0" ,
12
17
"gulp-connect" : " ^2.2.0" ,
13
18
"gulp-copy" : " 0.0.2" ,
14
19
"gulp-header" : " ^1.7.1" ,
15
20
"gulp-load" : " ^0.1.1" ,
16
21
"gulp-nodeunit" : " 0.0.5" ,
17
- "gulp-strip-banner" : " 0.0.2" ,
18
- "html-entities" : " ^1.2.0" ,
19
- "mustache" : " ^2.2.0"
22
+ "gulp-strip-banner" : " 0.0.2"
20
23
},
21
24
"keywords" : [
22
25
" Pattern Lab" ,
Original file line number Diff line number Diff line change 2
2
"name" : " patternlab-node" ,
3
3
"description" : " Pattern Lab is a collection of tools to help you create atomic design systems. This is the node command line interface (CLI)." ,
4
4
"version" : " 1.0.1" ,
5
- "devDependencies" : {
5
+ "main" : " ./builder/patternlab.js" ,
6
+ "dependencies" : {
6
7
"bs-html-injector" : " ^3.0.0" ,
7
8
"diveSync" : " ^0.3.0" ,
8
9
"fs-extra" : " ^0.26.2" ,
9
10
"glob" : " ^6.0.1" ,
11
+ "html-entities" : " ^1.2.0" ,
12
+ "matchdep" : " ^1.0.0" ,
13
+ "mustache" : " ^2.2.0"
14
+ },
15
+ "devDependencies" : {
10
16
"grunt" : " ~0.4.5" ,
11
17
"grunt-browser-sync" : " ^2.2.0" ,
12
18
"grunt-contrib-concat" : " ^0.5.1" ,
13
19
"grunt-contrib-copy" : " ^0.8.2" ,
14
20
"grunt-contrib-nodeunit" : " ^0.4.1" ,
15
- "grunt-contrib-watch" : " ^0.6.1" ,
16
- "html-entities" : " ^1.2.0" ,
17
- "matchdep" : " ^1.0.0" ,
18
- "mustache" : " ^2.2.0"
21
+ "grunt-contrib-watch" : " ^0.6.1"
19
22
},
20
23
"keywords" : [
21
24
" Pattern Lab" ,
You can’t perform that action at this time.
0 commit comments