Skip to content

Commit e8d5c21

Browse files
committed
feat(scripts): refactor to use cli commands
1 parent 760d0e0 commit e8d5c21

File tree

5 files changed

+6
-46
lines changed

5 files changed

+6
-46
lines changed

packages/edition-node/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ The pure wrapper around [Pattern Lab Node Core](https://github.com/pattern-lab/p
1414
This Edition comes with the following components:
1515

1616
* `@pattern-lab/core`: [GitHub](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core) | [npm](https://www.npmjs.com/package/@pattern-lab/core)
17+
* `@pattern-lab/cli`: [GitHub](https://github.com/pattern-lab/tree/master/packages/cli) | [npm](https://www.npmjs.com/package/@pattern-lab/cli)
1718
* `@pattern-lab/engine-mustache`: [GitHub](https://github.com/pattern-lab/tree/master/packages/engine-mustache) | [npm](https://www.npmjs.com/package/@pattern-lab/engine-mustache)
1819
* `@pattern-lab/uikit-workshop`: [GitHub](https://github.com/pattern-lab/tree/master/packages/uikit-workshop) | [npm](https://www.npmjs.com/package/@pattern-lab/uikit-workshop)
1920

packages/edition-node/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@
1919
"bugs": "https://github.com/pattern-lab/patternlab-node/issues",
2020
"author": "Brian Muenzenmeyer",
2121
"scripts": {
22-
"build": "node ./scripts/build.js",
23-
"help": "node ./scripts/help.js",
24-
"serve": "node ./scripts/serve.js"
22+
"build": "patternlab build --config ./patternlab-config.json",
23+
"help": "patternlab --help",
24+
"install": "patternlab install --config ./patternlab-config.json",
25+
"serve": "patternlab serve --config ./patternlab-config.json",
26+
"version": "patternlab --version"
2527
},
2628
"license": "MIT",
2729
"engines": {

packages/edition-node/scripts/build.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

packages/edition-node/scripts/help.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

packages/edition-node/scripts/serve.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)