Skip to content

Commit 60acfa1

Browse files
committed
Merge remote-tracking branch 'upstream/dev' into refactor/further-code-optimizations
2 parents 5367e60 + 49cd8f8 commit 60acfa1

File tree

12 files changed

+2208
-2435
lines changed

12 files changed

+2208
-2435
lines changed

packages/cli/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"dependencies": {
1212
"@pattern-lab/core": "^5.15.2",
1313
"@pattern-lab/live-server": "^5.15.1",
14-
"@pattern-lab/starterkit-mustache-base": "3.0.3",
1514
"archiver": "2.1.1",
1615
"chalk": "4.1.0",
1716
"commander": "2.15.1",
@@ -24,18 +23,19 @@
2423
"lodash": "4.17.21",
2524
"ora": "2.1.0",
2625
"path-exists": "3.0.0",
27-
"sanitize-filename": "1.6.3",
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"
26+
"sanitize-filename": "1.6.3"
3227
},
3328
"devDependencies": {
29+
"@pattern-lab/starterkit-mustache-base": "3.0.3",
3430
"eslint": "4.18.2",
3531
"eslint-config-prettier": "2.9.0",
3632
"eslint-plugin-prettier": "2.6.0",
3733
"prettier": "2.2.1",
3834
"proxyquire": "2.1.3",
35+
"starterkit-mustache-acidtest": "0.0.3",
36+
"starterkit-mustache-bootstrap": "0.1.1",
37+
"starterkit-mustache-foundation": "0.1.1",
38+
"starterkit-mustache-materialdesign": "0.1.2",
3939
"tap": "14.11.0"
4040
},
4141
"files": [

packages/docs/.eleventy.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ module.exports = function (config) {
3333
config.addPassthroughCopy('src/js');
3434
config.addPassthroughCopy('src/admin/config.yml');
3535
config.addPassthroughCopy('src/admin/previews.js');
36-
config.addPassthroughCopy('../../node_modules/nunjucks/browser/nunjucks-slim.js');
36+
config.addPassthroughCopy({
37+
'../../node_modules/nunjucks/browser/nunjucks-slim.js':
38+
'node_modules/nunjucks/browser/nunjucks-slim.js',
39+
});
3740

3841
const now = new Date();
3942

packages/docs/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"description": "The website for patternlab.io",
55
"main": "index.js",
66
"dependencies": {
7-
"@11ty/eleventy": "^0.8.3",
8-
"@11ty/eleventy-plugin-rss": "^1.0.6",
9-
"@11ty/eleventy-plugin-syntaxhighlight": "^2.0.3",
7+
"@11ty/eleventy": "^0.12.1",
8+
"@11ty/eleventy-plugin-rss": "^1.1.2",
9+
"@11ty/eleventy-plugin-syntaxhighlight": "^3.1.3",
1010
"@tbranyen/jsdom": "^13.0.0",
1111
"concurrently": "^4.1.0",
1212
"html-minifier": "^4.0.0",
@@ -18,7 +18,7 @@
1818
"stalfos": "github:hankchizljaw/stalfos#c8971d22726326cfc04089b2da4d51eeb1ebb0eb"
1919
},
2020
"devDependencies": {
21-
"@11ty/eleventy-navigation": "^0.1.5",
21+
"@11ty/eleventy-navigation": "^0.3.2",
2222
"@erquhart/rollup-plugin-node-builtins": "^2.1.5",
2323
"bl": "^3.0.0",
2424
"chokidar-cli": "^2.1.0",

packages/docs/src/docs/advanced-config-options.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ Sets whether or not you want the styleguide to load with the pattern info open o
4747

4848
**default**: `false`
4949

50+
## defaultInitialViewportWidth (optional)
51+
52+
Possibility to define whether the initial viewport width on opening pattern lab in the browser should take the default of `100%` (value `true`) or take the (permanently) persisted value after the users have interacted with the viewport resize buttons previously (value `false`). This is especially beneficial in case that you'd expect the pages in full viewport at revisits, and even further if your startpage is defined as a "static" markdown welcome / orientation page.
53+
54+
**default**: `false`
55+
5056
## defaultPatternInfoPanelCode (optional)
5157

5258
Sets default active pattern info code panel by file extension - if unset, uses the value out of _patternExtension_ config value, or instead use value `html` to display the html code initially, or the value defined for the _patternExtension_.

packages/live-server/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,11 +247,12 @@ LiveServer.start = function (options) {
247247
// Use http-auth if configured
248248
if (htpasswd !== null) {
249249
const auth = require('http-auth');
250+
const authConnect = require('http-auth-connect');
250251
const basic = auth.basic({
251252
realm: 'Please authorize',
252253
file: htpasswd,
253254
});
254-
app.use(auth.connect(basic));
255+
app.use(authConnect(basic));
255256
}
256257

257258
if (cors) {

packages/live-server/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"cors": "2.8.5",
1919
"event-stream": "3.3.4",
2020
"faye-websocket": "0.11.x",
21-
"http-auth": "3.2.x",
21+
"http-auth": "4.1.x",
22+
"http-auth-connect": "^1.0.5",
2223
"morgan": "1.10.0",
2324
"object-assign": "4.1.1",
2425
"opn": "5.3.0",

packages/starterkit-handlebars-demo/dist/_patterns/atoms/global/font-families.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
}
1313
],
1414
"meta": {
15-
"description": "To add to these items, use Sass variables that start with <code>$font-family-</code> in <code>./source/css/scss/abstracts/_variables.scss</code>"
15+
"description": ""
1616
}
17-
}
17+
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
---
22
order: 2
3-
---
3+
---
4+
5+
To add to these items, use Sass variables that start with `$font-family-` in `./source/css/scss/abstracts/_variables.scss`

packages/starterkit-handlebars-demo/dist/_patterns/atoms/global/font-sizes.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@
3737
}
3838
],
3939
"meta": {
40-
"description": "To add to these items, use Sass variables that start with <code>$font-size-</code> in <code>./source/css/scss/abstracts/_variables.scss</code>"
40+
"description": ""
4141
}
42-
}
42+
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
---
22
order: 2
3-
---
3+
---
4+
5+
To add to these items, use Sass variables that start with `$font-size-` in `./source/css/scss/abstracts/_variables.scss`

0 commit comments

Comments
 (0)