Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix plugin tabs enabling multiple file formats #1165

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,6 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [5.9.2](https://github.com/pattern-lab/patternlab-node/compare/v5.9.1...v5.9.2) (2020-04-24)

**Note:** Version bump only for package pl-node





## [5.9.1](https://github.com/pattern-lab/patternlab-node/compare/v5.9.0...v5.9.1) (2020-04-24)


### Bug Fixes

* **cli:** ensure specified directory exists prior to scaffold ([cc3b696](https://github.com/pattern-lab/patternlab-node/commit/cc3b69624d486c94ee3b1f4b1bbb0334a514fa59))





# [5.9.0](https://github.com/pattern-lab/patternlab-node/compare/v5.8.0...v5.9.0) (2020-04-24)


Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"lerna": "3.11.0",
"version": "5.9.2",
"version": "5.9.0",
"packages": [
"packages/*"
],
Expand Down
11 changes: 0 additions & 11 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,6 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [5.9.1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/cli/compare/v5.9.0...v5.9.1) (2020-04-24)


### Bug Fixes

* **cli:** ensure specified directory exists prior to scaffold ([cc3b696](https://github.com/pattern-lab/patternlab-node/tree/master/packages/cli/commit/cc3b69624d486c94ee3b1f4b1bbb0334a514fa59))





# [5.9.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/cli/compare/v5.8.0...v5.9.0) (2020-04-24)


Expand Down
3 changes: 1 addition & 2 deletions packages/cli/bin/scaffold.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';
const path = require('path');
const execa = require('execa');
const fs = require('fs-extra');
const fs = require('fs');
const wrapAsync = require('./utils').wrapAsync;
const mkdirsAsync = require('./utils').mkdirsAsync;

Expand All @@ -18,7 +18,6 @@ const scaffold = (projectDir, sourceDir, publicDir, exportDir) =>
wrapAsync(function*() {
const projectPath = path.join(process.cwd(), projectDir);
if (!fs.existsSync(path.join(projectPath, 'package.json'))) {
fs.ensureDirSync(projectPath);
execa.sync('npm', ['init', '-y'], {
cwd: projectPath,
});
Expand Down
11 changes: 3 additions & 8 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@pattern-lab/cli",
"description": "Command-line interface (CLI) for the @pattern-lab/core.",
"version": "5.9.1",
"version": "5.9.0",
"bin": {
"patternlab": "bin/patternlab.js"
},
Expand All @@ -11,7 +11,6 @@
"dependencies": {
"@pattern-lab/core": "^5.9.0",
"@pattern-lab/live-server": "^5.0.0",
"@pattern-lab/starterkit-mustache-base": "3.0.3",
"archiver": "2.1.1",
"chalk": "2.4.1",
"commander": "2.15.1",
Expand All @@ -24,11 +23,7 @@
"lodash": "4.17.15",
"ora": "2.1.0",
"path-exists": "3.0.0",
"sanitize-filename": "1.6.1",
"starterkit-mustache-acidtest": "0.0.3",
"starterkit-mustache-bootstrap": "0.1.1",
"starterkit-mustache-foundation": "0.1.1",
"starterkit-mustache-materialdesign": "0.1.2"
"sanitize-filename": "1.6.1"
},
"devDependencies": {
"eslint": "4.18.2",
Expand All @@ -49,7 +44,7 @@
],
"scripts": {
"lint": "eslint ./{bin,test}",
"test:separate": "tap ./test/*.test.js --reporter spec --timeout=120"
"test:separate": "tap './test/*.test.js' --reporter spec --timeout=120"
},
"repository": "https://github.com/pattern-lab/patternlab-node/tree/master/packages/cli",
"bugs": "https://github.com/pattern-lab/patternlab-node/issues",
Expand Down
1 change: 1 addition & 0 deletions packages/cli/test/fixtures/patternlab-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"cleanPublic": true,
"defaultPattern": "all",
"defaultShowPatternInfo": false,
"defaultPatternInfoPanelCode": "mustache",
"ishControlsHide": {
"s": false,
"m": false,
Expand Down
1 change: 1 addition & 0 deletions packages/core/patternlab-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"cleanPublic" : true,
"defaultPattern": "all",
"defaultShowPatternInfo": false,
"defaultPatternInfoPanelCode": "mustache",
"ishControlsHide": {
"s": false,
"m": false,
Expand Down
24 changes: 0 additions & 24 deletions packages/core/src/lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,30 +36,6 @@ const server = patternlab => {
patternlab.config.paths.public.root
)
);
defaults.assets = [
path.resolve(
path.join(
process.cwd(),
patternlab.config.paths.source.js,
'**',
'*.js' // prevent preprocessors like typescript from reloading
)
),
path.resolve(
path.join(process.cwd(), patternlab.config.paths.source.images)
),
path.resolve(
path.join(process.cwd(), patternlab.config.paths.source.fonts)
),
path.resolve(
path.join(
process.cwd(),
patternlab.config.paths.source.css,
'**',
'*.css' // prevent preprocessors from reloading
)
),
];

// allow for overrides should they exist inside patternlab-config.json
const liveServerConfig = Object.assign(
Expand Down
1 change: 1 addition & 0 deletions packages/core/test/util/patternlab-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
},
"styleGuideExcludes": ["templates", "pages"],
"defaultPattern": "all",
"defaultPatternInfoPanelCode": "mustache",
"logLevel": "quiet",
"ishControlsHide": {
"s": false,
Expand Down
8 changes: 0 additions & 8 deletions packages/create/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [5.9.1](https://github.com/pattern-lab/patternlab-node/compare/v5.9.0...v5.9.1) (2020-04-24)

**Note:** Version bump only for package create-pattern-lab





# [5.9.0](https://github.com/pattern-lab/patternlab-node/compare/v5.8.0...v5.9.0) (2020-04-24)

**Note:** Version bump only for package create-pattern-lab
Expand Down
4 changes: 2 additions & 2 deletions packages/create/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "create-pattern-lab",
"version": "5.9.1",
"version": "5.9.0",
"description": "",
"bin": "index.js",
"main": "index.js",
"scripts": {},
"dependencies": {
"@pattern-lab/cli": "^5.9.1"
"@pattern-lab/cli": "^5.9.0"
},
"author": "",
"license": "MIT",
Expand Down
16 changes: 0 additions & 16 deletions packages/development-edition-engine-handlebars/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,6 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [5.9.2](https://github.com/pattern-lab/patternlab-node/compare/v5.9.1...v5.9.2) (2020-04-24)

**Note:** Version bump only for package @pattern-lab/development-edition-engine-handlebars





## [5.9.1](https://github.com/pattern-lab/patternlab-node/compare/v5.9.0...v5.9.1) (2020-04-24)

**Note:** Version bump only for package @pattern-lab/development-edition-engine-handlebars





# [5.9.0](https://github.com/pattern-lab/patternlab-node/compare/v5.8.0...v5.9.0) (2020-04-24)

**Note:** Version bump only for package @pattern-lab/development-edition-engine-handlebars
Expand Down
6 changes: 3 additions & 3 deletions packages/development-edition-engine-handlebars/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@pattern-lab/development-edition-engine-handlebars",
"private": true,
"version": "5.9.2",
"version": "5.9.0",
"description": "The tree of components we use to test, develop and validate the Handlebars engine",
"scripts": {
"pl:build": "patternlab build --config ./patternlab-config.json",
Expand All @@ -28,12 +28,12 @@
"node": ">=12.12.0"
},
"dependencies": {
"@pattern-lab/cli": "^5.9.1",
"@pattern-lab/cli": "^5.9.0",
"@pattern-lab/core": "^5.9.0",
"@pattern-lab/engine-handlebars": "^5.5.0",
"@pattern-lab/engine-mustache": "^5.0.0",
"@pattern-lab/plugin-tab": "^5.3.0",
"@pattern-lab/starterkit-mustache-demo": "^5.0.0",
"@pattern-lab/uikit-workshop": "^5.9.2"
"@pattern-lab/uikit-workshop": "^5.9.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"cleanPublic": true,
"defaultPattern": "all",
"defaultShowPatternInfo": false,
"defaultPatternInfoPanelCode": "hbs",
"ishControlsHide": {
"s": false,
"m": false,
Expand Down
8 changes: 0 additions & 8 deletions packages/development-edition-engine-react/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [5.9.2](https://github.com/pattern-lab/edition-node-gulp/compare/v5.9.1...v5.9.2) (2020-04-24)

**Note:** Version bump only for package @pattern-lab/engine-react-testing-tree





# [5.9.0](https://github.com/pattern-lab/edition-node-gulp/compare/v5.8.0...v5.9.0) (2020-04-24)

**Note:** Version bump only for package @pattern-lab/engine-react-testing-tree
Expand Down
4 changes: 2 additions & 2 deletions packages/development-edition-engine-react/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "@pattern-lab/engine-react-testing-tree",
"description": "The tree of components we use to test, develop and validate the React engine",
"version": "5.9.2",
"version": "5.9.0",
"private": true,
"main": "gulpfile.js",
"dependencies": {
"@pattern-lab/core": "^5.9.0",
"@pattern-lab/engine-mustache": "^5.0.0",
"@pattern-lab/engine-react": "^5.0.0",
"@pattern-lab/uikit-workshop": "^5.9.2",
"@pattern-lab/uikit-workshop": "^5.9.0",
"gulp": "3.9.1",
"minimist": "^1.2.0",
"react": "16.2.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"cleanPublic" : true,
"defaultPattern": "all",
"defaultShowPatternInfo": false,
"defaultPatternInfoPanelCode": "mustache",
"ishControlsHide": {
"s": false,
"m": false,
Expand Down
16 changes: 0 additions & 16 deletions packages/development-edition-engine-twig/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,6 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [5.9.2](https://github.com/pattern-lab/patternlab-node/compare/v5.9.1...v5.9.2) (2020-04-24)

**Note:** Version bump only for package @pattern-lab/development-edition-engine-twig





## [5.9.1](https://github.com/pattern-lab/patternlab-node/compare/v5.9.0...v5.9.1) (2020-04-24)

**Note:** Version bump only for package @pattern-lab/development-edition-engine-twig





# [5.9.0](https://github.com/pattern-lab/patternlab-node/compare/v5.8.0...v5.9.0) (2020-04-24)

**Note:** Version bump only for package @pattern-lab/development-edition-engine-twig
Expand Down
6 changes: 3 additions & 3 deletions packages/development-edition-engine-twig/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@pattern-lab/development-edition-engine-twig",
"private": true,
"version": "5.9.2",
"version": "5.9.0",
"description": "The tree of components we use to test, develop and validate the twig engine (not engine-twig-php)",
"scripts": {
"postbootstrap": "patternlab install --starterkits @pattern-lab/starterkit-twig-demo",
Expand Down Expand Up @@ -29,11 +29,11 @@
"node": ">=10.0"
},
"dependencies": {
"@pattern-lab/cli": "^5.9.1",
"@pattern-lab/cli": "^5.9.0",
"@pattern-lab/core": "^5.9.0",
"@pattern-lab/engine-twig": "^5.8.0",
"@pattern-lab/starterkit-twig-demo": "^5.8.0",
"@pattern-lab/uikit-workshop": "^5.9.2"
"@pattern-lab/uikit-workshop": "^5.9.0"
},
"workspaces": {
"nohoist": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"cleanPublic": true,
"defaultPattern": "pages-homepage",
"defaultShowPatternInfo": false,
"defaultPatternInfoPanelCode": "twig",
"ishControlsHide": {
"s": false,
"m": false,
Expand Down
8 changes: 7 additions & 1 deletion packages/docs/src/docs/advanced-config-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Sets whether or not to delete `public.patterns/` upon each build of Pattern Lab.

**default**: `true`

### defaultPattern
### defaultPatttern

Sets a specific pattern upon launch of the styleguide. This pattern will not be available in the navigation, or in view all pages. The only way to get to it will be via a refresh. Set it using the [short-hand pattern-include syntax](/docs/including-patterns/):

Expand All @@ -45,6 +45,12 @@ Sets whether or not you want the styleguide to load with the pattern info open o

**default**: `false`

### defaultPatternInfoPanelCode (optional)

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_.

**default**: _patternExtension_ value (`"hbs"` | `"mustache"` | `"twig"` | `"html"`)

### ishControlsHide

Sets whether or not to hide navigation options within the styleguide.
Expand Down
16 changes: 0 additions & 16 deletions packages/edition-node-gulp/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,6 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [5.9.2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/edition-node-gulp/compare/v5.9.1...v5.9.2) (2020-04-24)

**Note:** Version bump only for package @pattern-lab/edition-node-gulp





## [5.9.1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/edition-node-gulp/compare/v5.9.0...v5.9.1) (2020-04-24)

**Note:** Version bump only for package @pattern-lab/edition-node-gulp





# [5.9.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/edition-node-gulp/compare/v5.8.0...v5.9.0) (2020-04-24)

**Note:** Version bump only for package @pattern-lab/edition-node-gulp
Expand Down
1 change: 0 additions & 1 deletion packages/edition-node-gulp/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ function serve() {
return patternlab.server
.serve({
cleanPublic: config.cleanPublic,
watch: true,
})
.then(() => {
// do something else when this promise resolves
Expand Down
Loading