Skip to content

Commit 03d9287

Browse files
authored
Merge branch 'dev' into dev
2 parents 5003a6a + ff18eb5 commit 03d9287

File tree

218 files changed

+9151
-209
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

218 files changed

+9151
-209
lines changed

CHANGELOG.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,45 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [5.9.2](https://github.com/pattern-lab/patternlab-node/compare/v5.9.1...v5.9.2) (2020-04-24)
7+
8+
**Note:** Version bump only for package pl-node
9+
10+
11+
12+
13+
14+
## [5.9.1](https://github.com/pattern-lab/patternlab-node/compare/v5.9.0...v5.9.1) (2020-04-24)
15+
16+
17+
### Bug Fixes
18+
19+
* **cli:** ensure specified directory exists prior to scaffold ([cc3b696](https://github.com/pattern-lab/patternlab-node/commit/cc3b69624d486c94ee3b1f4b1bbb0334a514fa59))
20+
21+
22+
23+
24+
25+
# [5.9.0](https://github.com/pattern-lab/patternlab-node/compare/v5.8.0...v5.9.0) (2020-04-24)
26+
27+
28+
### Bug Fixes
29+
30+
* **cli:** set current working directory before scaffolded npm init ([6d2186d](https://github.com/pattern-lab/patternlab-node/commit/6d2186d8e8a74634198a4474ca8ae83221dd70a9))
31+
* **core:** do not warn about uikit-polyfills ([6bb68e7](https://github.com/pattern-lab/patternlab-node/commit/6bb68e763769969546542bf7aaf6d1f4235c6622))
32+
* actually exit build when Twig render fails ([5d28a24](https://github.com/pattern-lab/patternlab-node/commit/5d28a24a53011396289c1e29e0a715cd82470185))
33+
* Update packages/engine-twig-php/lib/engine_twig_php.js ([c67d50e](https://github.com/pattern-lab/patternlab-node/commit/c67d50ebb5d69816b7514e85f129f8ecde984ad3))
34+
35+
36+
### Features
37+
38+
* **docs:** yarnify ([5a47dc7](https://github.com/pattern-lab/patternlab-node/commit/5a47dc7b90dc5c43c12a51143b41943dcbd8564c))
39+
* **README:** add netlify badges ([941df8a](https://github.com/pattern-lab/patternlab-node/commit/941df8a59b6b75bc1255646005f329e40be68106))
40+
41+
42+
43+
44+
645
# [5.8.0](https://github.com/pattern-lab/patternlab-node/compare/v5.7.2...v5.8.0) (2020-04-03)
746

847

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ If you'd like to see what a front-end project built with Pattern Lab looks like,
1616
[![node (scoped)](https://img.shields.io/node/v/@pattern-lab/patternlab-node.svg)]()
1717
[![Join the chat at Gitter](https://badges.gitter.im/pattern-lab/node.svg)](https://gitter.im/pattern-lab/node)
1818

19+
Docs @ [![Netlify Status](https://api.netlify.com/api/v1/badges/d454dbde-02c5-4bd4-8393-4ab75e862b03/deploy-status)](https://app.netlify.com/sites/patternlab-docs-preview/deploys)
20+
21+
Pattern Lab Preview @ [![Netlify Status](https://api.netlify.com/api/v1/badges/a6db1666-cb4f-4d26-82d4-9d88d875f286/deploy-status)](https://app.netlify.com/sites/patternlab-handlebars-preview/deploys)
22+
1923
## Using Pattern Lab
2024

2125
Refer to the [core usage guidelines](https://github.com/pattern-lab/patternlab-node/blob/master/packages/core/README.md#usage)

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"lerna": "3.11.0",
3-
"version": "5.8.0",
3+
"version": "5.9.2",
44
"packages": [
55
"packages/*"
66
],

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[context.deploy-preview]
2-
command = "npm run setup && npm run preview:hbs"
2+
command = "yarn setup && yarn preview:hbs && yarn preview:docs"

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"clean": "git clean -dfx",
4040
"publish": "npx lerna publish -m \"[skip travis] chore(release): publish %s\"",
4141
"postpublish": "auto release",
42+
"preview:docs": "cd packages/docs && yarn production",
4243
"preview:hbs": "cd packages/development-edition-engine-handlebars && npx patternlab add --starterkits @pattern-lab/starterkit-handlebars-vanilla && npm run pl:build"
4344
},
4445
"nyc": {

packages/cli/CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,28 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [5.9.1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/cli/compare/v5.9.0...v5.9.1) (2020-04-24)
7+
8+
9+
### Bug Fixes
10+
11+
* **cli:** ensure specified directory exists prior to scaffold ([cc3b696](https://github.com/pattern-lab/patternlab-node/tree/master/packages/cli/commit/cc3b69624d486c94ee3b1f4b1bbb0334a514fa59))
12+
13+
14+
15+
16+
17+
# [5.9.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/cli/compare/v5.8.0...v5.9.0) (2020-04-24)
18+
19+
20+
### Bug Fixes
21+
22+
* **cli:** set current working directory before scaffolded npm init ([6d2186d](https://github.com/pattern-lab/patternlab-node/tree/master/packages/cli/commit/6d2186d8e8a74634198a4474ca8ae83221dd70a9))
23+
24+
25+
26+
27+
628
# [5.7.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/cli/compare/v5.6.0...v5.7.0) (2020-02-17)
729

830

packages/cli/bin/scaffold.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22
const path = require('path');
33
const execa = require('execa');
4-
const fs = require('fs');
4+
const fs = require('fs-extra');
55
const wrapAsync = require('./utils').wrapAsync;
66
const mkdirsAsync = require('./utils').mkdirsAsync;
77

@@ -16,8 +16,12 @@ const mkdirsAsync = require('./utils').mkdirsAsync;
1616
*/
1717
const scaffold = (projectDir, sourceDir, publicDir, exportDir) =>
1818
wrapAsync(function*() {
19-
if (!fs.existsSync(path.resolve(projectDir, 'package.json'))) {
20-
execa.sync('npm', ['init', '-y']);
19+
const projectPath = path.join(process.cwd(), projectDir);
20+
if (!fs.existsSync(path.join(projectPath, 'package.json'))) {
21+
fs.ensureDirSync(projectPath);
22+
execa.sync('npm', ['init', '-y'], {
23+
cwd: projectPath,
24+
});
2125
}
2226
/**
2327
* Create mandatory files structure

packages/cli/package.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
{
22
"name": "@pattern-lab/cli",
33
"description": "Command-line interface (CLI) for the @pattern-lab/core.",
4-
"version": "5.7.0",
4+
"version": "5.9.1",
55
"bin": {
66
"patternlab": "bin/patternlab.js"
77
},
88
"author": {
99
"name": "Raphael Okon"
1010
},
1111
"dependencies": {
12-
"@pattern-lab/core": "^5.7.0",
12+
"@pattern-lab/core": "^5.9.0",
1313
"@pattern-lab/live-server": "^5.0.0",
14+
"@pattern-lab/starterkit-mustache-base": "3.0.3",
1415
"archiver": "2.1.1",
1516
"chalk": "2.4.1",
1617
"commander": "2.15.1",
@@ -23,7 +24,11 @@
2324
"lodash": "4.17.15",
2425
"ora": "2.1.0",
2526
"path-exists": "3.0.0",
26-
"sanitize-filename": "1.6.1"
27+
"sanitize-filename": "1.6.1",
28+
"starterkit-mustache-acidtest": "0.0.3",
29+
"starterkit-mustache-bootstrap": "0.1.1",
30+
"starterkit-mustache-foundation": "0.1.1",
31+
"starterkit-mustache-materialdesign": "0.1.2"
2732
},
2833
"devDependencies": {
2934
"eslint": "4.18.2",
@@ -44,7 +49,7 @@
4449
],
4550
"scripts": {
4651
"lint": "eslint ./{bin,test}",
47-
"test:separate": "tap './test/*.test.js' --reporter spec --timeout=120"
52+
"test:separate": "tap ./test/*.test.js --reporter spec --timeout=120"
4853
},
4954
"repository": "https://github.com/pattern-lab/patternlab-node/tree/master/packages/cli",
5055
"bugs": "https://github.com/pattern-lab/patternlab-node/issues",

packages/core/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [5.9.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/compare/v5.8.0...v5.9.0) (2020-04-24)
7+
8+
9+
### Bug Fixes
10+
11+
* **core:** do not warn about uikit-polyfills ([6bb68e7](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/6bb68e763769969546542bf7aaf6d1f4235c6622))
12+
13+
14+
15+
16+
617
# [5.7.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/compare/v5.6.0...v5.7.0) (2020-02-17)
718

819
**Note:** Version bump only for package @pattern-lab/core

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@pattern-lab/core",
33
"description": "Create atomic design systems with Pattern Lab. This is the core API and orchestrator of the ecosystem.",
4-
"version": "5.7.0",
4+
"version": "5.9.0",
55
"main": "./src/index.js",
66
"dependencies": {
77
"@pattern-lab/engine-mustache": "^5.0.0",

0 commit comments

Comments
 (0)