This repository was archived by the owner on Dec 10, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +36
-0
lines changed
Expand file tree Collapse file tree 4 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 2121 "bugs" : " https://github.com/pattern-lab/edition-node/issues" ,
2222 "author" : " Brian Muenzenmeyer" ,
2323 "scripts" : {
24+ "build" : " node ./scripts/build.js" ,
25+ "help" : " node ./scripts/help.js" ,
26+ "serve" : " node ./scripts/serve.js"
2427 },
2528 "license" : " MIT" ,
2629 "engines" : {
Original file line number Diff line number Diff line change 1+ /*
2+ This is another simple example, which we wrapped with an `npm` script inside package.json
3+ */
4+ const config = require ( './../patternlab-config.json' ) ;
5+ const patternlab = require ( '@pattern-lab/patternlab-node' ) ( config ) ;
6+
7+ patternlab . build ( ( ) => {
8+ // use the callback
9+ } , {
10+ cleanPublic : true
11+ } ) . then ( ( ) => {
12+ // or do something else when this promise resolves
13+ } ) ;
Original file line number Diff line number Diff line change 1+ /*
2+ This is another simple example, which we wrapped with an `npm` script inside package.json
3+ */
4+ const config = require ( './../patternlab-config.json' ) ;
5+ const patternlab = require ( '@pattern-lab/patternlab-node' ) ( config ) ;
6+
7+ patternlab . help ( ) ;
Original file line number Diff line number Diff line change 1+ /*
2+ This is another simple example, which we wrapped with an `npm` script inside package.json
3+ */
4+ const config = require ( './../patternlab-config.json' ) ;
5+ const patternlab = require ( '@pattern-lab/patternlab-node' ) ( config ) ;
6+
7+ patternlab . serve ( ( ) => {
8+ // use the callback
9+ } , {
10+ cleanPublic : true ,
11+ } ) . then ( ( ) => {
12+ // or do something else when this promise resolves
13+ } ) ;
You can’t perform that action at this time.
0 commit comments