From 6c5d332479fb6836bd8bd5530a074d13440f8ae4 Mon Sep 17 00:00:00 2001 From: Brian Muenzenmeyer Date: Mon, 14 Oct 2019 01:17:13 -0500 Subject: [PATCH 1/4] feat: introduce netlify preview --- netlify.toml | 2 ++ package.json | 3 ++- .../source/fonts/.gitkeep | 0 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 netlify.toml create mode 100644 packages/development-edition-engine-handlebars/source/fonts/.gitkeep diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 000000000..5c1a46946 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,2 @@ +[context.deploy-preview] + command = "npm run preview:hbs" diff --git a/package.json b/package.json index 102859805..1d374959c 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,8 @@ "test": "lerna run test", "clean": "git clean -dfx", "publish": "npx lerna publish -m \"[skip travis] chore(release): publish %s\"", - "postpublish": "auto release" + "postpublish": "auto release", + "preview:hbs": "cd packages/development-edition-engine-handlebars && patternlab add --starterkits @pattern-lab/starterkit-handlebars-vanilla && npm run pl:build" }, "nyc": { "exclude": [ diff --git a/packages/development-edition-engine-handlebars/source/fonts/.gitkeep b/packages/development-edition-engine-handlebars/source/fonts/.gitkeep new file mode 100644 index 000000000..e69de29bb From 663660e3795543efa8e86df766674cefd176f9a2 Mon Sep 17 00:00:00 2001 From: Brian Muenzenmeyer Date: Mon, 14 Oct 2019 01:24:13 -0500 Subject: [PATCH 2/4] chore: attempt to wrap starterkit command --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1d374959c..1a96d72f4 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "clean": "git clean -dfx", "publish": "npx lerna publish -m \"[skip travis] chore(release): publish %s\"", "postpublish": "auto release", - "preview:hbs": "cd packages/development-edition-engine-handlebars && patternlab add --starterkits @pattern-lab/starterkit-handlebars-vanilla && npm run pl:build" + "preview:hbs": "cd packages/development-edition-engine-handlebars && patternlab add --starterkits '@pattern-lab/starterkit-handlebars-vanilla' && npm run pl:build" }, "nyc": { "exclude": [ From 4f0bc8a8cec054390091ef29455f64017ac1c036 Mon Sep 17 00:00:00 2001 From: Brian Muenzenmeyer Date: Mon, 14 Oct 2019 01:26:02 -0500 Subject: [PATCH 3/4] chore: try npx during netlify preview --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1a96d72f4..74a2962cf 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "clean": "git clean -dfx", "publish": "npx lerna publish -m \"[skip travis] chore(release): publish %s\"", "postpublish": "auto release", - "preview:hbs": "cd packages/development-edition-engine-handlebars && patternlab add --starterkits '@pattern-lab/starterkit-handlebars-vanilla' && npm run pl:build" + "preview:hbs": "cd packages/development-edition-engine-handlebars && npx patternlab add --starterkits '@pattern-lab/starterkit-handlebars-vanilla' && npm run pl:build" }, "nyc": { "exclude": [ From 03103a5a2325ea7c298171000986abdf2c45f4a8 Mon Sep 17 00:00:00 2001 From: Brian Muenzenmeyer Date: Mon, 14 Oct 2019 01:31:21 -0500 Subject: [PATCH 4/4] chore: delete old test patterns --- .../source/_patterns/atoms/swatches/swatch.hbs | 6 ------ .../source/_patterns/atoms/swatches/swatch.json | 7 ------- .../source/_patterns/atoms/swatches/swatch.md | 1 - .../source/_patterns/atoms/swatches/swatch.scss | 3 --- .../source/_patterns/atoms/text/helper.hbs | 1 - .../source/_patterns/atoms/type.md | 1 - .../source/_patterns/atoms/type/annotation.hbs | 1 - .../source/_patterns/molecules/variants.md | 1 - .../source/_patterns/molecules/variants/swatches.hbs | 8 -------- .../source/_patterns/molecules/variants/swatches.md | 1 - 10 files changed, 30 deletions(-) delete mode 100644 packages/development-edition-engine-handlebars/source/_patterns/atoms/swatches/swatch.hbs delete mode 100644 packages/development-edition-engine-handlebars/source/_patterns/atoms/swatches/swatch.json delete mode 100644 packages/development-edition-engine-handlebars/source/_patterns/atoms/swatches/swatch.md delete mode 100644 packages/development-edition-engine-handlebars/source/_patterns/atoms/swatches/swatch.scss delete mode 100644 packages/development-edition-engine-handlebars/source/_patterns/atoms/text/helper.hbs delete mode 100644 packages/development-edition-engine-handlebars/source/_patterns/atoms/type.md delete mode 100644 packages/development-edition-engine-handlebars/source/_patterns/atoms/type/annotation.hbs delete mode 100644 packages/development-edition-engine-handlebars/source/_patterns/molecules/variants.md delete mode 100644 packages/development-edition-engine-handlebars/source/_patterns/molecules/variants/swatches.hbs delete mode 100644 packages/development-edition-engine-handlebars/source/_patterns/molecules/variants/swatches.md diff --git a/packages/development-edition-engine-handlebars/source/_patterns/atoms/swatches/swatch.hbs b/packages/development-edition-engine-handlebars/source/_patterns/atoms/swatches/swatch.hbs deleted file mode 100644 index 06004c9de..000000000 --- a/packages/development-edition-engine-handlebars/source/_patterns/atoms/swatches/swatch.hbs +++ /dev/null @@ -1,6 +0,0 @@ -
- {{label}} - hex: {{color.hex}} - cmyk: {{color.cmyk}} -
-swatch diff --git a/packages/development-edition-engine-handlebars/source/_patterns/atoms/swatches/swatch.json b/packages/development-edition-engine-handlebars/source/_patterns/atoms/swatches/swatch.json deleted file mode 100644 index 15d3872ba..000000000 --- a/packages/development-edition-engine-handlebars/source/_patterns/atoms/swatches/swatch.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "color": { - "hex": "#031636", - "cmyk": "94 59 0 79" - }, - "label": "dark blue" -} diff --git a/packages/development-edition-engine-handlebars/source/_patterns/atoms/swatches/swatch.md b/packages/development-edition-engine-handlebars/source/_patterns/atoms/swatches/swatch.md deleted file mode 100644 index 3f2d7ea0f..000000000 --- a/packages/development-edition-engine-handlebars/source/_patterns/atoms/swatches/swatch.md +++ /dev/null @@ -1 +0,0 @@ -Pattern Lab Tip: Note the use of the [built-in handlebars helper, `if`](https://handlebarsjs.com/builtin_helpers.html) and the ability to address data using dot notation [paths](https://handlebarsjs.com/#paths). diff --git a/packages/development-edition-engine-handlebars/source/_patterns/atoms/swatches/swatch.scss b/packages/development-edition-engine-handlebars/source/_patterns/atoms/swatches/swatch.scss deleted file mode 100644 index 193e3ca7d..000000000 --- a/packages/development-edition-engine-handlebars/source/_patterns/atoms/swatches/swatch.scss +++ /dev/null @@ -1,3 +0,0 @@ -* { - color: rebeccapurple -} diff --git a/packages/development-edition-engine-handlebars/source/_patterns/atoms/text/helper.hbs b/packages/development-edition-engine-handlebars/source/_patterns/atoms/text/helper.hbs deleted file mode 100644 index edc2f0ebf..000000000 --- a/packages/development-edition-engine-handlebars/source/_patterns/atoms/text/helper.hbs +++ /dev/null @@ -1 +0,0 @@ -{{test}} diff --git a/packages/development-edition-engine-handlebars/source/_patterns/atoms/type.md b/packages/development-edition-engine-handlebars/source/_patterns/atoms/type.md deleted file mode 100644 index 245bc9dcd..000000000 --- a/packages/development-edition-engine-handlebars/source/_patterns/atoms/type.md +++ /dev/null @@ -1 +0,0 @@ -Type diff --git a/packages/development-edition-engine-handlebars/source/_patterns/atoms/type/annotation.hbs b/packages/development-edition-engine-handlebars/source/_patterns/atoms/type/annotation.hbs deleted file mode 100644 index 7d556dbab..000000000 --- a/packages/development-edition-engine-handlebars/source/_patterns/atoms/type/annotation.hbs +++ /dev/null @@ -1 +0,0 @@ -{{#if annotation}}{{annotation}}{{else}}v{{version}}{{/if}} diff --git a/packages/development-edition-engine-handlebars/source/_patterns/molecules/variants.md b/packages/development-edition-engine-handlebars/source/_patterns/molecules/variants.md deleted file mode 100644 index 345e6aef7..000000000 --- a/packages/development-edition-engine-handlebars/source/_patterns/molecules/variants.md +++ /dev/null @@ -1 +0,0 @@ -Test diff --git a/packages/development-edition-engine-handlebars/source/_patterns/molecules/variants/swatches.hbs b/packages/development-edition-engine-handlebars/source/_patterns/molecules/variants/swatches.hbs deleted file mode 100644 index 9cb654819..000000000 --- a/packages/development-edition-engine-handlebars/source/_patterns/molecules/variants/swatches.hbs +++ /dev/null @@ -1,8 +0,0 @@ -
    -
  • hi12 - {{> atoms-annotation annotation="possible colors"}} -
  • - {{#each swatches}} -
  • {{> atoms-swatch }}
  • - {{/each}} -
diff --git a/packages/development-edition-engine-handlebars/source/_patterns/molecules/variants/swatches.md b/packages/development-edition-engine-handlebars/source/_patterns/molecules/variants/swatches.md deleted file mode 100644 index 131286757..000000000 --- a/packages/development-edition-engine-handlebars/source/_patterns/molecules/variants/swatches.md +++ /dev/null @@ -1 +0,0 @@ -Pattern Lab Tip: Note the use of the [built-in handlebars helper, `each`](https://handlebarsjs.com/builtin_helpers.html).