diff --git a/packages/edition-twig/.patternlabrc.js b/packages/edition-twig/.patternlabrc.js new file mode 100644 index 000000000..f7c2ff8fa --- /dev/null +++ b/packages/edition-twig/.patternlabrc.js @@ -0,0 +1,5 @@ +module.exports = { + buildDir: __dirname + '/public', + wwwDir: __dirname + '/public/', + publicPath: '/public/styleguide/', +}; diff --git a/packages/edition-twig/package.json b/packages/edition-twig/package.json index a45997654..9b8fcea31 100644 --- a/packages/edition-twig/package.json +++ b/packages/edition-twig/package.json @@ -13,10 +13,11 @@ ], "main": "patternlab-config.json", "scripts": { - "build": "patternlab build --config ./patternlab-config.json", + "build:uikit": "npm run build --prefix node_modules/@pattern-lab/uikit-workshop -- --patternlabrc $INIT_CWD/.patternlabrc.js", + "build": "npm run build:uikit && patternlab build --config ./patternlab-config.json", "help": "patternlab --help", "install": "patternlab install --config ./patternlab-config.json", - "serve": "patternlab serve --config ./patternlab-config.json", + "serve": "npm run build:uikit && patternlab serve --config ./patternlab-config.json", "start": "npm run serve", "version": "patternlab --version" }, diff --git a/packages/uikit-workshop/dist/index.html b/packages/uikit-workshop/dist/index.html index accafe15b..366fa967f 100644 --- a/packages/uikit-workshop/dist/index.html +++ b/packages/uikit-workshop/dist/index.html @@ -1,9 +1,9 @@