From 271dc8d5eeea53b78651333e97ad171c305a2eaa Mon Sep 17 00:00:00 2001 From: Maximilian Date: Sat, 25 Apr 2020 12:52:19 +0200 Subject: [PATCH 01/11] chore(docs): some typos missed to replace mustache initially and incorrect handlebars two times (both in package name and URL) --- packages/starterkit-handlebars-demo/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/starterkit-handlebars-demo/README.md b/packages/starterkit-handlebars-demo/README.md index 131d5b7b7..150e1498a 100644 --- a/packages/starterkit-handlebars-demo/README.md +++ b/packages/starterkit-handlebars-demo/README.md @@ -4,9 +4,9 @@ The Demo StarterKit for Handlebars is meant to be used as a demonstration of a H ## Requirements -The Base StarterKit for Mustache requires the following PatternEngine: +The Vanilla StarterKit for Handlebars requires the following PatternEngine: -- `@pattern-lab/patternengine-node-handebars`: [npm](https://www.npmjs.com/package/@pattern-lab/patternengine-node-handebars), [Github](https://github.com/pattern-lab/patternengine-node-handlebars) +- `@pattern-lab/patternengine-node-handlebars`: [npm](https://www.npmjs.com/package/@pattern-lab/patternengine-node-handlebars), [Github](https://github.com/pattern-lab/patternengine-node-handlebars) ## Install From ccdf238ebf50828d5848d5471cb431e14b3729c9 Mon Sep 17 00:00:00 2001 From: Maximilian Date: Sat, 25 Apr 2020 12:54:24 +0200 Subject: [PATCH 02/11] Revert "Merge pull request #2 from pattern-lab/dev" This reverts commit 78128780bcffee78c1bc63368b91d429500a928c, reversing changes made to 26db9797d9fb0ddf1530c938a3225ac26b0a5e61. --- packages/cli/package.json | 9 +- packages/core/src/lib/server.js | 24 -- .../docs/src/docs/advanced-config-options.md | 2 +- packages/edition-node-gulp/gulpfile.js | 1 - packages/live-server/index.js | 276 ++++++++---------- 5 files changed, 130 insertions(+), 182 deletions(-) diff --git a/packages/cli/package.json b/packages/cli/package.json index 48b8c0dd4..0da0478dc 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -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", @@ -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", @@ -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", diff --git a/packages/core/src/lib/server.js b/packages/core/src/lib/server.js index c55e2c4ab..f5101c5a4 100644 --- a/packages/core/src/lib/server.js +++ b/packages/core/src/lib/server.js @@ -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( diff --git a/packages/docs/src/docs/advanced-config-options.md b/packages/docs/src/docs/advanced-config-options.md index bc1258050..5db225d05 100644 --- a/packages/docs/src/docs/advanced-config-options.md +++ b/packages/docs/src/docs/advanced-config-options.md @@ -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](http://localhost:4000/docs/pattern-including.html): diff --git a/packages/edition-node-gulp/gulpfile.js b/packages/edition-node-gulp/gulpfile.js index 62ddc007e..e1947e4fd 100644 --- a/packages/edition-node-gulp/gulpfile.js +++ b/packages/edition-node-gulp/gulpfile.js @@ -27,7 +27,6 @@ function serve() { return patternlab.server .serve({ cleanPublic: config.cleanPublic, - watch: true, }) .then(() => { // do something else when this promise resolves diff --git a/packages/live-server/index.js b/packages/live-server/index.js index e372fac33..e8248d0a3 100644 --- a/packages/live-server/index.js +++ b/packages/live-server/index.js @@ -1,26 +1,25 @@ #!/usr/bin/env node -const fs = require('fs'); -const connect = require('connect'); -const serveIndex = require('serve-index'); -const logger = require('morgan'); -const WebSocket = require('faye-websocket'); -const path = require('path'); -const url = require('url'); -const http = require('http'); -const send = require('send'); -const open = require('opn'); -const es = require('event-stream'); -const os = require('os'); -const chokidar = require('chokidar'); - +var fs = require('fs'), + connect = require('connect'), + serveIndex = require('serve-index'), + logger = require('morgan'), + WebSocket = require('faye-websocket'), + path = require('path'), + url = require('url'), + http = require('http'), + send = require('send'), + open = require('opn'), + es = require('event-stream'), + os = require('os'), + chokidar = require('chokidar'); require('colors'); -const INJECTED_CODE = fs.readFileSync( +var INJECTED_CODE = fs.readFileSync( path.join(__dirname, 'injected.html'), 'utf8' ); -const LiveServer = { +var LiveServer = { server: null, watcher: null, logLevel: 2, @@ -36,7 +35,7 @@ function escape(html) { // Based on connect.static(), but streamlined and with added code injecter function staticServer(root) { - let isFile = false; + var isFile = false; try { // For supporting mounting files instead of just directories isFile = fs.statSync(root).isFile(); @@ -45,49 +44,38 @@ function staticServer(root) { } return function(req, res, next) { if (req.method !== 'GET' && req.method !== 'HEAD') return next(); - - const reqpath = isFile ? '' : url.parse(req.url).pathname; - const hasNoOrigin = !req.headers.origin; - const injectCandidates = [ + var reqpath = isFile ? '' : url.parse(req.url).pathname; + var hasNoOrigin = !req.headers.origin; + var injectCandidates = [ new RegExp('', 'i'), new RegExp('', 'g'), new RegExp('', 'i'), ]; - - let injectTag = null; - let injectCount = 0; + var injectTag = null; + var injectCount = 0; function directory() { - const pathname = url.parse(req.originalUrl).pathname; + var pathname = url.parse(req.originalUrl).pathname; res.statusCode = 301; res.setHeader('Location', pathname + '/'); res.end('Redirecting to ' + escape(pathname) + '/'); } function file(filepath /*, stat*/) { - const x = path.extname(filepath).toLocaleLowerCase(); - const possibleExtensions = [ - '', - '.html', - '.htm', - '.xhtml', - '.php', - '.svg', - ]; - - let matches; + var x = path.extname(filepath).toLocaleLowerCase(), + matches, + possibleExtensions = ['', '.html', '.htm', '.xhtml', '.php', '.svg']; if (hasNoOrigin && possibleExtensions.indexOf(x) > -1) { // TODO: Sync file read here is not nice, but we need to determine if the html should be injected or not - const contents = fs.readFileSync(filepath, 'utf8'); - for (let i = 0; i < injectCandidates.length; ++i) { + var contents = fs.readFileSync(filepath, 'utf8'); + for (var i = 0; i < injectCandidates.length; ++i) { matches = contents.match(injectCandidates[i]); - injectCount = (matches && matches.length) || 0; + injectCount = matches && matches.length || 0; if (injectCount) { injectTag = matches[0]; break; } } - if (injectTag === null && LiveServer.logLevel >= 3) { console.warn( 'Failed to inject refresh script!'.yellow, @@ -102,17 +90,15 @@ function staticServer(root) { function error(err) { if (err.status === 404) return next(); - return next(err); + next(err); } function inject(stream) { if (injectTag) { // We need to modify the length given to browser - const len = - INJECTED_CODE.length * injectCount + res.getHeader('Content-Length'); + var len = INJECTED_CODE.length * injectCount + res.getHeader('Content-Length'); res.setHeader('Content-Length', len); - - const originalPipe = stream.pipe; + var originalPipe = stream.pipe; stream.pipe = function(resp) { originalPipe .call( @@ -124,7 +110,7 @@ function staticServer(root) { } } - return send(req, reqpath, { root: root }) + send(req, reqpath, { root: root }) .on('error', error) .on('directory', directory) .on('file', file) @@ -166,44 +152,41 @@ function entryPoint(staticHandler, file) { * @param wait {number} Server will wait for all changes, before reloading * @param htpasswd {string} Path to htpasswd file to enable HTTP Basic authentication * @param middleware {array} Append middleware to stack, e.g. [function(req, res, next) { next(); }]. - * @param assets {String[]} path of asset directories to watch */ LiveServer.start = function(options) { - const host = options.host || '0.0.0.0'; - const port = options.port !== undefined ? options.port : 8080; // 0 means random - const root = options.root || process.cwd(); - const mount = options.mount || []; - const watchPaths = options.watch || [root, ...options.assets]; + options = options || {}; + var host = options.host || '0.0.0.0'; + var port = options.port !== undefined ? options.port : 8080; // 0 means random + var root = options.root || process.cwd(); + var mount = options.mount || []; + var watchPaths = options.watch || [root]; LiveServer.logLevel = options.logLevel === undefined ? 2 : options.logLevel; - - let openPath = + var openPath = options.open === undefined || options.open === true ? '' - : options.open === null || options.open === false - ? null - : options.open; + : options.open === null || options.open === false ? null : options.open; if (options.noBrowser) openPath = null; // Backwards compatibility with 0.7.0 - - const file = options.file; - const staticServerHandler = staticServer(root); - const wait = options.wait === undefined ? 100 : options.wait; - const browser = options.browser || null; - const htpasswd = options.htpasswd || null; - const cors = options.cors || false; - const https = options.https || null; - const proxy = options.proxy || []; - const middleware = options.middleware || []; - const noCssInject = options.noCssInject; - let httpsModule = options.httpsModule; + var file = options.file; + var staticServerHandler = staticServer(root); + var wait = options.wait === undefined ? 100 : options.wait; + var browser = options.browser || null; + var htpasswd = options.htpasswd || null; + var cors = options.cors || false; + var https = options.https || null; + var proxy = options.proxy || []; + var middleware = options.middleware || []; + var noCssInject = options.noCssInject; + var httpsModule = options.httpsModule; if (httpsModule) { try { require.resolve(httpsModule); } catch (e) { console.error( - `HTTPS module "${httpsModule}" you've provided was not found.`.red + ('HTTPS module "' + httpsModule + '" you\'ve provided was not found.') + .red ); - console.error('Did you do', `"npm install ${httpsModule}"?`); + console.error('Did you do', '"npm install ' + httpsModule + '"?'); return; } } else { @@ -211,7 +194,7 @@ LiveServer.start = function(options) { } // Setup a web server - const app = connect(); + var app = connect(); // Add logger. Level 2 logs only errors if (LiveServer.logLevel === 2) { @@ -226,34 +209,31 @@ LiveServer.start = function(options) { } else if (LiveServer.logLevel > 2) { app.use(logger('dev')); } - if (options.spa) { middleware.push('spa'); } - // Add middleware - middleware.map(mw => { - let mwm = mw; + middleware.map(function(mw) { if (typeof mw === 'string') { - if (path.extname(mw).toLocaleLowerCase() !== '.js') { - mwm = require(path.join(__dirname, 'middleware', mw + '.js')); + var ext = path.extname(mw).toLocaleLowerCase(); + if (ext !== '.js') { + mw = require(path.join(__dirname, 'middleware', mw + '.js')); } else { - mwm = require(mw); + mw = require(mw); } } - app.use(mwm); + app.use(mw); }); // Use http-auth if configured if (htpasswd !== null) { - const auth = require('http-auth'); - const basic = auth.basic({ + var auth = require('http-auth'); + var basic = auth.basic({ realm: 'Please authorize', file: htpasswd, }); app.use(auth.connect(basic)); } - if (cors) { app.use( require('cors')({ @@ -262,43 +242,34 @@ LiveServer.start = function(options) { }) ); } - - mount.forEach(mountRule => { - const mountPath = path.resolve(process.cwd(), mountRule[1]); - if (!options.watch) { + mount.forEach(function(mountRule) { + var mountPath = path.resolve(process.cwd(), mountRule[1]); + if (!options.watch) // Auto add mount paths to wathing but only if exclusive path option is not given watchPaths.push(mountPath); - } - app.use(mountRule[0], staticServer(mountPath)); - if (LiveServer.logLevel >= 1) { + if (LiveServer.logLevel >= 1) console.log('Mapping %s to "%s"', mountRule[0], mountPath); - } }); - - proxy.forEach(proxyRule => { - const proxyOpts = url.parse(proxyRule[1]); + proxy.forEach(function(proxyRule) { + var proxyOpts = url.parse(proxyRule[1]); proxyOpts.via = true; proxyOpts.preserveHost = true; app.use(proxyRule[0], require('proxy-middleware')(proxyOpts)); - - if (LiveServer.logLevel >= 1) { + if (LiveServer.logLevel >= 1) console.log('Mapping %s to "%s"', proxyRule[0], proxyRule[1]); - } }); - app .use(staticServerHandler) // Custom static server .use(entryPoint(staticServerHandler, file)) .use(serveIndex(root, { icons: true })); - let server, protocol; + var server, protocol; if (https !== null) { - let httpsConfig = https; + var httpsConfig = https; if (typeof https === 'string') { httpsConfig = require(path.resolve(process.cwd(), https)); } - server = require(httpsModule).createServer(httpsConfig, app); protocol = 'https'; } else { @@ -309,9 +280,10 @@ LiveServer.start = function(options) { // Handle server startup errors server.addListener('error', function(e) { if (e.code === 'EADDRINUSE') { + var serveURL = protocol + '://' + host + ':' + port; console.log( '%s is already in use. Trying another port.'.yellow, - `${protocol}://${host}:${port}` + serveURL ); setTimeout(function() { server.listen(0, host); @@ -326,27 +298,35 @@ LiveServer.start = function(options) { server.addListener('listening', function(/*e*/) { LiveServer.server = server; - const address = server.address(); - const serveHost = + var address = server.address(); + var serveHost = address.address === '0.0.0.0' ? '127.0.0.1' : address.address; - const openHost = host === '0.0.0.0' ? '127.0.0.1' : host; + var openHost = host === '0.0.0.0' ? '127.0.0.1' : host; - const serveURL = `${protocol}://${serveHost}:${address.port}`; - const openURL = `${protocol}://${openHost}:${address.port}`; + var serveURL = protocol + '://' + serveHost + ':' + address.port; + var openURL = protocol + '://' + openHost + ':' + address.port; - let serveURLs = [serveURL]; + var serveURLs = [serveURL]; if (LiveServer.logLevel > 2 && address.address === '0.0.0.0') { - const ifaces = os.networkInterfaces(); + var ifaces = os.networkInterfaces(); serveURLs = Object.keys(ifaces) - .map(iface => ifaces[iface]) + .map(function(iface) { + return ifaces[iface]; + }) // flatten address data, use only IPv4 - .reduce((data, addresses) => { + .reduce(function(data, addresses) { addresses - .filter(addr => addr.family === 'IPv4') - .forEach(addr => data.push(addr)); + .filter(function(addr) { + return addr.family === 'IPv4'; + }) + .forEach(function(addr) { + data.push(addr); + }); return data; }, []) - .map(addr => `${protocol}://${addr.address}:${address.port}`); + .map(function(addr) { + return protocol + '://' + addr.address + ':' + address.port; + }); } // Output @@ -368,7 +348,9 @@ LiveServer.start = function(options) { // Launch browser if (openPath !== null) if (typeof openPath === 'object') { - openPath.forEach(p => open(openURL + p, { app: browser })); + openPath.forEach(function(p) { + open(openURL + p, { app: browser }); + }); } else { open(openURL + openPath, { app: browser }); } @@ -378,19 +360,19 @@ LiveServer.start = function(options) { server.listen(port, host); // WebSocket - let clients = []; + var clients = []; server.addListener('upgrade', function(request, socket, head) { - const ws = new WebSocket(request, socket, head); + var ws = new WebSocket(request, socket, head); ws.onopen = function() { ws.send('connected'); }; if (wait > 0) { (function() { - const wssend = ws.send; - let waitTimeout; + var wssend = ws.send; + var waitTimeout; ws.send = function() { - const args = arguments; + var args = arguments; if (waitTimeout) clearTimeout(waitTimeout); waitTimeout = setTimeout(function() { wssend.apply(ws, args); @@ -400,13 +382,15 @@ LiveServer.start = function(options) { } ws.onclose = function() { - clients = clients.filter(x => x !== ws); + clients = clients.filter(function(x) { + return x !== ws; + }); }; clients.push(ws); }); - let ignored = [ + var ignored = [ function(testPath) { // Always ignore dotfiles (important e.g. because editor hidden temp files) return ( @@ -414,39 +398,27 @@ LiveServer.start = function(options) { ); }, ]; - if (options.ignore) { ignored = ignored.concat(options.ignore); } - if (options.ignorePattern) { ignored.push(options.ignorePattern); } - // Setup file watcher - LiveServer.watcher = chokidar.watch( - // Replace backslashes with slashes, because chokidar pattern - // like path/**/*.xyz only acceps linux file path - watchPaths.map(p => p.replace(/\\/g, '/')), - { - ignored: ignored, - ignoreInitial: true, - awaitWriteFinish: true, - } - ); - + LiveServer.watcher = chokidar.watch(watchPaths, { + ignored: ignored, + ignoreInitial: true, + }); function handleChange(changePath) { - const cssChange = path.extname(changePath) === '.css' && !noCssInject; + var cssChange = path.extname(changePath) === '.css' && !noCssInject; if (LiveServer.logLevel >= 1) { if (cssChange) console.log('CSS change detected'.magenta, changePath); else console.log('Change detected'.cyan, changePath); } - - clients.forEach(ws => { + clients.forEach(function(ws) { if (ws) ws.send(cssChange ? 'refreshcss' : 'reload'); }); } - LiveServer.watcher .on('change', handleChange) .on('add', handleChange) @@ -462,28 +434,34 @@ LiveServer.start = function(options) { LiveServer.refreshCSS = function() { if (clients.length) { - clients.forEach(ws => { - if (ws) ws.send('refreshcss'); + clients.forEach(function(ws) { + if (ws) { + ws.send('refreshcss'); + } }); } }; LiveServer.reload = function() { if (clients.length) { - clients.forEach(ws => { - if (ws) ws.send('reload'); + clients.forEach(function(ws) { + if (ws) { + ws.send('reload'); + } }); } }; + + return server; }; LiveServer.shutdown = function() { - if (LiveServer.watcher) { - LiveServer.watcher.close(); - } - if (LiveServer.server) { - LiveServer.server.close(); + var watcher = LiveServer.watcher; + if (watcher) { + watcher.close(); } + var server = LiveServer.server; + if (server) server.close(); }; module.exports = LiveServer; From 4c2070f5d6516e8063c88856e446bc9837719b77 Mon Sep 17 00:00:00 2001 From: Maximilian Date: Sat, 25 Apr 2020 12:54:28 +0200 Subject: [PATCH 03/11] Revert "Merge pull request #1 from pattern-lab/dev" This reverts commit 26db9797d9fb0ddf1530c938a3225ac26b0a5e61, reversing changes made to fc90750635eac88ece724b97ae74949ebd98aec9. --- CHANGELOG.md | 19 ------------------- lerna.json | 2 +- packages/cli/CHANGELOG.md | 11 ----------- packages/cli/bin/scaffold.js | 3 +-- packages/cli/package.json | 2 +- packages/create/CHANGELOG.md | 8 -------- packages/create/package.json | 4 ++-- .../CHANGELOG.md | 16 ---------------- .../package.json | 6 +++--- .../CHANGELOG.md | 8 -------- .../package.json | 4 ++-- .../CHANGELOG.md | 16 ---------------- .../package.json | 6 +++--- packages/edition-node-gulp/CHANGELOG.md | 16 ---------------- packages/edition-node-gulp/package.json | 6 +++--- packages/edition-node/CHANGELOG.md | 16 ---------------- packages/edition-node/package.json | 6 +++--- packages/edition-twig/CHANGELOG.md | 16 ---------------- packages/edition-twig/package.json | 6 +++--- packages/uikit-workshop/CHANGELOG.md | 8 -------- packages/uikit-workshop/package.json | 2 +- 21 files changed, 23 insertions(+), 158 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4dc791e52..1a3a0885d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/lerna.json b/lerna.json index 76d7c4fa8..609ced1d5 100644 --- a/lerna.json +++ b/lerna.json @@ -1,6 +1,6 @@ { "lerna": "3.11.0", - "version": "5.9.2", + "version": "5.9.0", "packages": [ "packages/*" ], diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index 79ee78893..0a4c09df5 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -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) diff --git a/packages/cli/bin/scaffold.js b/packages/cli/bin/scaffold.js index de1e4df73..df8aea5a5 100644 --- a/packages/cli/bin/scaffold.js +++ b/packages/cli/bin/scaffold.js @@ -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; @@ -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, }); diff --git a/packages/cli/package.json b/packages/cli/package.json index 0da0478dc..19f1990b2 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -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" }, diff --git a/packages/create/CHANGELOG.md b/packages/create/CHANGELOG.md index 70d92c558..ba6b49bb6 100644 --- a/packages/create/CHANGELOG.md +++ b/packages/create/CHANGELOG.md @@ -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 diff --git a/packages/create/package.json b/packages/create/package.json index 4802f4587..a2a1bdc6b 100644 --- a/packages/create/package.json +++ b/packages/create/package.json @@ -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", diff --git a/packages/development-edition-engine-handlebars/CHANGELOG.md b/packages/development-edition-engine-handlebars/CHANGELOG.md index b421488d5..4b3bf266a 100644 --- a/packages/development-edition-engine-handlebars/CHANGELOG.md +++ b/packages/development-edition-engine-handlebars/CHANGELOG.md @@ -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 diff --git a/packages/development-edition-engine-handlebars/package.json b/packages/development-edition-engine-handlebars/package.json index 1bbb24a42..6965aea6e 100644 --- a/packages/development-edition-engine-handlebars/package.json +++ b/packages/development-edition-engine-handlebars/package.json @@ -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", @@ -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" } } diff --git a/packages/development-edition-engine-react/CHANGELOG.md b/packages/development-edition-engine-react/CHANGELOG.md index 991515334..7ad9b6337 100644 --- a/packages/development-edition-engine-react/CHANGELOG.md +++ b/packages/development-edition-engine-react/CHANGELOG.md @@ -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 diff --git a/packages/development-edition-engine-react/package.json b/packages/development-edition-engine-react/package.json index c2b07bb17..bcce92d74 100644 --- a/packages/development-edition-engine-react/package.json +++ b/packages/development-edition-engine-react/package.json @@ -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" diff --git a/packages/development-edition-engine-twig/CHANGELOG.md b/packages/development-edition-engine-twig/CHANGELOG.md index d832cb6bd..9c1c6a972 100644 --- a/packages/development-edition-engine-twig/CHANGELOG.md +++ b/packages/development-edition-engine-twig/CHANGELOG.md @@ -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 diff --git a/packages/development-edition-engine-twig/package.json b/packages/development-edition-engine-twig/package.json index 6fc0d9446..791b40371 100644 --- a/packages/development-edition-engine-twig/package.json +++ b/packages/development-edition-engine-twig/package.json @@ -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", @@ -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": [ diff --git a/packages/edition-node-gulp/CHANGELOG.md b/packages/edition-node-gulp/CHANGELOG.md index 8e60957cb..2943e802a 100644 --- a/packages/edition-node-gulp/CHANGELOG.md +++ b/packages/edition-node-gulp/CHANGELOG.md @@ -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 diff --git a/packages/edition-node-gulp/package.json b/packages/edition-node-gulp/package.json index 564dc56a4..026cd5604 100644 --- a/packages/edition-node-gulp/package.json +++ b/packages/edition-node-gulp/package.json @@ -1,13 +1,13 @@ { "name": "@pattern-lab/edition-node-gulp", "description": "The gulp wrapper around patternlab-node core, providing tasks to interact with the core library and move supporting frontend assets.", - "version": "5.9.2", + "version": "5.9.0", "main": "gulpfile.js", "dependencies": { - "@pattern-lab/cli": "^5.9.1", + "@pattern-lab/cli": "^5.9.0", "@pattern-lab/core": "^5.9.0", "@pattern-lab/engine-mustache": "^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" }, diff --git a/packages/edition-node/CHANGELOG.md b/packages/edition-node/CHANGELOG.md index 71524dabe..59d7d2c13 100644 --- a/packages/edition-node/CHANGELOG.md +++ b/packages/edition-node/CHANGELOG.md @@ -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/compare/v5.9.1...v5.9.2) (2020-04-24) - -**Note:** Version bump only for package @pattern-lab/edition-node - - - - - -## [5.9.1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/edition-node/compare/v5.9.0...v5.9.1) (2020-04-24) - -**Note:** Version bump only for package @pattern-lab/edition-node - - - - - # [5.9.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/edition-node/compare/v5.8.0...v5.9.0) (2020-04-24) **Note:** Version bump only for package @pattern-lab/edition-node diff --git a/packages/edition-node/package.json b/packages/edition-node/package.json index e15bf3ec2..243f47059 100644 --- a/packages/edition-node/package.json +++ b/packages/edition-node/package.json @@ -1,13 +1,13 @@ { "name": "@pattern-lab/edition-node", "description": "A pure wrapper around patternlab-node core, the default pattern engine, and supporting frontend assets.", - "version": "5.9.2", + "version": "5.9.0", "main": "patternlab-config.json", "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/uikit-workshop": "^5.9.2" + "@pattern-lab/uikit-workshop": "^5.9.0" }, "keywords": [ "Pattern Lab", diff --git a/packages/edition-twig/CHANGELOG.md b/packages/edition-twig/CHANGELOG.md index 8b8b5d8ec..d96db7e71 100644 --- a/packages/edition-twig/CHANGELOG.md +++ b/packages/edition-twig/CHANGELOG.md @@ -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/edition-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/edition-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/edition-twig diff --git a/packages/edition-twig/package.json b/packages/edition-twig/package.json index 2532efb4f..79843d3f5 100644 --- a/packages/edition-twig/package.json +++ b/packages/edition-twig/package.json @@ -1,6 +1,6 @@ { "name": "@pattern-lab/edition-twig", - "version": "5.9.2", + "version": "5.9.0", "description": "Pattern Lab node with Twig PHP Engine", "author": { "name": "Evan Lovely", @@ -23,10 +23,10 @@ "dev": "node ./node_modules/@pattern-lab/uikit-workshop/build-tools.js" }, "dependencies": { - "@pattern-lab/cli": "^5.9.1", + "@pattern-lab/cli": "^5.9.0", "@pattern-lab/core": "^5.9.0", "@pattern-lab/engine-twig-php": "^5.9.0", - "@pattern-lab/uikit-workshop": "^5.9.2" + "@pattern-lab/uikit-workshop": "^5.9.0" }, "engines": { "node": ">=6.0" diff --git a/packages/uikit-workshop/CHANGELOG.md b/packages/uikit-workshop/CHANGELOG.md index 13cfe128a..28e23d66b 100644 --- a/packages/uikit-workshop/CHANGELOG.md +++ b/packages/uikit-workshop/CHANGELOG.md @@ -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/patternlab-node/tree/master/packages/uikit-workshop/compare/v5.9.1...v5.9.2) (2020-04-24) - -**Note:** Version bump only for package @pattern-lab/uikit-workshop - - - - - # [5.9.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/uikit-workshop/compare/v5.8.0...v5.9.0) (2020-04-24) **Note:** Version bump only for package @pattern-lab/uikit-workshop diff --git a/packages/uikit-workshop/package.json b/packages/uikit-workshop/package.json index 62faba4f8..b2a10bca4 100644 --- a/packages/uikit-workshop/package.json +++ b/packages/uikit-workshop/package.json @@ -1,6 +1,6 @@ { "name": "@pattern-lab/uikit-workshop", - "version": "5.9.2", + "version": "5.9.0", "description": "Front-end assets and templates for the default Pattern Lab workshop view", "main": "gulpfile.js", "scripts": { From 117ca221e908fa88b7982f879b4c5be9f9ed283e Mon Sep 17 00:00:00 2001 From: Maximilian Date: Sat, 25 Apr 2020 12:55:49 +0200 Subject: [PATCH 04/11] Revert "chore(docs): some typos" This reverts commit 271dc8d5eeea53b78651333e97ad171c305a2eaa. --- packages/starterkit-handlebars-demo/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/starterkit-handlebars-demo/README.md b/packages/starterkit-handlebars-demo/README.md index 150e1498a..131d5b7b7 100644 --- a/packages/starterkit-handlebars-demo/README.md +++ b/packages/starterkit-handlebars-demo/README.md @@ -4,9 +4,9 @@ The Demo StarterKit for Handlebars is meant to be used as a demonstration of a H ## Requirements -The Vanilla StarterKit for Handlebars requires the following PatternEngine: +The Base StarterKit for Mustache requires the following PatternEngine: -- `@pattern-lab/patternengine-node-handlebars`: [npm](https://www.npmjs.com/package/@pattern-lab/patternengine-node-handlebars), [Github](https://github.com/pattern-lab/patternengine-node-handlebars) +- `@pattern-lab/patternengine-node-handebars`: [npm](https://www.npmjs.com/package/@pattern-lab/patternengine-node-handebars), [Github](https://github.com/pattern-lab/patternengine-node-handlebars) ## Install From fe92f4bdb5e01f903e8445aaf67dd222d9d99a69 Mon Sep 17 00:00:00 2001 From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> Date: Tue, 30 Nov 2021 11:34:19 +0100 Subject: [PATCH 05/11] chore: formatting --- packages/engine-twig-php/CHANGELOG.md | 186 ++++++++++---------- packages/live-server/CHANGELOG.md | 202 +++++++++++----------- packages/plugin-tab/CHANGELOG.md | 240 +++++++++++++------------- 3 files changed, 314 insertions(+), 314 deletions(-) diff --git a/packages/engine-twig-php/CHANGELOG.md b/packages/engine-twig-php/CHANGELOG.md index 302785e1f..cc3fe068c 100644 --- a/packages/engine-twig-php/CHANGELOG.md +++ b/packages/engine-twig-php/CHANGELOG.md @@ -181,97 +181,97 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline - -# [5.5.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/v5.4.2...v5.5.0) (2019-12-19) - - -### Features - -* upgrade Twig to use new filter, map, reduce ([4218a5a](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/commit/4218a5a04b06027548afd9f417486297dd25fef8)) - - - - - -# [5.4.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/v5.3.3...v5.4.0) (2019-11-26) - -**Note:** Version bump only for package @pattern-lab/engine-twig-php - - - - - -# [5.3.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/v5.2.0...v5.3.0) (2019-11-13) - -**Note:** Version bump only for package @pattern-lab/engine-twig-php - - - - - -# [5.2.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/v5.1.0...v5.2.0) (2019-11-12) - - -### Bug Fixes - -* **engine_twig_php:** Allow additional flexibility with twig namespaces. ([07bfaa3](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/commit/07bfaa35a00ff62fd2016cc9f34e09cf5af36559)) - - - - - - -# [5.1.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/v5.0.2...v5.1.0) (2019-10-29) - -**Note:** Version bump only for package @pattern-lab/engine-twig-php - - - - - -# [5.0.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/v3.0.0-beta.3...v5.0.0) (2019-10-25) - - -### Bug Fixes - -* **engine_twig_php:** Pseudo patterns Twig PHP ([226aa8b](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/commit/226aa8bbaaf5e418530ccf54a28f6c5657ee6dea)), closes [#1045](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/issues/1045) -* **engine_twig_php:** Twig incremental rebuilds ([5d33f24](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/commit/5d33f24f156ebe50900701513a855de7de608dcf)), closes [#1015](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/issues/1015) -* **engine_twig_php:** Twig incremental rebuilds ([1ade945](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/commit/1ade9451840b2645706a0b01129e2b697dc22d4b)), closes [#1015](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/issues/1015) - - - - - - -## [3.0.5](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/@pattern-lab/engine-twig-php@3.0.4...@pattern-lab/engine-twig-php@3.0.5) (2019-10-14) - - -### Bug Fixes - -* **engine_twig_php:** Pseudo patterns Twig PHP ([226aa8b](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/commit/226aa8bbaaf5e418530ccf54a28f6c5657ee6dea)), closes [#1045](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/issues/1045) -* **engine_twig_php:** Twig incremental rebuilds ([5d33f24](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/commit/5d33f24f156ebe50900701513a855de7de608dcf)), closes [#1015](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/issues/1015) -* **engine_twig_php:** Twig incremental rebuilds ([1ade945](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/commit/1ade9451840b2645706a0b01129e2b697dc22d4b)), closes [#1015](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/issues/1015) - - - - - - -## [3.0.2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/@pattern-lab/engine-twig-php@3.0.1...@pattern-lab/engine-twig-php@3.0.2) (2019-08-23) - -**Note:** Version bump only for package @pattern-lab/engine-twig-php - - - - - - -## [3.0.1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/@pattern-lab/engine-twig-php@3.0.0...@pattern-lab/engine-twig-php@3.0.1) (2019-05-16) - -**Note:** Version bump only for package @pattern-lab/engine-twig-php - - - - - + +# [5.5.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/v5.4.2...v5.5.0) (2019-12-19) + + +### Features + +* upgrade Twig to use new filter, map, reduce ([4218a5a](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/commit/4218a5a04b06027548afd9f417486297dd25fef8)) + + + + + +# [5.4.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/v5.3.3...v5.4.0) (2019-11-26) + +**Note:** Version bump only for package @pattern-lab/engine-twig-php + + + + + +# [5.3.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/v5.2.0...v5.3.0) (2019-11-13) + +**Note:** Version bump only for package @pattern-lab/engine-twig-php + + + + + +# [5.2.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/v5.1.0...v5.2.0) (2019-11-12) + + +### Bug Fixes + +* **engine_twig_php:** Allow additional flexibility with twig namespaces. ([07bfaa3](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/commit/07bfaa35a00ff62fd2016cc9f34e09cf5af36559)) + + + + + + +# [5.1.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/v5.0.2...v5.1.0) (2019-10-29) + +**Note:** Version bump only for package @pattern-lab/engine-twig-php + + + + + +# [5.0.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/v3.0.0-beta.3...v5.0.0) (2019-10-25) + + +### Bug Fixes + +* **engine_twig_php:** Pseudo patterns Twig PHP ([226aa8b](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/commit/226aa8bbaaf5e418530ccf54a28f6c5657ee6dea)), closes [#1045](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/issues/1045) +* **engine_twig_php:** Twig incremental rebuilds ([5d33f24](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/commit/5d33f24f156ebe50900701513a855de7de608dcf)), closes [#1015](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/issues/1015) +* **engine_twig_php:** Twig incremental rebuilds ([1ade945](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/commit/1ade9451840b2645706a0b01129e2b697dc22d4b)), closes [#1015](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/issues/1015) + + + + + + +## [3.0.5](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/@pattern-lab/engine-twig-php@3.0.4...@pattern-lab/engine-twig-php@3.0.5) (2019-10-14) + + +### Bug Fixes + +* **engine_twig_php:** Pseudo patterns Twig PHP ([226aa8b](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/commit/226aa8bbaaf5e418530ccf54a28f6c5657ee6dea)), closes [#1045](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/issues/1045) +* **engine_twig_php:** Twig incremental rebuilds ([5d33f24](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/commit/5d33f24f156ebe50900701513a855de7de608dcf)), closes [#1015](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/issues/1015) +* **engine_twig_php:** Twig incremental rebuilds ([1ade945](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/commit/1ade9451840b2645706a0b01129e2b697dc22d4b)), closes [#1015](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/issues/1015) + + + + + + +## [3.0.2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/@pattern-lab/engine-twig-php@3.0.1...@pattern-lab/engine-twig-php@3.0.2) (2019-08-23) + +**Note:** Version bump only for package @pattern-lab/engine-twig-php + + + + + + +## [3.0.1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/@pattern-lab/engine-twig-php@3.0.0...@pattern-lab/engine-twig-php@3.0.1) (2019-05-16) + +**Note:** Version bump only for package @pattern-lab/engine-twig-php + + + + + # Change Log diff --git a/packages/live-server/CHANGELOG.md b/packages/live-server/CHANGELOG.md index 0e1b3d18b..d3a5dc577 100644 --- a/packages/live-server/CHANGELOG.md +++ b/packages/live-server/CHANGELOG.md @@ -70,105 +70,105 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline - -# [5.0.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/v3.0.0-beta.3...v5.0.0) (2019-10-25) - -**Note:** Version bump only for package @pattern-lab/live-server - - - - - - -## [1.3.3](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-beta.1...@pattern-lab/live-server@1.3.3) (2019-05-16) - -**Note:** Version bump only for package @pattern-lab/live-server - - - - - -## [1.3.3-beta.1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-beta.0...@pattern-lab/live-server@1.3.3-beta.1) (2019-02-09) - -**Note:** Version bump only for package @pattern-lab/live-server - - - - - - -## [1.3.3-beta.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-alpha.6...@pattern-lab/live-server@1.3.3-beta.0) (2018-09-07) - -**Note:** Version bump only for package @pattern-lab/live-server - - - - - - - -## [1.3.3-alpha.6](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-alpha.5...@pattern-lab/live-server@1.3.3-alpha.6) (2018-07-06) - -### Bug Fixes - -* **dependencies:** pin all packages marked as latest ([87347d5](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/87347d5)) - - - -## [1.3.3-alpha.5](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-alpha.4...@pattern-lab/live-server@1.3.3-alpha.5) (2018-07-06) - -### Features - -* **package:** add npmrc file ([55f5bc2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/55f5bc2)) -* **package:** pin all dependencies ([415698e](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/415698e)) -* **package:** remove package-lock.json files ([5ab3995](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/5ab3995)) - - - -## [1.3.3-alpha.4](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-alpha.3...@pattern-lab/live-server@1.3.3-alpha.4) (2018-07-05) - -### Features - -* **tests:** use lerna run test at the monorepo level ([38a01b1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/38a01b1)) - - - -## [1.3.3-alpha.3](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-alpha.2...@pattern-lab/live-server@1.3.3-alpha.3) (2018-05-04) - -**Note:** Version bump only for package @pattern-lab/live-server - - - -## [1.3.3-alpha.2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-alpha.1...@pattern-lab/live-server@1.3.3-alpha.2) (2018-03-21) - -### Bug Fixes - -* **lint:** run code through prettier ([ca52fde](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/ca52fde)), closes [#825](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/issues/825) -* **package:** remove files obsoleted by monorepo ([9abb8ac](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/9abb8ac)) -* **package:** update LICENSE ([337aa32](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/337aa32)) -* **README:** update content for consistency ([4edf0d4](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/4edf0d4)), closes [#815](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/issues/815) - -### Features - -* **package:** standardize and hoist common devDependencies ([7f4ce6f](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/7f4ce6f)) - - - -## [1.3.3-alpha.1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-alpha.0...@pattern-lab/live-server@1.3.3-alpha.1) (2018-03-05) - -### Bug Fixes - -* **config:** Add npm registry to lerna config ([1473cd5](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/1473cd5)) - - - -## 1.3.3-alpha.0 (2018-03-02) - -### Bug Fixes - -* **packages:** Allow scoped publishing ([58beeb6](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/58beeb6)) -* **prettier:** Attempt to ignore package files ([e6c08bf](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/e6c08bf)) - -### Features - + +# [5.0.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/v3.0.0-beta.3...v5.0.0) (2019-10-25) + +**Note:** Version bump only for package @pattern-lab/live-server + + + + + + +## [1.3.3](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-beta.1...@pattern-lab/live-server@1.3.3) (2019-05-16) + +**Note:** Version bump only for package @pattern-lab/live-server + + + + + +## [1.3.3-beta.1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-beta.0...@pattern-lab/live-server@1.3.3-beta.1) (2019-02-09) + +**Note:** Version bump only for package @pattern-lab/live-server + + + + + + +## [1.3.3-beta.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-alpha.6...@pattern-lab/live-server@1.3.3-beta.0) (2018-09-07) + +**Note:** Version bump only for package @pattern-lab/live-server + + + + + + + +## [1.3.3-alpha.6](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-alpha.5...@pattern-lab/live-server@1.3.3-alpha.6) (2018-07-06) + +### Bug Fixes + +* **dependencies:** pin all packages marked as latest ([87347d5](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/87347d5)) + + + +## [1.3.3-alpha.5](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-alpha.4...@pattern-lab/live-server@1.3.3-alpha.5) (2018-07-06) + +### Features + +* **package:** add npmrc file ([55f5bc2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/55f5bc2)) +* **package:** pin all dependencies ([415698e](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/415698e)) +* **package:** remove package-lock.json files ([5ab3995](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/5ab3995)) + + + +## [1.3.3-alpha.4](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-alpha.3...@pattern-lab/live-server@1.3.3-alpha.4) (2018-07-05) + +### Features + +* **tests:** use lerna run test at the monorepo level ([38a01b1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/38a01b1)) + + + +## [1.3.3-alpha.3](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-alpha.2...@pattern-lab/live-server@1.3.3-alpha.3) (2018-05-04) + +**Note:** Version bump only for package @pattern-lab/live-server + + + +## [1.3.3-alpha.2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-alpha.1...@pattern-lab/live-server@1.3.3-alpha.2) (2018-03-21) + +### Bug Fixes + +* **lint:** run code through prettier ([ca52fde](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/ca52fde)), closes [#825](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/issues/825) +* **package:** remove files obsoleted by monorepo ([9abb8ac](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/9abb8ac)) +* **package:** update LICENSE ([337aa32](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/337aa32)) +* **README:** update content for consistency ([4edf0d4](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/4edf0d4)), closes [#815](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/issues/815) + +### Features + +* **package:** standardize and hoist common devDependencies ([7f4ce6f](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/7f4ce6f)) + + + +## [1.3.3-alpha.1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-alpha.0...@pattern-lab/live-server@1.3.3-alpha.1) (2018-03-05) + +### Bug Fixes + +* **config:** Add npm registry to lerna config ([1473cd5](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/1473cd5)) + + + +## 1.3.3-alpha.0 (2018-03-02) + +### Bug Fixes + +* **packages:** Allow scoped publishing ([58beeb6](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/58beeb6)) +* **prettier:** Attempt to ignore package files ([e6c08bf](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/e6c08bf)) + +### Features + * **packages:** Update all package.json repo and bug links ([5eb2c11](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/5eb2c11)) diff --git a/packages/plugin-tab/CHANGELOG.md b/packages/plugin-tab/CHANGELOG.md index 682644fdb..84987100d 100644 --- a/packages/plugin-tab/CHANGELOG.md +++ b/packages/plugin-tab/CHANGELOG.md @@ -54,124 +54,124 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline - -# [5.3.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/v5.2.0...v5.3.0) (2019-11-13) - - -### Bug Fixes - -* add PluginTab workaround for Safari ([2fa9367](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/2fa936769be65484af52f242dca2536a3382462c)) -* **plugin-tab:** defensively call addPanels ([b82bd12](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/b82bd129fdbe48de95b62d75fb7fe95cea896b7e)) - - - - - -# [5.0.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/v3.0.0-beta.3...v5.0.0) (2019-10-25) - - -### Bug Fixes - -* **plugin:** correct spelling error and function locations ([d4abd88](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/d4abd88cb017550002407241b5045a2ad1adb1dc)) -* **plugin-tab:** bump lodash from 4.17.5 to 4.17.15 in /packages/plugin-tab ([#1081](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/issues/1081)) ([3f89dda](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/3f89dda1685874e251f9777f969c0943e0080881)) -* **plugin-tab:** handle params correctly ([d248993](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/d2489939bb0db1a1d67b0e7f47dfb1838b88b0a0)) - - -### Features - -* **plugin-tab:** pivot to using hook functions ([d4b2598](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/d4b25984fc2a2646cc1876a5c635f57593c35f09)) -* **plugin-tab, core:** initial plugin hook exploration ([2f3d39a](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/2f3d39ac6b125ad4c6b872e27ee224ce2ea33a12)) - - -### BREAKING CHANGES - -* **plugin-tab:** event based listeners replaced with functions - - - - - - -## [2.0.3-beta.1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/@pattern-lab/plugin-tab@2.0.3-beta.0...@pattern-lab/plugin-tab@2.0.3-beta.1) (2019-02-09) - -**Note:** Version bump only for package @pattern-lab/plugin-tab - - - - - - -## [2.0.3-beta.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/@pattern-lab/plugin-tab@2.0.3-alpha.5...@pattern-lab/plugin-tab@2.0.3-beta.0) (2018-09-07) - - -### Bug Fixes - -* **package:** fix pathing and naming issues ([45583f8](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/45583f8)) -* **postinstall:** fix typo in name ([a1a9779](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/a1a9779)) - - -### Features - -* **package:** revamp plugin-tab ([2aa0f8f](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/2aa0f8f)) - - - - - - - -## [2.0.3-alpha.5](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/@pattern-lab/plugin-tab@2.0.3-alpha.4...@pattern-lab/plugin-tab@2.0.3-alpha.5) (2018-07-06) - -### Features - -* **package:** add npmrc file ([55f5bc2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/55f5bc2)) -* **package:** pin all dependencies ([415698e](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/415698e)) -* **package:** remove package-lock.json files ([5ab3995](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/5ab3995)) - - - -## [2.0.3-alpha.4](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/@pattern-lab/plugin-tab@2.0.3-alpha.3...@pattern-lab/plugin-tab@2.0.3-alpha.4) (2018-07-05) - -### Features - -* **tests:** use lerna run test at the monorepo level ([38a01b1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/38a01b1)) - - - -## [2.0.3-alpha.3](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/@pattern-lab/plugin-tab@2.0.3-alpha.2...@pattern-lab/plugin-tab@2.0.3-alpha.3) (2018-05-04) - -**Note:** Version bump only for package @pattern-lab/plugin-tab - - - -## [2.0.3-alpha.2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/@pattern-lab/plugin-tab@2.0.3-alpha.1...@pattern-lab/plugin-tab@2.0.3-alpha.2) (2018-03-21) - -### Bug Fixes - -* **package:** remove files obsoleted by monorepo ([9abb8ac](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/9abb8ac)) -* **package:** update LICENSE ([337aa32](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/337aa32)) -* **README:** update content for consistency ([4edf0d4](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/4edf0d4)), closes [#815](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/issues/815) - -### Features - -* **package:** standardize and hoist common devDependencies ([7f4ce6f](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/7f4ce6f)) - - - -## [2.0.3-alpha.1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/@pattern-lab/plugin-tab@2.0.3-alpha.0...@pattern-lab/plugin-tab@2.0.3-alpha.1) (2018-03-05) - -### Bug Fixes - -* **config:** Add npm registry to lerna config ([1473cd5](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/1473cd5)) - - - -## 2.0.3-alpha.0 (2018-03-02) - -### Bug Fixes - -* **packages:** Allow scoped publishing ([58beeb6](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/58beeb6)) - -### Features - + +# [5.3.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/v5.2.0...v5.3.0) (2019-11-13) + + +### Bug Fixes + +* add PluginTab workaround for Safari ([2fa9367](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/2fa936769be65484af52f242dca2536a3382462c)) +* **plugin-tab:** defensively call addPanels ([b82bd12](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/b82bd129fdbe48de95b62d75fb7fe95cea896b7e)) + + + + + +# [5.0.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/v3.0.0-beta.3...v5.0.0) (2019-10-25) + + +### Bug Fixes + +* **plugin:** correct spelling error and function locations ([d4abd88](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/d4abd88cb017550002407241b5045a2ad1adb1dc)) +* **plugin-tab:** bump lodash from 4.17.5 to 4.17.15 in /packages/plugin-tab ([#1081](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/issues/1081)) ([3f89dda](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/3f89dda1685874e251f9777f969c0943e0080881)) +* **plugin-tab:** handle params correctly ([d248993](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/d2489939bb0db1a1d67b0e7f47dfb1838b88b0a0)) + + +### Features + +* **plugin-tab:** pivot to using hook functions ([d4b2598](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/d4b25984fc2a2646cc1876a5c635f57593c35f09)) +* **plugin-tab, core:** initial plugin hook exploration ([2f3d39a](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/2f3d39ac6b125ad4c6b872e27ee224ce2ea33a12)) + + +### BREAKING CHANGES + +* **plugin-tab:** event based listeners replaced with functions + + + + + + +## [2.0.3-beta.1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/@pattern-lab/plugin-tab@2.0.3-beta.0...@pattern-lab/plugin-tab@2.0.3-beta.1) (2019-02-09) + +**Note:** Version bump only for package @pattern-lab/plugin-tab + + + + + + +## [2.0.3-beta.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/@pattern-lab/plugin-tab@2.0.3-alpha.5...@pattern-lab/plugin-tab@2.0.3-beta.0) (2018-09-07) + + +### Bug Fixes + +* **package:** fix pathing and naming issues ([45583f8](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/45583f8)) +* **postinstall:** fix typo in name ([a1a9779](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/a1a9779)) + + +### Features + +* **package:** revamp plugin-tab ([2aa0f8f](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/2aa0f8f)) + + + + + + + +## [2.0.3-alpha.5](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/@pattern-lab/plugin-tab@2.0.3-alpha.4...@pattern-lab/plugin-tab@2.0.3-alpha.5) (2018-07-06) + +### Features + +* **package:** add npmrc file ([55f5bc2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/55f5bc2)) +* **package:** pin all dependencies ([415698e](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/415698e)) +* **package:** remove package-lock.json files ([5ab3995](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/5ab3995)) + + + +## [2.0.3-alpha.4](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/@pattern-lab/plugin-tab@2.0.3-alpha.3...@pattern-lab/plugin-tab@2.0.3-alpha.4) (2018-07-05) + +### Features + +* **tests:** use lerna run test at the monorepo level ([38a01b1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/38a01b1)) + + + +## [2.0.3-alpha.3](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/@pattern-lab/plugin-tab@2.0.3-alpha.2...@pattern-lab/plugin-tab@2.0.3-alpha.3) (2018-05-04) + +**Note:** Version bump only for package @pattern-lab/plugin-tab + + + +## [2.0.3-alpha.2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/@pattern-lab/plugin-tab@2.0.3-alpha.1...@pattern-lab/plugin-tab@2.0.3-alpha.2) (2018-03-21) + +### Bug Fixes + +* **package:** remove files obsoleted by monorepo ([9abb8ac](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/9abb8ac)) +* **package:** update LICENSE ([337aa32](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/337aa32)) +* **README:** update content for consistency ([4edf0d4](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/4edf0d4)), closes [#815](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/issues/815) + +### Features + +* **package:** standardize and hoist common devDependencies ([7f4ce6f](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/7f4ce6f)) + + + +## [2.0.3-alpha.1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/@pattern-lab/plugin-tab@2.0.3-alpha.0...@pattern-lab/plugin-tab@2.0.3-alpha.1) (2018-03-05) + +### Bug Fixes + +* **config:** Add npm registry to lerna config ([1473cd5](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/1473cd5)) + + + +## 2.0.3-alpha.0 (2018-03-02) + +### Bug Fixes + +* **packages:** Allow scoped publishing ([58beeb6](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/58beeb6)) + +### Features + * **packages:** Update all package.json repo and bug links ([5eb2c11](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/5eb2c11)) From fe6d1df6d4a165d83c8fa2f19deaf37d392622b8 Mon Sep 17 00:00:00 2001 From: Maximilian <787658+mfranzke@users.noreply.github.com> Date: Tue, 23 Nov 2021 23:15:53 +0100 Subject: [PATCH 06/11] chore: code optimizations that are mentioned by the github pipeline as well --- packages/core/src/lib/compose.js | 5 ++--- packages/core/src/lib/expandPartials.js | 9 +++++---- packages/core/src/lib/loadPattern.js | 6 ++++-- packages/core/src/lib/object_factory.js | 10 ++++------ packages/core/src/lib/pattern_engines.js | 3 ++- packages/core/src/lib/ui_builder.js | 10 ++++------ 6 files changed, 21 insertions(+), 22 deletions(-) diff --git a/packages/core/src/lib/compose.js b/packages/core/src/lib/compose.js index cc981f8e2..3b8909b0a 100644 --- a/packages/core/src/lib/compose.js +++ b/packages/core/src/lib/compose.js @@ -205,9 +205,8 @@ module.exports = async function (pattern, patternlab) { ); // Allows serializing the compile state - patternlab.graph.node( - pattern - ).compileState = pattern.compileState = CompileState.CLEAN; + patternlab.graph.node(pattern).compileState = + pattern.compileState = CompileState.CLEAN; logger.info('Built pattern: ' + pattern.patternPartial); } ); diff --git a/packages/core/src/lib/expandPartials.js b/packages/core/src/lib/expandPartials.js index 908b6377a..f153ff467 100644 --- a/packages/core/src/lib/expandPartials.js +++ b/packages/core/src/lib/expandPartials.js @@ -64,10 +64,11 @@ module.exports = function (currentPattern, patternlab) { `within ${currentPattern.patternPartial}, replacing extendedTemplate partial ${foundPartial} with ${cleanPartialPattern.patternPartial}'s extendedTemplate` ); - currentPattern.extendedTemplate = currentPattern.extendedTemplate.replace( - foundPartial, - cleanPartialPattern.extendedTemplate - ); + currentPattern.extendedTemplate = + currentPattern.extendedTemplate.replace( + foundPartial, + cleanPartialPattern.extendedTemplate + ); // update the extendedTemplate in the partials object in case this // pattern is consumed later diff --git a/packages/core/src/lib/loadPattern.js b/packages/core/src/lib/loadPattern.js index 8c8d276f3..9d6b22519 100644 --- a/packages/core/src/lib/loadPattern.js +++ b/packages/core/src/lib/loadPattern.js @@ -133,10 +133,12 @@ module.exports = function (relPath, patternlab) { currentPattern.template = fs.readFileSync(templatePath, 'utf8'); //find any stylemodifiers that may be in the current pattern - currentPattern.stylePartials = currentPattern.findPartialsWithStyleModifiers(); + currentPattern.stylePartials = + currentPattern.findPartialsWithStyleModifiers(); //find any pattern parameters that may be in the current pattern - currentPattern.parameteredPartials = currentPattern.findPartialsWithPatternParameters(); + currentPattern.parameteredPartials = + currentPattern.findPartialsWithPatternParameters(); [ templatePath, diff --git a/packages/core/src/lib/object_factory.js b/packages/core/src/lib/object_factory.js index bce935228..704474881 100644 --- a/packages/core/src/lib/object_factory.js +++ b/packages/core/src/lib/object_factory.js @@ -381,16 +381,14 @@ Pattern.prototype = { .map((o, i) => { if (i === 0) { // TODO: Remove when prefix gets deprecated - info.patternGroupOrder = Pattern.prototype.setPatternOrderDataForInfo( - o - ); + info.patternGroupOrder = + Pattern.prototype.setPatternOrderDataForInfo(o); } if (i === 1) { // TODO: Remove when prefix gets deprecated - info.patternSubgroupOrder = Pattern.prototype.setPatternOrderDataForInfo( - o - ); + info.patternSubgroupOrder = + Pattern.prototype.setPatternOrderDataForInfo(o); } return o.replace(prefixMatcher, ''); diff --git a/packages/core/src/lib/pattern_engines.js b/packages/core/src/lib/pattern_engines.js index 20bc82a47..a744f4d7d 100644 --- a/packages/core/src/lib/pattern_engines.js +++ b/packages/core/src/lib/pattern_engines.js @@ -248,7 +248,8 @@ const PatternEngines = Object.create({ } // not a hidden pattern, let's dig deeper - const supportedPatternFileExtensions = PatternEngines.getSupportedFileExtensions(); + const supportedPatternFileExtensions = + PatternEngines.getSupportedFileExtensions(); return ( supportedPatternFileExtensions.lastIndexOf(extension) !== -1 || PatternEngines.isPseudoPatternJSON(filename) diff --git a/packages/core/src/lib/ui_builder.js b/packages/core/src/lib/ui_builder.js index d6e282059..8b3d7de3a 100644 --- a/packages/core/src/lib/ui_builder.js +++ b/packages/core/src/lib/ui_builder.js @@ -402,9 +402,8 @@ const ui_builder = function () { ] = {}; groupedPatterns.patternGroups[pattern.patternGroup][ pattern.patternSubgroup - ][ - 'viewall-' + pattern.patternGroup + '-' + pattern.patternSubgroup - ] = injectDocumentationBlock(pattern, patternlab, true); + ]['viewall-' + pattern.patternGroup + '-' + pattern.patternSubgroup] = + injectDocumentationBlock(pattern, patternlab, true); addToViewAllPaths(patternlab, pattern); addPatternSubgroupItem(patternlab, pattern, true); @@ -588,9 +587,8 @@ const ui_builder = function () { `Omitting ${patternGroupName}/${patternName} from building a viewall page because its patternSubgroup is specified in styleguideExcludes.` ); } else { - styleguideGroupedPatterns = styleguideGroupedPatterns.concat( - subgroupPatterns - ); + styleguideGroupedPatterns = + styleguideGroupedPatterns.concat(subgroupPatterns); } groupedPatterns = groupedPatterns.concat(subgroupPatterns); From 12f0b4e4fd3ce0b02145fb8dc128f56b8b157415 Mon Sep 17 00:00:00 2001 From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> Date: Tue, 30 Nov 2021 18:21:57 +0100 Subject: [PATCH 07/11] chore: prettified some CHANGELOG files --- packages/core/CHANGELOG.md | 596 +++++++++++++------------- packages/create/CHANGELOG.md | 124 +++--- packages/engine-twig-php/CHANGELOG.md | 186 ++++---- packages/live-server/CHANGELOG.md | 202 ++++----- packages/plugin-tab/CHANGELOG.md | 240 +++++------ 5 files changed, 674 insertions(+), 674 deletions(-) diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 02ef5256b..b350fcfac 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -190,302 +190,302 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline - -# [5.4.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/compare/v5.3.3...v5.4.0) (2019-11-26) - - -### Bug Fixes - -* add a new method to check if PL is currently compiling + add new method to get the config PL is using ([26e886c](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/26e886c93db5d135c91de648724f7278c4d5b3e9)) - - - - - -# [5.3.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/compare/v5.2.0...v5.3.0) (2019-11-13) - - -### Bug Fixes - -* **core:** re-add cleanPublic fix ([c100bbc](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/c100bbca3f339e9132acb9c482e98c1c8a66b8b5)) - - - - - -# [5.1.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/compare/v5.0.2...v5.1.0) (2019-10-29) - - -### Features - -* **config:** add new default pattern export options ([a7487a0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/a7487a0681cb11e6f3c5c8eaefd62e5648ad5ea3)) -* **core:** fix pattern export all conflicts ([b210d82](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/b210d820ba8ac0b64c82c7ff0f18c9f8a900fce2)) - - - - - -# [5.0.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/compare/v3.0.0-beta.3...v5.0.0) (2019-10-25) - - -### Bug Fixes - -* add eslint fixes ([00d7bbe](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/00d7bbe319ea77a6ee8cc9cd0348856feaaf13ad)) -* correct typo in build logging ([96d989f](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/96d989f8869630ba9f59705bfca66755f20e35ab)) -* updates to address eslint / prettier issues ([d945acc](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/d945acc13b8e4e36f3815b017fbc12266c323d1f)) -* updates to fix eslint / prettier issues; update packages/core to reuse root .eslintrc.js file ([5b7a057](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/5b7a057d46ccd16b5832af1441030c7b76f237a8)) -* **1049:** Treat folders like patterns only if they're subfolders of pattern groupings ([4eb79ab](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/4eb79ab48b335a35b2e5ed3b7053974b8e8bb6b6)) -* **core:** allow plugin resolution to follow normal algorithm ([3f6b83b](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/3f6b83be080c88aec1d8b73bececb76f0f57a79d)) -* **core:** find plugins from config only and with simpler args ([fe7351c](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/fe7351cba346425512cbb2ef3a1b7728ab06ae60)) -* **plugin:** correct spelling error and function locations ([d4abd88](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/d4abd88cb017550002407241b5045a2ad1adb1dc)) - - -### Features - -* **core:** invoke registered plugin hooks ([a54d775](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/a54d7753b6939fe6a58da543f4fb34f64dd8901a)) -* **plugin-tab, core:** initial plugin hook exploration ([2f3d39a](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/2f3d39ac6b125ad4c6b872e27ee224ce2ea33a12)) - - -### BREAKING CHANGES - -* **core:** plugins now use async functions instead of events - - - - - - -## [3.0.2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/compare/@pattern-lab/core@3.0.1...@pattern-lab/core@3.0.2) (2019-08-23) - - -### Bug Fixes - -* add eslint fixes ([00d7bbe](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/00d7bbe)) -* correct typo in build logging ([96d989f](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/96d989f)) -* updates to address eslint / prettier issues ([d945acc](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/d945acc)) -* updates to fix eslint / prettier issues; update packages/core to reuse root .eslintrc.js file ([5b7a057](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/5b7a057)) - - - - - - -## [3.0.1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/compare/@pattern-lab/core@3.0.1-alpha.0...@pattern-lab/core@3.0.1) (2019-05-16) - -**Note:** Version bump only for package @pattern-lab/core - - - - - -# [3.0.0-beta.2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/compare/@pattern-lab/core@3.0.0-beta.0...@pattern-lab/core@3.0.0-beta.2) (2019-02-09) - - -### Bug Fixes - -* **cli:** pass watch options cleanly to core ([8bf186b](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/8bf186b)) -* **docs:** regenerate API documentation ([830c568](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/830c568)) -* **patterns:** find all patterns inlcuding pseudo patterns ([d0672f6](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/d0672f6)), closes [#975](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/issues/975) -* manually bump package.json versions of packages published in September but with mismatched package.json versions ([98dfadf](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/98dfadf)) - - - - - - -# [3.0.0-beta.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/compare/@pattern-lab/core@3.0.0-alpha.16...@pattern-lab/core@3.0.0-beta.0) (2018-09-07) - - -### Bug Fixes - -* **docs:** update event info with tab example ([0f227a3](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/0f227a3)) -* **package:** Allow .json extension on annotations file (issue [#836](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/issues/836)) ([b92e62b](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/b92e62b)) -* **package:** update tap dependency ([2b70ff4](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/2b70ff4)) -* **plugins:** support scoped packages ([44f0f8e](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/44f0f8e)) - - -### Features - -* **API:** remove reliance on patternlab object during plugin install ([0850fd6](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/0850fd6)) -* **core:** remove plugin install / disable / enable logic ([5a58824](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/5a58824)), closes [#872](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/issues/872) - - - - - - - -# [3.0.0-alpha.16](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/compare/@pattern-lab/core@3.0.0-alpha.15...@pattern-lab/core@3.0.0-alpha.16) (2018-07-06) - -**Note:** Version bump only for package @pattern-lab/core - - - -# [3.0.0-alpha.15](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/compare/@pattern-lab/core@3.0.0-alpha.14...@pattern-lab/core@3.0.0-alpha.15) (2018-07-06) - -### Features - -* **package:** add npmrc file ([55f5bc2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/55f5bc2)) -* **package:** pin all dependencies ([415698e](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/415698e)) -* **package:** remove package-lock.json files ([5ab3995](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/5ab3995)) - - - -# [3.0.0-alpha.14](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/compare/@pattern-lab/core@3.0.0-alpha.13...@pattern-lab/core@3.0.0-alpha.14) (2018-07-05) - -### Bug Fixes - -* **core:** rename serverModule import to avoid conflict with CLI ([f3170e7](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/f3170e7)) -* **server:** remove setInterval hack ([a76e4a2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/a76e4a2)) -* **uikits:** fix generation of view all pages within uikits ([7d6bdce](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/7d6bdce)) -* **viewall:** fix viewall generation ([543558a](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/543558a)) -* **watch:** wire up serve and watch listeners correctly ([04cd18e](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/04cd18e)) - -### Features - -* **events:** add PATTERNLAB_BUILD_END event and rename BUILD_START ([5b7bfa3](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/5b7bfa3)) -* **help:** remove help. API is now documented ([2aef3a1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/2aef3a1)) -* **server:** beginning of refator ([a3d65c3](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/a3d65c3)) -* **server:** continue server refactor ([8f6cd91](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/8f6cd91)) -* **watches:** add additional assets to ignore ([18e74c2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/18e74c2)) - - - -# [3.0.0-alpha.13](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/compare/@pattern-lab/core@3.0.0-alpha.12...@pattern-lab/core@3.0.0-alpha.13) (2018-05-04) - -### Features - -* **api:** expose getVersion statically ([4683cd0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/4683cd0)) - - - -# [3.0.0-alpha.12](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/compare/@pattern-lab/core@3.0.0-alpha.11...@pattern-lab/core@3.0.0-alpha.12) (2018-05-04) - -### Bug Fixes - -* **build:** improve stability of changes causing a live-server reload ([06c6123](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/06c6123)) -* **buildPatterns:** move meta processing back into function for now ([cea2c45](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/cea2c45)) -* **pattern graph:** move support and coverage of graph file to root ([bb9ef3c](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/bb9ef3c)) -* **pattern watch:** Defensively add change listeners ([cdbd11f](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/cdbd11f)) -* **test:** fix the test please and thank you ([cdc6c38](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/cdc6c38)) -* **test:** sledgehammer a test ([8b34be0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/8b34be0)) -* **tests:** prevent dependency graph output file from being written ([0d9c57e](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/0d9c57e)) -* **uikits:** fix ui_builder_tests ([e75f434](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/e75f434)) - -### Features - -* **API:** standardize v() and version() into a single call ([6309e69](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/6309e69)) -* **uikits:** add uikits to test config ([43a2017](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/43a2017)) -* **uikits:** additional test coverage ([f5b60b2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/f5b60b2)) -* **uikits:** additional test coverage of the main API ([fbcacfb](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/fbcacfb)) -* **uikits:** clean each build directory if configured ([8e11342](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/8e11342)) -* **uikits:** copy pattern-specific javascript ([3ac93dc](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/3ac93dc)) -* **uikits:** create MVP output to disk ([e1598d3](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/e1598d3)) -* **uikits:** filter out excluded pattern states from uikit output ([87c9d0d](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/87c9d0d)) -* **uikits:** load uikits before build ([4565202](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/4565202)) -* **uikits:** output assets and annotations to each location ([b0a84ca](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/b0a84ca)) -* **uikits:** output pattern files to each location ([5df87b0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/5df87b0)) -* **uikits:** promote dependencyGraph.json output to root ([dd3e708](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/dd3e708)) -* **uikits:** render header and footer data correctly ([f2a6f23](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/f2a6f23)) -* **uikits:** support incremental builds ([6670364](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/6670364)) -* **uikits:** support watched-asset copying ([4f05311](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/4f05311)) -* **uikits:** uikits config to default ([a393851](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/a393851)) - -### BREAKING CHANGES - -* **API:** change `version()` to return a string representation of the version, removing `v()` - - - -# [3.0.0-alpha.11](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/compare/@pattern-lab/core@3.0.0-alpha.10...@pattern-lab/core@3.0.0-alpha.11) (2018-03-21) - -### Bug Fixes - -* **changes_hunter:** guard for incrementalRebuild while watching ([c652b9c](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/c652b9c)), closes [#794](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/issues/794) [#802](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/issues/802) -* **data_loader:** look for exact name of the file passed in ([eb46be2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/eb46be2)) -* **get:** add internal ability to omit missing pattern warning ([e3dddc6](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/e3dddc6)), closes [#786](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/issues/786) -* **lint:** run code through prettier ([ca52fde](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/ca52fde)), closes [#825](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/issues/825) -* **package:** update LICENSE ([337aa32](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/337aa32)) -* **tests:** Revert annotations file back to expected legacy format ([3618f27](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/3618f27)) - -### Features - -* **package:** standardize and hoist common devDependencies ([7f4ce6f](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/7f4ce6f)) - - - -# [3.0.0-alpha.10](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/compare/@pattern-lab/core@3.0.0-alpha.9...@pattern-lab/core@3.0.0-alpha.10) (2018-03-05) - -### Bug Fixes - -* **config:** Add npm registry to lerna config ([1473cd5](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/1473cd5)) -* **config:** update patch to uikit files ([5ccd0d2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/5ccd0d2)) -* **package:** clarify description of package ([c65611e](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/c65611e)) - -### Features - -* **README:** Update for brevity and consistency ([aec7c50](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/aec7c50)) - - - -# 3.0.0-alpha.9 (2018-03-02) - -### Bug Fixes - -* **core:** Fix tests ([31d67a7](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/31d67a7)) -* **packages:** Allow scoped publishing ([58beeb6](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/58beeb6)) - -### Features - -* **core:** Add tests for help command ([62cd8fb](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/62cd8fb)) -* **package:** Hoist up tap and test command. ([6cacdb6](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/6cacdb6)) -* **packages:** Update all package.json repo and bug links ([5eb2c11](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/5eb2c11)) - - - -# [3.0.0-alpha.8](https://github.com/pattern-lab/patternlab-node/compare/v3.0.0-alpha.7...v3.0.0-alpha.8) (2018-02-22) - -### Bug Fixes - -* **asset copy:** Resolve paths correctly. Break apart files & asyncify ([379419c](https://github.com/pattern-lab/patternlab-node/commit/379419c)) -* **event emission:** Commit failing test ([12ccbd7](https://github.com/pattern-lab/patternlab-node/commit/12ccbd7)) -* **event emission:** Only listen once to changes ([ea6b7d3](https://github.com/pattern-lab/patternlab-node/commit/ea6b7d3)) -* **loadPattern:** Check proper data file paths for modification ([b7ba5b0](https://github.com/pattern-lab/patternlab-node/commit/b7ba5b0)) -* **package** Update dependencies to reduce vulnerabilities ([367d38f](https://github.com/pattern-lab/patternlab-node/commit/367d38f)) -* **package:** Update gitignore and npmignore with current files ([581b3c4](https://github.com/pattern-lab/patternlab-node/commit/581b3c4)) -* **serve:** Reference events by constants ([9f5c143](https://github.com/pattern-lab/patternlab-node/commit/9f5c143)) -* **test configuration:** Remove vestigial configuration entries ([481fce9](https://github.com/pattern-lab/patternlab-node/commit/481fce9)) -* **watchPatternLabFiles:** Register and manager watchers ([48f0190](https://github.com/pattern-lab/patternlab-node/commit/48f0190)) - -### Features - -* **docs:** Add jsdoc output to public API and events ([d45e7b9](https://github.com/pattern-lab/patternlab-node/commit/d45e7b9)) -* **docs:** Experiment with doc generation ([8e1808b](https://github.com/pattern-lab/patternlab-node/commit/8e1808b)) -* **index:** Make the cleaning of public/ an asynchronous adventure ([bd485d2](https://github.com/pattern-lab/patternlab-node/commit/bd485d2)) -* **package:** Communicate official node support ([96ca87f](https://github.com/pattern-lab/patternlab-node/commit/96ca87f)) -* **pattern lab:** Copy pattern-specific js ([99bfc02](https://github.com/pattern-lab/patternlab-node/commit/99bfc02)) -* **pattern lab:** Pass `patternPartial` as data to render ([351ea5e](https://github.com/pattern-lab/patternlab-node/commit/351ea5e)) - - - -# [3.0.0-alpha.7](https://github.com/pattern-lab/patternlab-node/compare/v3.0.0-alpha.6...v3.0.0-alpha.7) (2018-01-19) - -### Bug Fixes - -* **lint:** Manually resolve final lint issues ([7cad1f1](https://github.com/pattern-lab/patternlab-node/commit/7cad1f1)) -* **README:** Fix npm link instructions ([ce3a7f0](https://github.com/pattern-lab/patternlab-node/commit/ce3a7f0)) -* **README:** Update npm shield to point to scoped package ([1f62617](https://github.com/pattern-lab/patternlab-node/commit/1f62617)), closes [#760](https://github.com/pattern-lab/patternlab-node/issues/760) -* **unit test:** Fix path to fixture ([b932f14](https://github.com/pattern-lab/patternlab-node/commit/b932f14)) - -### Features - -* **Contributing:** Update contributing info with prettier ([2a0ce52](https://github.com/pattern-lab/patternlab-node/commit/2a0ce52)) -* **list_item_hunter:** Re-work algorithm ([1ac77a7](https://github.com/pattern-lab/patternlab-node/commit/1ac77a7)) -* **package:** Add prettier ([b8e3e11](https://github.com/pattern-lab/patternlab-node/commit/b8e3e11)) -* **package:** Add prettier precommit hook ([a0b85b5](https://github.com/pattern-lab/patternlab-node/commit/a0b85b5)) -* **package:** Add standard version ([b2ba31c](https://github.com/pattern-lab/patternlab-node/commit/b2ba31c)) -* **README:** Add prettier badge ([7c2787b](https://github.com/pattern-lab/patternlab-node/commit/7c2787b)) - ---- - + +# [5.4.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/compare/v5.3.3...v5.4.0) (2019-11-26) + + +### Bug Fixes + +* add a new method to check if PL is currently compiling + add new method to get the config PL is using ([26e886c](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/26e886c93db5d135c91de648724f7278c4d5b3e9)) + + + + + +# [5.3.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/compare/v5.2.0...v5.3.0) (2019-11-13) + + +### Bug Fixes + +* **core:** re-add cleanPublic fix ([c100bbc](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/c100bbca3f339e9132acb9c482e98c1c8a66b8b5)) + + + + + +# [5.1.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/compare/v5.0.2...v5.1.0) (2019-10-29) + + +### Features + +* **config:** add new default pattern export options ([a7487a0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/a7487a0681cb11e6f3c5c8eaefd62e5648ad5ea3)) +* **core:** fix pattern export all conflicts ([b210d82](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/b210d820ba8ac0b64c82c7ff0f18c9f8a900fce2)) + + + + + +# [5.0.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/compare/v3.0.0-beta.3...v5.0.0) (2019-10-25) + + +### Bug Fixes + +* add eslint fixes ([00d7bbe](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/00d7bbe319ea77a6ee8cc9cd0348856feaaf13ad)) +* correct typo in build logging ([96d989f](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/96d989f8869630ba9f59705bfca66755f20e35ab)) +* updates to address eslint / prettier issues ([d945acc](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/d945acc13b8e4e36f3815b017fbc12266c323d1f)) +* updates to fix eslint / prettier issues; update packages/core to reuse root .eslintrc.js file ([5b7a057](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/5b7a057d46ccd16b5832af1441030c7b76f237a8)) +* **1049:** Treat folders like patterns only if they're subfolders of pattern groupings ([4eb79ab](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/4eb79ab48b335a35b2e5ed3b7053974b8e8bb6b6)) +* **core:** allow plugin resolution to follow normal algorithm ([3f6b83b](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/3f6b83be080c88aec1d8b73bececb76f0f57a79d)) +* **core:** find plugins from config only and with simpler args ([fe7351c](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/fe7351cba346425512cbb2ef3a1b7728ab06ae60)) +* **plugin:** correct spelling error and function locations ([d4abd88](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/d4abd88cb017550002407241b5045a2ad1adb1dc)) + + +### Features + +* **core:** invoke registered plugin hooks ([a54d775](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/a54d7753b6939fe6a58da543f4fb34f64dd8901a)) +* **plugin-tab, core:** initial plugin hook exploration ([2f3d39a](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/2f3d39ac6b125ad4c6b872e27ee224ce2ea33a12)) + + +### BREAKING CHANGES + +* **core:** plugins now use async functions instead of events + + + + + + +## [3.0.2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/compare/@pattern-lab/core@3.0.1...@pattern-lab/core@3.0.2) (2019-08-23) + + +### Bug Fixes + +* add eslint fixes ([00d7bbe](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/00d7bbe)) +* correct typo in build logging ([96d989f](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/96d989f)) +* updates to address eslint / prettier issues ([d945acc](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/d945acc)) +* updates to fix eslint / prettier issues; update packages/core to reuse root .eslintrc.js file ([5b7a057](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/5b7a057)) + + + + + + +## [3.0.1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/compare/@pattern-lab/core@3.0.1-alpha.0...@pattern-lab/core@3.0.1) (2019-05-16) + +**Note:** Version bump only for package @pattern-lab/core + + + + + +# [3.0.0-beta.2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/compare/@pattern-lab/core@3.0.0-beta.0...@pattern-lab/core@3.0.0-beta.2) (2019-02-09) + + +### Bug Fixes + +* **cli:** pass watch options cleanly to core ([8bf186b](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/8bf186b)) +* **docs:** regenerate API documentation ([830c568](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/830c568)) +* **patterns:** find all patterns inlcuding pseudo patterns ([d0672f6](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/d0672f6)), closes [#975](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/issues/975) +* manually bump package.json versions of packages published in September but with mismatched package.json versions ([98dfadf](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/98dfadf)) + + + + + + +# [3.0.0-beta.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/compare/@pattern-lab/core@3.0.0-alpha.16...@pattern-lab/core@3.0.0-beta.0) (2018-09-07) + + +### Bug Fixes + +* **docs:** update event info with tab example ([0f227a3](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/0f227a3)) +* **package:** Allow .json extension on annotations file (issue [#836](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/issues/836)) ([b92e62b](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/b92e62b)) +* **package:** update tap dependency ([2b70ff4](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/2b70ff4)) +* **plugins:** support scoped packages ([44f0f8e](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/44f0f8e)) + + +### Features + +* **API:** remove reliance on patternlab object during plugin install ([0850fd6](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/0850fd6)) +* **core:** remove plugin install / disable / enable logic ([5a58824](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/5a58824)), closes [#872](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/issues/872) + + + + + + + +# [3.0.0-alpha.16](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/compare/@pattern-lab/core@3.0.0-alpha.15...@pattern-lab/core@3.0.0-alpha.16) (2018-07-06) + +**Note:** Version bump only for package @pattern-lab/core + + + +# [3.0.0-alpha.15](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/compare/@pattern-lab/core@3.0.0-alpha.14...@pattern-lab/core@3.0.0-alpha.15) (2018-07-06) + +### Features + +* **package:** add npmrc file ([55f5bc2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/55f5bc2)) +* **package:** pin all dependencies ([415698e](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/415698e)) +* **package:** remove package-lock.json files ([5ab3995](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/5ab3995)) + + + +# [3.0.0-alpha.14](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/compare/@pattern-lab/core@3.0.0-alpha.13...@pattern-lab/core@3.0.0-alpha.14) (2018-07-05) + +### Bug Fixes + +* **core:** rename serverModule import to avoid conflict with CLI ([f3170e7](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/f3170e7)) +* **server:** remove setInterval hack ([a76e4a2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/a76e4a2)) +* **uikits:** fix generation of view all pages within uikits ([7d6bdce](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/7d6bdce)) +* **viewall:** fix viewall generation ([543558a](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/543558a)) +* **watch:** wire up serve and watch listeners correctly ([04cd18e](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/04cd18e)) + +### Features + +* **events:** add PATTERNLAB_BUILD_END event and rename BUILD_START ([5b7bfa3](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/5b7bfa3)) +* **help:** remove help. API is now documented ([2aef3a1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/2aef3a1)) +* **server:** beginning of refator ([a3d65c3](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/a3d65c3)) +* **server:** continue server refactor ([8f6cd91](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/8f6cd91)) +* **watches:** add additional assets to ignore ([18e74c2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/18e74c2)) + + + +# [3.0.0-alpha.13](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/compare/@pattern-lab/core@3.0.0-alpha.12...@pattern-lab/core@3.0.0-alpha.13) (2018-05-04) + +### Features + +* **api:** expose getVersion statically ([4683cd0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/4683cd0)) + + + +# [3.0.0-alpha.12](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/compare/@pattern-lab/core@3.0.0-alpha.11...@pattern-lab/core@3.0.0-alpha.12) (2018-05-04) + +### Bug Fixes + +* **build:** improve stability of changes causing a live-server reload ([06c6123](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/06c6123)) +* **buildPatterns:** move meta processing back into function for now ([cea2c45](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/cea2c45)) +* **pattern graph:** move support and coverage of graph file to root ([bb9ef3c](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/bb9ef3c)) +* **pattern watch:** Defensively add change listeners ([cdbd11f](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/cdbd11f)) +* **test:** fix the test please and thank you ([cdc6c38](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/cdc6c38)) +* **test:** sledgehammer a test ([8b34be0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/8b34be0)) +* **tests:** prevent dependency graph output file from being written ([0d9c57e](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/0d9c57e)) +* **uikits:** fix ui_builder_tests ([e75f434](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/e75f434)) + +### Features + +* **API:** standardize v() and version() into a single call ([6309e69](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/6309e69)) +* **uikits:** add uikits to test config ([43a2017](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/43a2017)) +* **uikits:** additional test coverage ([f5b60b2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/f5b60b2)) +* **uikits:** additional test coverage of the main API ([fbcacfb](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/fbcacfb)) +* **uikits:** clean each build directory if configured ([8e11342](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/8e11342)) +* **uikits:** copy pattern-specific javascript ([3ac93dc](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/3ac93dc)) +* **uikits:** create MVP output to disk ([e1598d3](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/e1598d3)) +* **uikits:** filter out excluded pattern states from uikit output ([87c9d0d](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/87c9d0d)) +* **uikits:** load uikits before build ([4565202](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/4565202)) +* **uikits:** output assets and annotations to each location ([b0a84ca](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/b0a84ca)) +* **uikits:** output pattern files to each location ([5df87b0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/5df87b0)) +* **uikits:** promote dependencyGraph.json output to root ([dd3e708](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/dd3e708)) +* **uikits:** render header and footer data correctly ([f2a6f23](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/f2a6f23)) +* **uikits:** support incremental builds ([6670364](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/6670364)) +* **uikits:** support watched-asset copying ([4f05311](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/4f05311)) +* **uikits:** uikits config to default ([a393851](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/a393851)) + +### BREAKING CHANGES + +* **API:** change `version()` to return a string representation of the version, removing `v()` + + + +# [3.0.0-alpha.11](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/compare/@pattern-lab/core@3.0.0-alpha.10...@pattern-lab/core@3.0.0-alpha.11) (2018-03-21) + +### Bug Fixes + +* **changes_hunter:** guard for incrementalRebuild while watching ([c652b9c](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/c652b9c)), closes [#794](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/issues/794) [#802](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/issues/802) +* **data_loader:** look for exact name of the file passed in ([eb46be2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/eb46be2)) +* **get:** add internal ability to omit missing pattern warning ([e3dddc6](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/e3dddc6)), closes [#786](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/issues/786) +* **lint:** run code through prettier ([ca52fde](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/ca52fde)), closes [#825](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/issues/825) +* **package:** update LICENSE ([337aa32](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/337aa32)) +* **tests:** Revert annotations file back to expected legacy format ([3618f27](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/3618f27)) + +### Features + +* **package:** standardize and hoist common devDependencies ([7f4ce6f](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/7f4ce6f)) + + + +# [3.0.0-alpha.10](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/compare/@pattern-lab/core@3.0.0-alpha.9...@pattern-lab/core@3.0.0-alpha.10) (2018-03-05) + +### Bug Fixes + +* **config:** Add npm registry to lerna config ([1473cd5](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/1473cd5)) +* **config:** update patch to uikit files ([5ccd0d2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/5ccd0d2)) +* **package:** clarify description of package ([c65611e](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/c65611e)) + +### Features + +* **README:** Update for brevity and consistency ([aec7c50](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/aec7c50)) + + + +# 3.0.0-alpha.9 (2018-03-02) + +### Bug Fixes + +* **core:** Fix tests ([31d67a7](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/31d67a7)) +* **packages:** Allow scoped publishing ([58beeb6](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/58beeb6)) + +### Features + +* **core:** Add tests for help command ([62cd8fb](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/62cd8fb)) +* **package:** Hoist up tap and test command. ([6cacdb6](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/6cacdb6)) +* **packages:** Update all package.json repo and bug links ([5eb2c11](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core/commit/5eb2c11)) + + + +# [3.0.0-alpha.8](https://github.com/pattern-lab/patternlab-node/compare/v3.0.0-alpha.7...v3.0.0-alpha.8) (2018-02-22) + +### Bug Fixes + +* **asset copy:** Resolve paths correctly. Break apart files & asyncify ([379419c](https://github.com/pattern-lab/patternlab-node/commit/379419c)) +* **event emission:** Commit failing test ([12ccbd7](https://github.com/pattern-lab/patternlab-node/commit/12ccbd7)) +* **event emission:** Only listen once to changes ([ea6b7d3](https://github.com/pattern-lab/patternlab-node/commit/ea6b7d3)) +* **loadPattern:** Check proper data file paths for modification ([b7ba5b0](https://github.com/pattern-lab/patternlab-node/commit/b7ba5b0)) +* **package** Update dependencies to reduce vulnerabilities ([367d38f](https://github.com/pattern-lab/patternlab-node/commit/367d38f)) +* **package:** Update gitignore and npmignore with current files ([581b3c4](https://github.com/pattern-lab/patternlab-node/commit/581b3c4)) +* **serve:** Reference events by constants ([9f5c143](https://github.com/pattern-lab/patternlab-node/commit/9f5c143)) +* **test configuration:** Remove vestigial configuration entries ([481fce9](https://github.com/pattern-lab/patternlab-node/commit/481fce9)) +* **watchPatternLabFiles:** Register and manager watchers ([48f0190](https://github.com/pattern-lab/patternlab-node/commit/48f0190)) + +### Features + +* **docs:** Add jsdoc output to public API and events ([d45e7b9](https://github.com/pattern-lab/patternlab-node/commit/d45e7b9)) +* **docs:** Experiment with doc generation ([8e1808b](https://github.com/pattern-lab/patternlab-node/commit/8e1808b)) +* **index:** Make the cleaning of public/ an asynchronous adventure ([bd485d2](https://github.com/pattern-lab/patternlab-node/commit/bd485d2)) +* **package:** Communicate official node support ([96ca87f](https://github.com/pattern-lab/patternlab-node/commit/96ca87f)) +* **pattern lab:** Copy pattern-specific js ([99bfc02](https://github.com/pattern-lab/patternlab-node/commit/99bfc02)) +* **pattern lab:** Pass `patternPartial` as data to render ([351ea5e](https://github.com/pattern-lab/patternlab-node/commit/351ea5e)) + + + +# [3.0.0-alpha.7](https://github.com/pattern-lab/patternlab-node/compare/v3.0.0-alpha.6...v3.0.0-alpha.7) (2018-01-19) + +### Bug Fixes + +* **lint:** Manually resolve final lint issues ([7cad1f1](https://github.com/pattern-lab/patternlab-node/commit/7cad1f1)) +* **README:** Fix npm link instructions ([ce3a7f0](https://github.com/pattern-lab/patternlab-node/commit/ce3a7f0)) +* **README:** Update npm shield to point to scoped package ([1f62617](https://github.com/pattern-lab/patternlab-node/commit/1f62617)), closes [#760](https://github.com/pattern-lab/patternlab-node/issues/760) +* **unit test:** Fix path to fixture ([b932f14](https://github.com/pattern-lab/patternlab-node/commit/b932f14)) + +### Features + +* **Contributing:** Update contributing info with prettier ([2a0ce52](https://github.com/pattern-lab/patternlab-node/commit/2a0ce52)) +* **list_item_hunter:** Re-work algorithm ([1ac77a7](https://github.com/pattern-lab/patternlab-node/commit/1ac77a7)) +* **package:** Add prettier ([b8e3e11](https://github.com/pattern-lab/patternlab-node/commit/b8e3e11)) +* **package:** Add prettier precommit hook ([a0b85b5](https://github.com/pattern-lab/patternlab-node/commit/a0b85b5)) +* **package:** Add standard version ([b2ba31c](https://github.com/pattern-lab/patternlab-node/commit/b2ba31c)) +* **README:** Add prettier badge ([7c2787b](https://github.com/pattern-lab/patternlab-node/commit/7c2787b)) + +--- + Older releases found at https://github.com/pattern-lab/patternlab-node/wiki/ChangeLog diff --git a/packages/create/CHANGELOG.md b/packages/create/CHANGELOG.md index de74e31b3..4292c007e 100644 --- a/packages/create/CHANGELOG.md +++ b/packages/create/CHANGELOG.md @@ -163,66 +163,66 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline - -# [5.4.0](https://github.com/pattern-lab/patternlab-node/compare/v5.3.3...v5.4.0) (2019-11-26) - -**Note:** Version bump only for package create-pattern-lab - - - - - -# [5.3.0](https://github.com/pattern-lab/patternlab-node/compare/v5.2.0...v5.3.0) (2019-11-13) - -**Note:** Version bump only for package create-pattern-lab - - - - - -# [5.1.0](https://github.com/pattern-lab/patternlab-node/compare/v5.0.2...v5.1.0) (2019-10-29) - -**Note:** Version bump only for package create-pattern-lab - - - - - -# [5.0.0](https://github.com/pattern-lab/patternlab-node/compare/v3.0.0-beta.3...v5.0.0) (2019-10-25) - -**Note:** Version bump only for package create-pattern-lab - - - - - - -## [1.0.11](https://github.com/pattern-lab/patternlab-node/compare/create-pattern-lab@1.0.10...create-pattern-lab@1.0.11) (2019-10-14) - -**Note:** Version bump only for package create-pattern-lab - - - - - - -## [1.0.8](https://github.com/pattern-lab/patternlab-node/compare/create-pattern-lab@1.0.7...create-pattern-lab@1.0.8) (2019-08-23) - -**Note:** Version bump only for package create-pattern-lab - - - - - -## [1.0.7](https://github.com/pattern-lab/patternlab-node/compare/create-pattern-lab@1.0.6...create-pattern-lab@1.0.7) (2019-08-23) - -**Note:** Version bump only for package create-pattern-lab - - - - - - -## [1.0.6](https://github.com/sghoweri/patternlab-node/compare/create-pattern-lab@1.0.5...create-pattern-lab@1.0.6) (2019-05-16) - + +# [5.4.0](https://github.com/pattern-lab/patternlab-node/compare/v5.3.3...v5.4.0) (2019-11-26) + +**Note:** Version bump only for package create-pattern-lab + + + + + +# [5.3.0](https://github.com/pattern-lab/patternlab-node/compare/v5.2.0...v5.3.0) (2019-11-13) + +**Note:** Version bump only for package create-pattern-lab + + + + + +# [5.1.0](https://github.com/pattern-lab/patternlab-node/compare/v5.0.2...v5.1.0) (2019-10-29) + +**Note:** Version bump only for package create-pattern-lab + + + + + +# [5.0.0](https://github.com/pattern-lab/patternlab-node/compare/v3.0.0-beta.3...v5.0.0) (2019-10-25) + +**Note:** Version bump only for package create-pattern-lab + + + + + + +## [1.0.11](https://github.com/pattern-lab/patternlab-node/compare/create-pattern-lab@1.0.10...create-pattern-lab@1.0.11) (2019-10-14) + +**Note:** Version bump only for package create-pattern-lab + + + + + + +## [1.0.8](https://github.com/pattern-lab/patternlab-node/compare/create-pattern-lab@1.0.7...create-pattern-lab@1.0.8) (2019-08-23) + +**Note:** Version bump only for package create-pattern-lab + + + + + +## [1.0.7](https://github.com/pattern-lab/patternlab-node/compare/create-pattern-lab@1.0.6...create-pattern-lab@1.0.7) (2019-08-23) + +**Note:** Version bump only for package create-pattern-lab + + + + + + +## [1.0.6](https://github.com/sghoweri/patternlab-node/compare/create-pattern-lab@1.0.5...create-pattern-lab@1.0.6) (2019-05-16) + **Note:** Version bump only for package create-pattern-lab diff --git a/packages/engine-twig-php/CHANGELOG.md b/packages/engine-twig-php/CHANGELOG.md index 302785e1f..cc3fe068c 100644 --- a/packages/engine-twig-php/CHANGELOG.md +++ b/packages/engine-twig-php/CHANGELOG.md @@ -181,97 +181,97 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline - -# [5.5.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/v5.4.2...v5.5.0) (2019-12-19) - - -### Features - -* upgrade Twig to use new filter, map, reduce ([4218a5a](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/commit/4218a5a04b06027548afd9f417486297dd25fef8)) - - - - - -# [5.4.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/v5.3.3...v5.4.0) (2019-11-26) - -**Note:** Version bump only for package @pattern-lab/engine-twig-php - - - - - -# [5.3.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/v5.2.0...v5.3.0) (2019-11-13) - -**Note:** Version bump only for package @pattern-lab/engine-twig-php - - - - - -# [5.2.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/v5.1.0...v5.2.0) (2019-11-12) - - -### Bug Fixes - -* **engine_twig_php:** Allow additional flexibility with twig namespaces. ([07bfaa3](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/commit/07bfaa35a00ff62fd2016cc9f34e09cf5af36559)) - - - - - - -# [5.1.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/v5.0.2...v5.1.0) (2019-10-29) - -**Note:** Version bump only for package @pattern-lab/engine-twig-php - - - - - -# [5.0.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/v3.0.0-beta.3...v5.0.0) (2019-10-25) - - -### Bug Fixes - -* **engine_twig_php:** Pseudo patterns Twig PHP ([226aa8b](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/commit/226aa8bbaaf5e418530ccf54a28f6c5657ee6dea)), closes [#1045](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/issues/1045) -* **engine_twig_php:** Twig incremental rebuilds ([5d33f24](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/commit/5d33f24f156ebe50900701513a855de7de608dcf)), closes [#1015](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/issues/1015) -* **engine_twig_php:** Twig incremental rebuilds ([1ade945](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/commit/1ade9451840b2645706a0b01129e2b697dc22d4b)), closes [#1015](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/issues/1015) - - - - - - -## [3.0.5](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/@pattern-lab/engine-twig-php@3.0.4...@pattern-lab/engine-twig-php@3.0.5) (2019-10-14) - - -### Bug Fixes - -* **engine_twig_php:** Pseudo patterns Twig PHP ([226aa8b](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/commit/226aa8bbaaf5e418530ccf54a28f6c5657ee6dea)), closes [#1045](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/issues/1045) -* **engine_twig_php:** Twig incremental rebuilds ([5d33f24](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/commit/5d33f24f156ebe50900701513a855de7de608dcf)), closes [#1015](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/issues/1015) -* **engine_twig_php:** Twig incremental rebuilds ([1ade945](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/commit/1ade9451840b2645706a0b01129e2b697dc22d4b)), closes [#1015](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/issues/1015) - - - - - - -## [3.0.2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/@pattern-lab/engine-twig-php@3.0.1...@pattern-lab/engine-twig-php@3.0.2) (2019-08-23) - -**Note:** Version bump only for package @pattern-lab/engine-twig-php - - - - - - -## [3.0.1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/@pattern-lab/engine-twig-php@3.0.0...@pattern-lab/engine-twig-php@3.0.1) (2019-05-16) - -**Note:** Version bump only for package @pattern-lab/engine-twig-php - - - - - + +# [5.5.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/v5.4.2...v5.5.0) (2019-12-19) + + +### Features + +* upgrade Twig to use new filter, map, reduce ([4218a5a](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/commit/4218a5a04b06027548afd9f417486297dd25fef8)) + + + + + +# [5.4.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/v5.3.3...v5.4.0) (2019-11-26) + +**Note:** Version bump only for package @pattern-lab/engine-twig-php + + + + + +# [5.3.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/v5.2.0...v5.3.0) (2019-11-13) + +**Note:** Version bump only for package @pattern-lab/engine-twig-php + + + + + +# [5.2.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/v5.1.0...v5.2.0) (2019-11-12) + + +### Bug Fixes + +* **engine_twig_php:** Allow additional flexibility with twig namespaces. ([07bfaa3](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/commit/07bfaa35a00ff62fd2016cc9f34e09cf5af36559)) + + + + + + +# [5.1.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/v5.0.2...v5.1.0) (2019-10-29) + +**Note:** Version bump only for package @pattern-lab/engine-twig-php + + + + + +# [5.0.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/v3.0.0-beta.3...v5.0.0) (2019-10-25) + + +### Bug Fixes + +* **engine_twig_php:** Pseudo patterns Twig PHP ([226aa8b](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/commit/226aa8bbaaf5e418530ccf54a28f6c5657ee6dea)), closes [#1045](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/issues/1045) +* **engine_twig_php:** Twig incremental rebuilds ([5d33f24](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/commit/5d33f24f156ebe50900701513a855de7de608dcf)), closes [#1015](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/issues/1015) +* **engine_twig_php:** Twig incremental rebuilds ([1ade945](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/commit/1ade9451840b2645706a0b01129e2b697dc22d4b)), closes [#1015](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/issues/1015) + + + + + + +## [3.0.5](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/@pattern-lab/engine-twig-php@3.0.4...@pattern-lab/engine-twig-php@3.0.5) (2019-10-14) + + +### Bug Fixes + +* **engine_twig_php:** Pseudo patterns Twig PHP ([226aa8b](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/commit/226aa8bbaaf5e418530ccf54a28f6c5657ee6dea)), closes [#1045](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/issues/1045) +* **engine_twig_php:** Twig incremental rebuilds ([5d33f24](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/commit/5d33f24f156ebe50900701513a855de7de608dcf)), closes [#1015](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/issues/1015) +* **engine_twig_php:** Twig incremental rebuilds ([1ade945](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/commit/1ade9451840b2645706a0b01129e2b697dc22d4b)), closes [#1015](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/issues/1015) + + + + + + +## [3.0.2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/@pattern-lab/engine-twig-php@3.0.1...@pattern-lab/engine-twig-php@3.0.2) (2019-08-23) + +**Note:** Version bump only for package @pattern-lab/engine-twig-php + + + + + + +## [3.0.1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/engine-twig-php/compare/@pattern-lab/engine-twig-php@3.0.0...@pattern-lab/engine-twig-php@3.0.1) (2019-05-16) + +**Note:** Version bump only for package @pattern-lab/engine-twig-php + + + + + # Change Log diff --git a/packages/live-server/CHANGELOG.md b/packages/live-server/CHANGELOG.md index 0e1b3d18b..d3a5dc577 100644 --- a/packages/live-server/CHANGELOG.md +++ b/packages/live-server/CHANGELOG.md @@ -70,105 +70,105 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline - -# [5.0.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/v3.0.0-beta.3...v5.0.0) (2019-10-25) - -**Note:** Version bump only for package @pattern-lab/live-server - - - - - - -## [1.3.3](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-beta.1...@pattern-lab/live-server@1.3.3) (2019-05-16) - -**Note:** Version bump only for package @pattern-lab/live-server - - - - - -## [1.3.3-beta.1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-beta.0...@pattern-lab/live-server@1.3.3-beta.1) (2019-02-09) - -**Note:** Version bump only for package @pattern-lab/live-server - - - - - - -## [1.3.3-beta.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-alpha.6...@pattern-lab/live-server@1.3.3-beta.0) (2018-09-07) - -**Note:** Version bump only for package @pattern-lab/live-server - - - - - - - -## [1.3.3-alpha.6](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-alpha.5...@pattern-lab/live-server@1.3.3-alpha.6) (2018-07-06) - -### Bug Fixes - -* **dependencies:** pin all packages marked as latest ([87347d5](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/87347d5)) - - - -## [1.3.3-alpha.5](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-alpha.4...@pattern-lab/live-server@1.3.3-alpha.5) (2018-07-06) - -### Features - -* **package:** add npmrc file ([55f5bc2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/55f5bc2)) -* **package:** pin all dependencies ([415698e](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/415698e)) -* **package:** remove package-lock.json files ([5ab3995](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/5ab3995)) - - - -## [1.3.3-alpha.4](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-alpha.3...@pattern-lab/live-server@1.3.3-alpha.4) (2018-07-05) - -### Features - -* **tests:** use lerna run test at the monorepo level ([38a01b1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/38a01b1)) - - - -## [1.3.3-alpha.3](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-alpha.2...@pattern-lab/live-server@1.3.3-alpha.3) (2018-05-04) - -**Note:** Version bump only for package @pattern-lab/live-server - - - -## [1.3.3-alpha.2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-alpha.1...@pattern-lab/live-server@1.3.3-alpha.2) (2018-03-21) - -### Bug Fixes - -* **lint:** run code through prettier ([ca52fde](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/ca52fde)), closes [#825](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/issues/825) -* **package:** remove files obsoleted by monorepo ([9abb8ac](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/9abb8ac)) -* **package:** update LICENSE ([337aa32](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/337aa32)) -* **README:** update content for consistency ([4edf0d4](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/4edf0d4)), closes [#815](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/issues/815) - -### Features - -* **package:** standardize and hoist common devDependencies ([7f4ce6f](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/7f4ce6f)) - - - -## [1.3.3-alpha.1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-alpha.0...@pattern-lab/live-server@1.3.3-alpha.1) (2018-03-05) - -### Bug Fixes - -* **config:** Add npm registry to lerna config ([1473cd5](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/1473cd5)) - - - -## 1.3.3-alpha.0 (2018-03-02) - -### Bug Fixes - -* **packages:** Allow scoped publishing ([58beeb6](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/58beeb6)) -* **prettier:** Attempt to ignore package files ([e6c08bf](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/e6c08bf)) - -### Features - + +# [5.0.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/v3.0.0-beta.3...v5.0.0) (2019-10-25) + +**Note:** Version bump only for package @pattern-lab/live-server + + + + + + +## [1.3.3](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-beta.1...@pattern-lab/live-server@1.3.3) (2019-05-16) + +**Note:** Version bump only for package @pattern-lab/live-server + + + + + +## [1.3.3-beta.1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-beta.0...@pattern-lab/live-server@1.3.3-beta.1) (2019-02-09) + +**Note:** Version bump only for package @pattern-lab/live-server + + + + + + +## [1.3.3-beta.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-alpha.6...@pattern-lab/live-server@1.3.3-beta.0) (2018-09-07) + +**Note:** Version bump only for package @pattern-lab/live-server + + + + + + + +## [1.3.3-alpha.6](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-alpha.5...@pattern-lab/live-server@1.3.3-alpha.6) (2018-07-06) + +### Bug Fixes + +* **dependencies:** pin all packages marked as latest ([87347d5](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/87347d5)) + + + +## [1.3.3-alpha.5](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-alpha.4...@pattern-lab/live-server@1.3.3-alpha.5) (2018-07-06) + +### Features + +* **package:** add npmrc file ([55f5bc2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/55f5bc2)) +* **package:** pin all dependencies ([415698e](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/415698e)) +* **package:** remove package-lock.json files ([5ab3995](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/5ab3995)) + + + +## [1.3.3-alpha.4](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-alpha.3...@pattern-lab/live-server@1.3.3-alpha.4) (2018-07-05) + +### Features + +* **tests:** use lerna run test at the monorepo level ([38a01b1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/38a01b1)) + + + +## [1.3.3-alpha.3](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-alpha.2...@pattern-lab/live-server@1.3.3-alpha.3) (2018-05-04) + +**Note:** Version bump only for package @pattern-lab/live-server + + + +## [1.3.3-alpha.2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-alpha.1...@pattern-lab/live-server@1.3.3-alpha.2) (2018-03-21) + +### Bug Fixes + +* **lint:** run code through prettier ([ca52fde](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/ca52fde)), closes [#825](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/issues/825) +* **package:** remove files obsoleted by monorepo ([9abb8ac](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/9abb8ac)) +* **package:** update LICENSE ([337aa32](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/337aa32)) +* **README:** update content for consistency ([4edf0d4](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/4edf0d4)), closes [#815](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/issues/815) + +### Features + +* **package:** standardize and hoist common devDependencies ([7f4ce6f](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/7f4ce6f)) + + + +## [1.3.3-alpha.1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/compare/@pattern-lab/live-server@1.3.3-alpha.0...@pattern-lab/live-server@1.3.3-alpha.1) (2018-03-05) + +### Bug Fixes + +* **config:** Add npm registry to lerna config ([1473cd5](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/1473cd5)) + + + +## 1.3.3-alpha.0 (2018-03-02) + +### Bug Fixes + +* **packages:** Allow scoped publishing ([58beeb6](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/58beeb6)) +* **prettier:** Attempt to ignore package files ([e6c08bf](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/e6c08bf)) + +### Features + * **packages:** Update all package.json repo and bug links ([5eb2c11](https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server/commit/5eb2c11)) diff --git a/packages/plugin-tab/CHANGELOG.md b/packages/plugin-tab/CHANGELOG.md index 682644fdb..84987100d 100644 --- a/packages/plugin-tab/CHANGELOG.md +++ b/packages/plugin-tab/CHANGELOG.md @@ -54,124 +54,124 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline - -# [5.3.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/v5.2.0...v5.3.0) (2019-11-13) - - -### Bug Fixes - -* add PluginTab workaround for Safari ([2fa9367](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/2fa936769be65484af52f242dca2536a3382462c)) -* **plugin-tab:** defensively call addPanels ([b82bd12](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/b82bd129fdbe48de95b62d75fb7fe95cea896b7e)) - - - - - -# [5.0.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/v3.0.0-beta.3...v5.0.0) (2019-10-25) - - -### Bug Fixes - -* **plugin:** correct spelling error and function locations ([d4abd88](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/d4abd88cb017550002407241b5045a2ad1adb1dc)) -* **plugin-tab:** bump lodash from 4.17.5 to 4.17.15 in /packages/plugin-tab ([#1081](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/issues/1081)) ([3f89dda](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/3f89dda1685874e251f9777f969c0943e0080881)) -* **plugin-tab:** handle params correctly ([d248993](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/d2489939bb0db1a1d67b0e7f47dfb1838b88b0a0)) - - -### Features - -* **plugin-tab:** pivot to using hook functions ([d4b2598](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/d4b25984fc2a2646cc1876a5c635f57593c35f09)) -* **plugin-tab, core:** initial plugin hook exploration ([2f3d39a](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/2f3d39ac6b125ad4c6b872e27ee224ce2ea33a12)) - - -### BREAKING CHANGES - -* **plugin-tab:** event based listeners replaced with functions - - - - - - -## [2.0.3-beta.1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/@pattern-lab/plugin-tab@2.0.3-beta.0...@pattern-lab/plugin-tab@2.0.3-beta.1) (2019-02-09) - -**Note:** Version bump only for package @pattern-lab/plugin-tab - - - - - - -## [2.0.3-beta.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/@pattern-lab/plugin-tab@2.0.3-alpha.5...@pattern-lab/plugin-tab@2.0.3-beta.0) (2018-09-07) - - -### Bug Fixes - -* **package:** fix pathing and naming issues ([45583f8](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/45583f8)) -* **postinstall:** fix typo in name ([a1a9779](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/a1a9779)) - - -### Features - -* **package:** revamp plugin-tab ([2aa0f8f](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/2aa0f8f)) - - - - - - - -## [2.0.3-alpha.5](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/@pattern-lab/plugin-tab@2.0.3-alpha.4...@pattern-lab/plugin-tab@2.0.3-alpha.5) (2018-07-06) - -### Features - -* **package:** add npmrc file ([55f5bc2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/55f5bc2)) -* **package:** pin all dependencies ([415698e](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/415698e)) -* **package:** remove package-lock.json files ([5ab3995](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/5ab3995)) - - - -## [2.0.3-alpha.4](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/@pattern-lab/plugin-tab@2.0.3-alpha.3...@pattern-lab/plugin-tab@2.0.3-alpha.4) (2018-07-05) - -### Features - -* **tests:** use lerna run test at the monorepo level ([38a01b1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/38a01b1)) - - - -## [2.0.3-alpha.3](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/@pattern-lab/plugin-tab@2.0.3-alpha.2...@pattern-lab/plugin-tab@2.0.3-alpha.3) (2018-05-04) - -**Note:** Version bump only for package @pattern-lab/plugin-tab - - - -## [2.0.3-alpha.2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/@pattern-lab/plugin-tab@2.0.3-alpha.1...@pattern-lab/plugin-tab@2.0.3-alpha.2) (2018-03-21) - -### Bug Fixes - -* **package:** remove files obsoleted by monorepo ([9abb8ac](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/9abb8ac)) -* **package:** update LICENSE ([337aa32](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/337aa32)) -* **README:** update content for consistency ([4edf0d4](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/4edf0d4)), closes [#815](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/issues/815) - -### Features - -* **package:** standardize and hoist common devDependencies ([7f4ce6f](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/7f4ce6f)) - - - -## [2.0.3-alpha.1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/@pattern-lab/plugin-tab@2.0.3-alpha.0...@pattern-lab/plugin-tab@2.0.3-alpha.1) (2018-03-05) - -### Bug Fixes - -* **config:** Add npm registry to lerna config ([1473cd5](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/1473cd5)) - - - -## 2.0.3-alpha.0 (2018-03-02) - -### Bug Fixes - -* **packages:** Allow scoped publishing ([58beeb6](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/58beeb6)) - -### Features - + +# [5.3.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/v5.2.0...v5.3.0) (2019-11-13) + + +### Bug Fixes + +* add PluginTab workaround for Safari ([2fa9367](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/2fa936769be65484af52f242dca2536a3382462c)) +* **plugin-tab:** defensively call addPanels ([b82bd12](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/b82bd129fdbe48de95b62d75fb7fe95cea896b7e)) + + + + + +# [5.0.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/v3.0.0-beta.3...v5.0.0) (2019-10-25) + + +### Bug Fixes + +* **plugin:** correct spelling error and function locations ([d4abd88](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/d4abd88cb017550002407241b5045a2ad1adb1dc)) +* **plugin-tab:** bump lodash from 4.17.5 to 4.17.15 in /packages/plugin-tab ([#1081](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/issues/1081)) ([3f89dda](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/3f89dda1685874e251f9777f969c0943e0080881)) +* **plugin-tab:** handle params correctly ([d248993](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/d2489939bb0db1a1d67b0e7f47dfb1838b88b0a0)) + + +### Features + +* **plugin-tab:** pivot to using hook functions ([d4b2598](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/d4b25984fc2a2646cc1876a5c635f57593c35f09)) +* **plugin-tab, core:** initial plugin hook exploration ([2f3d39a](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/2f3d39ac6b125ad4c6b872e27ee224ce2ea33a12)) + + +### BREAKING CHANGES + +* **plugin-tab:** event based listeners replaced with functions + + + + + + +## [2.0.3-beta.1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/@pattern-lab/plugin-tab@2.0.3-beta.0...@pattern-lab/plugin-tab@2.0.3-beta.1) (2019-02-09) + +**Note:** Version bump only for package @pattern-lab/plugin-tab + + + + + + +## [2.0.3-beta.0](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/@pattern-lab/plugin-tab@2.0.3-alpha.5...@pattern-lab/plugin-tab@2.0.3-beta.0) (2018-09-07) + + +### Bug Fixes + +* **package:** fix pathing and naming issues ([45583f8](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/45583f8)) +* **postinstall:** fix typo in name ([a1a9779](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/a1a9779)) + + +### Features + +* **package:** revamp plugin-tab ([2aa0f8f](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/2aa0f8f)) + + + + + + + +## [2.0.3-alpha.5](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/@pattern-lab/plugin-tab@2.0.3-alpha.4...@pattern-lab/plugin-tab@2.0.3-alpha.5) (2018-07-06) + +### Features + +* **package:** add npmrc file ([55f5bc2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/55f5bc2)) +* **package:** pin all dependencies ([415698e](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/415698e)) +* **package:** remove package-lock.json files ([5ab3995](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/5ab3995)) + + + +## [2.0.3-alpha.4](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/@pattern-lab/plugin-tab@2.0.3-alpha.3...@pattern-lab/plugin-tab@2.0.3-alpha.4) (2018-07-05) + +### Features + +* **tests:** use lerna run test at the monorepo level ([38a01b1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/38a01b1)) + + + +## [2.0.3-alpha.3](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/@pattern-lab/plugin-tab@2.0.3-alpha.2...@pattern-lab/plugin-tab@2.0.3-alpha.3) (2018-05-04) + +**Note:** Version bump only for package @pattern-lab/plugin-tab + + + +## [2.0.3-alpha.2](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/@pattern-lab/plugin-tab@2.0.3-alpha.1...@pattern-lab/plugin-tab@2.0.3-alpha.2) (2018-03-21) + +### Bug Fixes + +* **package:** remove files obsoleted by monorepo ([9abb8ac](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/9abb8ac)) +* **package:** update LICENSE ([337aa32](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/337aa32)) +* **README:** update content for consistency ([4edf0d4](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/4edf0d4)), closes [#815](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/issues/815) + +### Features + +* **package:** standardize and hoist common devDependencies ([7f4ce6f](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/7f4ce6f)) + + + +## [2.0.3-alpha.1](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/compare/@pattern-lab/plugin-tab@2.0.3-alpha.0...@pattern-lab/plugin-tab@2.0.3-alpha.1) (2018-03-05) + +### Bug Fixes + +* **config:** Add npm registry to lerna config ([1473cd5](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/1473cd5)) + + + +## 2.0.3-alpha.0 (2018-03-02) + +### Bug Fixes + +* **packages:** Allow scoped publishing ([58beeb6](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/58beeb6)) + +### Features + * **packages:** Update all package.json repo and bug links ([5eb2c11](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab/commit/5eb2c11)) From 4c9c53ae3acd6dc37f60218b25a0ca5c7d89ae8a Mon Sep 17 00:00:00 2001 From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> Date: Tue, 30 Nov 2021 20:49:00 +0100 Subject: [PATCH 08/11] Revert "Merge branch 'dev' into refactor/further-code-optimizations" This reverts commit 8bbd83d1fca8101afc97b52205750565f8a5dbd2, reversing changes made to 12f0b4e4fd3ce0b02145fb8dc128f56b8b157415. --- packages/cli/bin/inquiries/starterkit.js | 3 +- packages/cli/bin/scaffold.js | 3 +- packages/cli/package.json | 2 +- packages/core/src/lib/addPattern.js | 2 +- packages/core/src/lib/annotation_exporter.js | 12 +-- packages/core/src/lib/buildFooter.js | 10 +-- packages/core/src/lib/buildListItems.js | 4 +- packages/core/src/lib/buildPatterns.js | 28 +++---- packages/core/src/lib/changes_hunter.js | 14 ++-- packages/core/src/lib/cleanBuildDirectory.js | 4 +- packages/core/src/lib/compose.js | 20 ++--- packages/core/src/lib/copier.js | 16 ++-- packages/core/src/lib/copyFile.js | 6 +- packages/core/src/lib/dataMerger.js | 6 +- packages/core/src/lib/data_loader.js | 4 +- packages/core/src/lib/decompose.js | 6 +- packages/core/src/lib/expandPartials.js | 8 +- packages/core/src/lib/exportData.js | 2 +- packages/core/src/lib/findModules.js | 10 +-- packages/core/src/lib/get.js | 2 +- packages/core/src/lib/isScopedPackage.js | 2 +- packages/core/src/lib/lineage_hunter.js | 14 ++-- packages/core/src/lib/list_item_hunter.js | 6 +- packages/core/src/lib/loadPattern.js | 6 +- packages/core/src/lib/loaduikits.js | 8 +- packages/core/src/lib/log.js | 8 +- packages/core/src/lib/markModifiedPatterns.js | 10 +-- packages/core/src/lib/markdown_parser.js | 6 +- packages/core/src/lib/object_factory.js | 46 +++++----- packages/core/src/lib/parameter_hunter.js | 8 +- packages/core/src/lib/parseAllLinks.js | 2 +- packages/core/src/lib/parseLink.js | 8 +- packages/core/src/lib/pattern_exporter.js | 11 +-- packages/core/src/lib/pattern_graph.js | 84 +++++++++---------- packages/core/src/lib/pattern_graph_dot.js | 10 +-- packages/core/src/lib/pattern_registry.js | 20 ++--- packages/core/src/lib/patternlab.js | 42 +++++----- packages/core/src/lib/plugin_manager.js | 12 +-- packages/core/src/lib/processIterative.js | 2 +- packages/core/src/lib/processMetaPattern.js | 4 +- packages/core/src/lib/processRecursive.js | 4 +- packages/core/src/lib/pseudopattern_hunter.js | 13 ++- packages/core/src/lib/readDocumentation.js | 2 +- packages/core/src/lib/render.js | 2 +- packages/core/src/lib/replaceParameter.js | 2 +- packages/core/src/lib/resolver.js | 6 +- packages/core/src/lib/server.js | 40 +++++++-- packages/core/src/lib/starterkit_manager.js | 40 ++++----- .../core/src/lib/style_modifier_hunter.js | 6 +- packages/core/src/lib/watchAssets.js | 10 +-- packages/core/src/lib/watchPatternLabFiles.js | 50 +++++------ packages/core/test/lineage_hunter_tests.js | 5 +- packages/core/test/pattern_engines_tests.js | 5 +- .../core/test/pseudopattern_hunter_tests.js | 20 ++--- .../source/_meta/_head.html | 3 +- packages/edition-node-gulp/gulpfile.js | 1 + .../lib/engine_handlebars.js | 3 +- .../engine-nunjucks/lib/engine_nunjucks.js | 6 +- .../engine-twig-php/lib/engine_twig_php.js | 11 +-- packages/engine-twig/lib/engine_twig.js | 3 +- packages/engine-underscore/_meta/_head.html | 3 +- .../lib/engine_underscore.js | 6 +- .../src/html/partials/base-template.html | 5 +- .../uikit-workshop/src/scripts/actions/app.js | 40 ++++----- .../src/scripts/components/panels-viewer.js | 5 +- .../scripts/components/pl-search/pl-search.js | 3 +- .../lit-components/pl-tooltip/pl-tooltip.js | 2 +- .../lit-components/pl-viewport/pl-viewport.js | 3 +- 68 files changed, 395 insertions(+), 375 deletions(-) diff --git a/packages/cli/bin/inquiries/starterkit.js b/packages/cli/bin/inquiries/starterkit.js index 523eb64bc..945649973 100644 --- a/packages/cli/bin/inquiries/starterkit.js +++ b/packages/cli/bin/inquiries/starterkit.js @@ -10,8 +10,7 @@ const starterkitSetup = [ message: 'What initial patterns do you want included in your project?', choices: [ { - name: - 'Handlebars base patterns (some basic patterns to get started with)', + name: 'Handlebars base patterns (some basic patterns to get started with)', value: '@pattern-lab/starterkit-handlebars-vanilla', }, { diff --git a/packages/cli/bin/scaffold.js b/packages/cli/bin/scaffold.js index 618301fc5..ac2b4378b 100644 --- a/packages/cli/bin/scaffold.js +++ b/packages/cli/bin/scaffold.js @@ -1,7 +1,7 @@ 'use strict'; const path = require('path'); const execa = require('execa'); -const fs = require('fs'); +const fs = require('fs-extra'); const wrapAsync = require('./utils').wrapAsync; const mkdirsAsync = require('./utils').mkdirsAsync; @@ -18,6 +18,7 @@ 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, }); diff --git a/packages/cli/package.json b/packages/cli/package.json index 0708fc754..c0ac5912d 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -49,7 +49,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", diff --git a/packages/core/src/lib/addPattern.js b/packages/core/src/lib/addPattern.js index 12c0c9429..0534c5dfd 100644 --- a/packages/core/src/lib/addPattern.js +++ b/packages/core/src/lib/addPattern.js @@ -2,7 +2,7 @@ const logger = require('./log'); -module.exports = function(pattern, patternlab) { +module.exports = function (pattern, patternlab) { //add the link to the global object if (!patternlab.data.link) { patternlab.data.link = {}; diff --git a/packages/core/src/lib/annotation_exporter.js b/packages/core/src/lib/annotation_exporter.js index 2ff23547b..dffb01253 100644 --- a/packages/core/src/lib/annotation_exporter.js +++ b/packages/core/src/lib/annotation_exporter.js @@ -6,7 +6,7 @@ const _ = require('lodash'); const mp = require('./markdown_parser'); const logger = require('./log'); -const annotations_exporter = function(pl) { +const annotations_exporter = function (pl) { const paths = pl.config.paths; let oldAnnotations; @@ -68,7 +68,7 @@ const annotations_exporter = function(pl) { //let annotations = annotations; const markdown_parser = parser; - return function(filePath) { + return function (filePath) { const annotationsMD = fs.readFileSync(path.resolve(filePath), 'utf8'); //take the annotation snippets and split them on our custom delimiter @@ -110,15 +110,15 @@ const annotations_exporter = function(pl) { } return { - gather: function() { + gather: function () { return gatherAnnotations(); }, - gatherJS: function() { + gatherJS: function () { return parseAnnotationsJS(); }, - gatherMD: function() { + gatherMD: function () { return parseAnnotationsMD(); - } + }, }; }; diff --git a/packages/core/src/lib/buildFooter.js b/packages/core/src/lib/buildFooter.js index 3054cdc44..c70cfe249 100644 --- a/packages/core/src/lib/buildFooter.js +++ b/packages/core/src/lib/buildFooter.js @@ -13,15 +13,15 @@ let render = require('./render'); //eslint-disable-line prefer-const * @param patternPartial - the partial key to build this for, either viewall-patternPartial or a viewall-patternGroup-all * @returns A promise which resolves with the HTML */ -module.exports = function(patternlab, patternPartial, uikit) { +module.exports = function (patternlab, patternPartial, uikit) { //first render the general footer return render(Pattern.createEmpty({ extendedTemplate: uikit.footer }), { patternData: JSON.stringify({ - patternPartial: patternPartial + patternPartial: patternPartial, }), - cacheBuster: patternlab.cacheBuster + cacheBuster: patternlab.cacheBuster, }) - .then(footerPartial => { + .then((footerPartial) => { let allFooterData; try { allFooterData = jsonCopy( @@ -36,7 +36,7 @@ module.exports = function(patternlab, patternPartial, uikit) { return render(patternlab.userFoot, allFooterData); }) - .catch(reason => { + .catch((reason) => { console.log(reason); logger.error('Error building buildFooterHTML'); }); diff --git a/packages/core/src/lib/buildListItems.js b/packages/core/src/lib/buildListItems.js index b3ebe19aa..7eb214f12 100644 --- a/packages/core/src/lib/buildListItems.js +++ b/packages/core/src/lib/buildListItems.js @@ -23,10 +23,10 @@ const items = [ 'seventeen', 'eighteen', 'nineteen', - 'twenty' + 'twenty', ]; -module.exports = function(container) { +module.exports = function (container) { //combine all list items into one structure const list = []; for (const item in container.listitems) { diff --git a/packages/core/src/lib/buildPatterns.js b/packages/core/src/lib/buildPatterns.js index c1d9f8524..476a373c6 100644 --- a/packages/core/src/lib/buildPatterns.js +++ b/packages/core/src/lib/buildPatterns.js @@ -113,13 +113,13 @@ module.exports = async (deletePatternDir, patternlab, additionalData) => { return render( Pattern.createEmpty({ // todo should this be uikit.header? - extendedTemplate: patternlab.header + extendedTemplate: patternlab.header, }), { - cacheBuster: patternlab.cacheBuster + cacheBuster: patternlab.cacheBuster, } ) - .then(results => { + .then((results) => { patternlab.data.patternLabHead = results; // If deletePatternDir == true or graph needs to be updated @@ -133,7 +133,7 @@ module.exports = async (deletePatternDir, patternlab, additionalData) => { if (patternlab.incrementalBuildsEnabled) { // When the graph was loaded from file, some patterns might have been moved/deleted between runs // so the graph data become out of sync - patternlab.graph.sync().forEach(n => { + patternlab.graph.sync().forEach((n) => { logger.info('[Deleted/Moved] ' + n); }); @@ -150,18 +150,18 @@ module.exports = async (deletePatternDir, patternlab, additionalData) => { } //render all patterns last, so lineageR works const allPatternsPromise = patternsToBuild.map( - async pattern => await compose(pattern, patternlab) + async (pattern) => await compose(pattern, patternlab) ); //copy non-pattern files like JavaScript - const allJS = patternsToBuild.map(pattern => { + const allJS = patternsToBuild.map((pattern) => { const { name, patternPartial, subdir } = pattern; const { source: { patterns: sourceDir }, - public: { patterns: publicDir } + public: { patterns: publicDir }, } = patternlab.config.paths; const src = path.join(sourceDir, subdir); const dest = path.join(publicDir, name); - return map(patternlab.uikits, uikit => { + return map(patternlab.uikits, (uikit) => { return copy( src, path.resolve(process.cwd(), uikit.outputDir, dest), @@ -170,7 +170,7 @@ module.exports = async (deletePatternDir, patternlab, additionalData) => { filter: ['*.js'], rename: () => { return `${patternPartial}.js`; - } + }, } ).on(copy.events.COPY_FILE_COMPLETE, () => { logger.debug( @@ -199,27 +199,27 @@ module.exports = async (deletePatternDir, patternlab, additionalData) => { //export patterns if necessary pattern_exporter.export_patterns(patternlab); }) - .catch(reason => { + .catch((reason) => { console.log(reason); logger.error('Error rendering patterns'); }); }) - .catch(reason => { + .catch((reason) => { console.log(reason); logger.error('Error rendering pattern lab header'); }); }) - .catch(reason => { + .catch((reason) => { console.log(reason); logger.error('Error processing meta patterns'); }); }) - .catch(reason => { + .catch((reason) => { console.log(reason); logger.error('Error processing patterns recursively'); }); }) - .catch(reason => { + .catch((reason) => { console.log(reason); logger.error('Error in buildPatterns()'); }); diff --git a/packages/core/src/lib/changes_hunter.js b/packages/core/src/lib/changes_hunter.js index 65c4456dd..ee4a4d52c 100644 --- a/packages/core/src/lib/changes_hunter.js +++ b/packages/core/src/lib/changes_hunter.js @@ -12,7 +12,7 @@ let fs = require('fs-extra'); //eslint-disable-line prefer-const * For detecting changed patterns. * @constructor */ -const ChangesHunter = function() {}; +const ChangesHunter = function () {}; ChangesHunter.prototype = { /** @@ -25,7 +25,7 @@ ChangesHunter.prototype = { * * @see {@link CompileState} */ - checkBuildState: function(pattern, patternlab) { + checkBuildState: function (pattern, patternlab) { //write the compiled template to the public patterns directory const renderedTemplatePath = patternlab.config.paths.public.patterns + @@ -40,12 +40,12 @@ ChangesHunter.prototype = { pattern.compileState = CompileState.NEEDS_REBUILD; } - _.each(patternlab.uikits, uikit => { + _.each(patternlab.uikits, (uikit) => { try { // renderedTemplatePath required to display a single element // Markup only is required for "View All" pages. It will get loaded later on. // If any of these is missing, mark pattern for recompile - [renderedTemplatePath, markupOnlyPath].forEach(renderedFile => { + [renderedTemplatePath, markupOnlyPath].forEach((renderedFile) => { // Prevent error message if file does not exist fs.accessSync( path.join(process.cwd(), uikit.outputDir, renderedFile), @@ -94,7 +94,7 @@ ChangesHunter.prototype = { * @param {Pattern} currentPattern * @param {string} file */ - checkLastModified: function(currentPattern, file) { + checkLastModified: function (currentPattern, file) { if (file && fs.pathExistsSync(file)) { try { const stat = fs.statSync(file); @@ -110,12 +110,12 @@ ChangesHunter.prototype = { } }, - needsRebuild: function(lastModified, p) { + needsRebuild: function (lastModified, p) { if (p.compileState !== CompileState.CLEAN || !p.lastModified) { return true; } return p.lastModified >= lastModified; - } + }, }; module.exports = ChangesHunter; diff --git a/packages/core/src/lib/cleanBuildDirectory.js b/packages/core/src/lib/cleanBuildDirectory.js index 11d78c01e..0cfc300e0 100644 --- a/packages/core/src/lib/cleanBuildDirectory.js +++ b/packages/core/src/lib/cleanBuildDirectory.js @@ -15,12 +15,12 @@ module.exports = (incrementalBuildsEnabled, patternlab) => { return Promise.resolve(); } else { return Promise.all( - _.map(patternlab.uikits, uikit => { + _.map(patternlab.uikits, (uikit) => { return fs.emptyDir( path.join(process.cwd(), uikit.outputDir, paths.public.patterns) ); }) - ).catch(reason => { + ).catch((reason) => { logger.error(reason); }); } diff --git a/packages/core/src/lib/compose.js b/packages/core/src/lib/compose.js index 4a2ed124d..3b8909b0a 100644 --- a/packages/core/src/lib/compose.js +++ b/packages/core/src/lib/compose.js @@ -15,7 +15,7 @@ const pluginManager = new pm(); const Pattern = require('./object_factory').Pattern; const CompileState = require('./object_factory').CompileState; -module.exports = async function(pattern, patternlab) { +module.exports = async function (pattern, patternlab) { // Pattern does not need to be built and recompiled more than once if (!pattern.isPattern || pattern.compileState === CompileState.CLEAN) { return Promise.resolve(false); @@ -41,7 +41,7 @@ module.exports = async function(pattern, patternlab) { ); return Promise.all( - _.map(patternlab.uikits, uikit => { + _.map(patternlab.uikits, (uikit) => { // exclude pattern from uikit rendering if (uikitExcludePattern(pattern, uikit)) { return Promise.resolve(); @@ -125,18 +125,18 @@ module.exports = async function(pattern, patternlab) { patternBreadcrumb: pattern.patternGroup === pattern.patternSubgroup ? { - patternGroup: pattern.patternGroup + patternGroup: pattern.patternGroup, } : { patternGroup: pattern.patternGroup, - patternSubgroup: pattern.patternSubgroup + patternSubgroup: pattern.patternSubgroup, }, patternExtension: pattern.fileExtension.substr(1), //remove the dot because styleguide asset default adds it for us patternName: pattern.patternName, patternPartial: pattern.patternPartial, patternState: pattern.patternState, patternEngineName: pattern.engine.engineName, - extraOutput: extraOutput + extraOutput: extraOutput, }); //set the pattern-specific footer by compiling the general-footer with data, and then adding it to the meta footer @@ -145,16 +145,16 @@ module.exports = async function(pattern, patternlab) { { isPattern: pattern.isPattern, patternData: pattern.patternData, - cacheBuster: patternlab.cacheBuster + cacheBuster: patternlab.cacheBuster, } ); return Promise.all([ headPromise, patternPartialPromise, - footerPartialPromise + footerPartialPromise, ]) - .then(intermediateResults => { + .then((intermediateResults) => { // retrieve results of promises const headHTML = intermediateResults[0]; //headPromise pattern.patternPartialCode = intermediateResults[1]; //patternPartialPromise @@ -178,7 +178,7 @@ module.exports = async function(pattern, patternlab) { allFooterData.patternLabFoot = footerPartial; return render(patternlab.userFoot, allFooterData).then( - async footerHTML => { + async (footerHTML) => { /////////////// // WRITE FILES /////////////// @@ -211,7 +211,7 @@ module.exports = async function(pattern, patternlab) { } ); }) - .catch(reason => { + .catch((reason) => { console.log(reason); }); }) diff --git a/packages/core/src/lib/copier.js b/packages/core/src/lib/copier.js index 0bb3e6efd..ef7990ec5 100644 --- a/packages/core/src/lib/copier.js +++ b/packages/core/src/lib/copier.js @@ -8,7 +8,7 @@ const watchAssets = require('./watchAssets'); const watchPatternLabFiles = require('./watchPatternLabFiles'); const copier = () => { - const transform_paths = directories => { + const transform_paths = (directories) => { //create array with all source keys minus our blacklist const dirs = {}; const blackList = [ @@ -18,7 +18,7 @@ const copier = () => { 'meta', 'annotations', 'patternlabFiles', - 'styleguide' + 'styleguide', ]; _.each(directories.source, (dir, key) => { if (blackList.includes(key)) { @@ -52,7 +52,7 @@ const copier = () => { const copyOptions = { overwrite: true, emitter: patternlab.events, - debug: patternlab.config.logLevel === 'debug' + debug: patternlab.config.logLevel === 'debug', }; //loop through each directory asset object (source / public pairing) @@ -66,7 +66,7 @@ const copier = () => { } else { //just copy copyPromises.push( - _.map(patternlab.uikits, uikit => { + _.map(patternlab.uikits, (uikit) => { copyFile( dir.source, path.join(basePath, uikit.outputDir, dir.public), @@ -79,7 +79,7 @@ const copier = () => { // copy the styleguide copyPromises.push( - _.map(patternlab.uikits, uikit => { + _.map(patternlab.uikits, (uikit) => { copyFile( path.join(uikit.modulePath, assetDirectories.source.styleguide), path.join(basePath, uikit.outputDir, assetDirectories.public.root), @@ -90,7 +90,7 @@ const copier = () => { // copy the favicon copyPromises.push( - _.map(patternlab.uikits, uikit => { + _.map(patternlab.uikits, (uikit) => { copyFile( `${assetDirectories.source.root}/favicon.ico`, path.join( @@ -116,9 +116,9 @@ const copier = () => { copyAndWatch: (assetDirectories, patternlab, options) => { return copyAndWatch(assetDirectories, patternlab, options); }, - transformConfigPaths: paths => { + transformConfigPaths: (paths) => { return transform_paths(paths); - } + }, }; }; diff --git a/packages/core/src/lib/copyFile.js b/packages/core/src/lib/copyFile.js index c1fcc03fb..c8202afe1 100644 --- a/packages/core/src/lib/copyFile.js +++ b/packages/core/src/lib/copyFile.js @@ -7,17 +7,17 @@ let copy = require('recursive-copy'); // eslint-disable-line prefer-const const copyFile = (p, dest, options) => { return copy(p, dest, options) - .on(copy.events.ERROR, function(error, copyOperation) { + .on(copy.events.ERROR, function (error, copyOperation) { logger.error('Unable to copy ' + copyOperation.dest); }) - .on(copy.events.COPY_FILE_ERROR, error => { + .on(copy.events.COPY_FILE_ERROR, (error) => { logger.error(error); }) .on(copy.events.COPY_FILE_COMPLETE, () => { logger.debug(`Moved ${p} to ${dest}`); options.emitter.emit(events.PATTERNLAB_PATTERN_ASSET_CHANGE, { file: p, - dest: dest + dest: dest, }); }); }; diff --git a/packages/core/src/lib/dataMerger.js b/packages/core/src/lib/dataMerger.js index 5ebdd21bb..08544c320 100644 --- a/packages/core/src/lib/dataMerger.js +++ b/packages/core/src/lib/dataMerger.js @@ -9,7 +9,11 @@ const _ = require('lodash'); * @param {*} dataToMergeWithObject the object that should be merged with the original data * @param {*} patternlabConfig the patternlab configuration object */ -module.exports = function(dataObject, dataToMergeWithObject, patternlabConfig) { +module.exports = function ( + dataObject, + dataToMergeWithObject, + patternlabConfig +) { return _.mergeWith( {}, dataObject, diff --git a/packages/core/src/lib/data_loader.js b/packages/core/src/lib/data_loader.js index e52885155..594f4b700 100644 --- a/packages/core/src/lib/data_loader.js +++ b/packages/core/src/lib/data_loader.js @@ -53,7 +53,7 @@ function loadDataFromFolder(dataFilesPath, excludeFileNames, fsDep) { const dataFiles = glob.sync(dataFilesFullPath, globOptions); let mergeObject = {}; - dataFiles.forEach(function(filePath) { + dataFiles.forEach(function (filePath) { try { const jsonData = yaml.safeLoad( fsDep.readFileSync(path.resolve(filePath), 'utf8') @@ -70,6 +70,6 @@ function loadDataFromFolder(dataFilesPath, excludeFileNames, fsDep) { module.exports = function configFileLoader() { return { loadDataFromFile: loadFile, - loadDataFromFolder: loadDataFromFolder + loadDataFromFolder: loadDataFromFolder, }; }; diff --git a/packages/core/src/lib/decompose.js b/packages/core/src/lib/decompose.js index ff65a0bfc..4c35cd694 100644 --- a/packages/core/src/lib/decompose.js +++ b/packages/core/src/lib/decompose.js @@ -16,7 +16,7 @@ const list_item_hunter = new lih(); * @param patternlab - global data store * @param ignoreLineage - whether or not to hunt for lineage for this pattern */ -module.exports = function(pattern, patternlab, ignoreLineage) { +module.exports = function (pattern, patternlab, ignoreLineage) { //set the extendedTemplate to operate on later if we find partials to replace if (!pattern.extendedTemplate) { pattern.extendedTemplate = pattern.template; @@ -50,8 +50,8 @@ module.exports = function(pattern, patternlab, ignoreLineage) { listItemPromise, expandPartialPromise, lineagePromise, - addPromise - ]).catch(reason => { + addPromise, + ]).catch((reason) => { logger.error(reason); }); }; diff --git a/packages/core/src/lib/expandPartials.js b/packages/core/src/lib/expandPartials.js index 36fbba13e..f153ff467 100644 --- a/packages/core/src/lib/expandPartials.js +++ b/packages/core/src/lib/expandPartials.js @@ -9,7 +9,7 @@ const getPartial = require('./get'); const parameter_hunter = new ph(); const style_modifier_hunter = new smh(); -module.exports = function(currentPattern, patternlab) { +module.exports = function (currentPattern, patternlab) { const processRecursive = require('./processRecursive'); //find how many partials there may be for the given pattern @@ -31,7 +31,7 @@ module.exports = function(currentPattern, patternlab) { .find_parameters(currentPattern, patternlab) .then(() => { //do something with the regular old partials - foundPatternPartials.forEach(foundPartial => { + foundPatternPartials.forEach((foundPartial) => { const partial = currentPattern.findPartial(foundPartial); const partialPattern = getPartial(partial, patternlab); @@ -77,13 +77,13 @@ module.exports = function(currentPattern, patternlab) { return Promise.resolve(); }) - .catch(reason => { + .catch((reason) => { console.log(reason); logger.error(reason); }); }); }) - .catch(reason => { + .catch((reason) => { console.log(reason); logger.error(reason); }); diff --git a/packages/core/src/lib/exportData.js b/packages/core/src/lib/exportData.js index 034f1f294..a229cc815 100644 --- a/packages/core/src/lib/exportData.js +++ b/packages/core/src/lib/exportData.js @@ -11,7 +11,7 @@ let fs = require('fs-extra'); //eslint-disable-line prefer-const * Write out our pattern information for use by the front end * @param patternlab - global data store */ -module.exports = function(patternlab, uikit) { +module.exports = function (patternlab, uikit) { const annotation_exporter = new ae(patternlab); const paths = patternlab.config.paths; diff --git a/packages/core/src/lib/findModules.js b/packages/core/src/lib/findModules.js index 0d0ff0824..f54f80d4f 100644 --- a/packages/core/src/lib/findModules.js +++ b/packages/core/src/lib/findModules.js @@ -6,7 +6,7 @@ const isScopedPackage = require('./isScopedPackage'); let fs = require('fs-extra'); // eslint-disable-line -const isDir = fPath => { +const isDir = (fPath) => { const stats = fs.lstatSync(fPath); return stats.isDirectory() || stats.isSymbolicLink(); }; @@ -27,7 +27,7 @@ module.exports = (dir, filter) => { */ const dirList = fs .readdirSync(fPath) - .filter(p => isDir(path.join(fPath, p))); + .filter((p) => isDir(path.join(fPath, p))); /** * @name m @@ -35,10 +35,10 @@ module.exports = (dir, filter) => { * @type {Array} */ const m = foundModules.concat( - dirList.filter(filter).map(mod => { + dirList.filter(filter).map((mod) => { return { name: filter(mod), - modulePath: path.join(fPath, mod) + modulePath: path.join(fPath, mod), }; }) ); @@ -52,7 +52,7 @@ module.exports = (dir, filter) => { ...m, ...dirList .filter(isScopedPackage) // 2 - .map(scope => findModules(path.join(fPath, scope), m)) // 3 + .map((scope) => findModules(path.join(fPath, scope), m)) // 3 ); }; diff --git a/packages/core/src/lib/get.js b/packages/core/src/lib/get.js index 2feccc135..4852670eb 100644 --- a/packages/core/src/lib/get.js +++ b/packages/core/src/lib/get.js @@ -2,7 +2,7 @@ const logger = require('./log'); -module.exports = function(partialName, patternlab, reportWarning = true) { +module.exports = function (partialName, patternlab, reportWarning = true) { //look for exact partial matches for (let i = 0; i < patternlab.patterns.length; i++) { if (patternlab.patterns[i].patternPartial === partialName) { diff --git a/packages/core/src/lib/isScopedPackage.js b/packages/core/src/lib/isScopedPackage.js index cffd1d811..53b607ad7 100644 --- a/packages/core/src/lib/isScopedPackage.js +++ b/packages/core/src/lib/isScopedPackage.js @@ -10,7 +10,7 @@ const scopeMatch = /^@(.*)$/; * @param {string} filePath - The pathname to check * @return {Boolean} - Returns a bool when found, false othersie */ -module.exports = filePath => { +module.exports = (filePath) => { const baseName = path.basename(filePath); return scopeMatch.test(baseName); }; diff --git a/packages/core/src/lib/lineage_hunter.js b/packages/core/src/lib/lineage_hunter.js index 08b320c12..3a90a0f65 100644 --- a/packages/core/src/lib/lineage_hunter.js +++ b/packages/core/src/lib/lineage_hunter.js @@ -2,7 +2,7 @@ const getPartial = require('./get'); const logger = require('./log'); -const lineage_hunter = function() { +const lineage_hunter = function () { function findlineage(pattern, patternlab) { // As we are adding edges from pattern to ancestor patterns, ensure it is known to the graph patternlab.graph.add(pattern); @@ -10,7 +10,7 @@ const lineage_hunter = function() { //find the {{> template-name }} within patterns const matches = pattern.findPartials(); if (matches !== null) { - matches.forEach(function(match) { + matches.forEach(function (match) { //get the ancestorPattern const ancestorPattern = getPartial( pattern.findPartial(match), @@ -27,7 +27,7 @@ const lineage_hunter = function() { //create the more complex patternLineage object too const l = { lineagePattern: ancestorPattern.patternPartial, - lineagePath: '../../patterns/' + ancestorPattern.patternLink + lineagePath: '../../patterns/' + ancestorPattern.patternLink, }; if (ancestorPattern.patternState) { l.lineageState = ancestorPattern.patternState; @@ -49,7 +49,7 @@ const lineage_hunter = function() { //create the more complex patternLineage object in reverse const lr = { lineagePattern: pattern.patternPartial, - lineagePath: '../../patterns/' + pattern.patternLink + lineagePath: '../../patterns/' + pattern.patternLink, }; if (pattern.patternState) { lr.lineageState = pattern.patternState; @@ -158,12 +158,12 @@ const lineage_hunter = function() { } return { - find_lineage: function(pattern, patternlab) { + find_lineage: function (pattern, patternlab) { findlineage(pattern, patternlab); }, - cascade_pattern_states: function(patternlab) { + cascade_pattern_states: function (patternlab) { cascadePatternStates(patternlab); - } + }, }; }; diff --git a/packages/core/src/lib/list_item_hunter.js b/packages/core/src/lib/list_item_hunter.js index 6bf4ca0f1..7d6346161 100644 --- a/packages/core/src/lib/list_item_hunter.js +++ b/packages/core/src/lib/list_item_hunter.js @@ -1,6 +1,6 @@ 'use strict'; -const list_item_hunter = function() { +const list_item_hunter = function () { const logger = require('./log'); function processListItemPartials(pattern) { @@ -39,9 +39,9 @@ const list_item_hunter = function() { } return { - process_list_item_partials: function(pattern) { + process_list_item_partials: function (pattern) { return processListItemPartials(pattern); - } + }, }; }; diff --git a/packages/core/src/lib/loadPattern.js b/packages/core/src/lib/loadPattern.js index 49cd160cc..9d6b22519 100644 --- a/packages/core/src/lib/loadPattern.js +++ b/packages/core/src/lib/loadPattern.js @@ -19,7 +19,7 @@ let fs = require('fs-extra'); //eslint-disable-line prefer-const // loads a pattern from disk, creates a Pattern object from it and // all its associated files, and records it in patternlab.patterns[] -module.exports = function(relPath, patternlab) { +module.exports = function (relPath, patternlab) { const fileObject = path.parse(relPath); //extract some information @@ -147,8 +147,8 @@ module.exports = function(relPath, patternlab) { `${jsonFilename}.yaml`, `${listJsonFileName}.json`, `${listJsonFileName}.yml`, - `${listJsonFileName}.yaml` - ].forEach(file => { + `${listJsonFileName}.yaml`, + ].forEach((file) => { changes_hunter.checkLastModified(currentPattern, file); }); diff --git a/packages/core/src/lib/loaduikits.js b/packages/core/src/lib/loaduikits.js index 2e1147ba9..79de4556f 100644 --- a/packages/core/src/lib/loaduikits.js +++ b/packages/core/src/lib/loaduikits.js @@ -24,11 +24,11 @@ const readModuleFile = (uikitLocation, subPath) => { * [4] Reads files from uikit that apply to every template * @param {object} patternlab */ -module.exports = patternlab => { +module.exports = (patternlab) => { const paths = patternlab.config.paths; const uikitConfigs = _.filter(patternlab.config.uikits, 'enabled'); // [1] - uikitConfigs.forEach(uikitConfig => { + uikitConfigs.forEach((uikitConfig) => { let uikitLocation = null; if ('package' in uikitConfig) { try { @@ -49,7 +49,7 @@ module.exports = patternlab => { uikitConfig.name, `uikit-${uikitConfig.name}`, `@pattern-lab/${uikitConfig.name}`, - `@pattern-lab/uikit-${uikitConfig.name}` + `@pattern-lab/uikit-${uikitConfig.name}`, ]) { try { uikitLocation = resolvePackageFolder(packageName); // [2] @@ -102,7 +102,7 @@ module.exports = patternlab => { viewAll: readModuleFile( uikitLocation, paths.source.patternlabFiles.viewall - ) + ), }; // [4] } catch (ex) { logger.error(ex); diff --git a/packages/core/src/lib/log.js b/packages/core/src/lib/log.js index 62a64c8d3..f55ff4aa1 100644 --- a/packages/core/src/lib/log.js +++ b/packages/core/src/lib/log.js @@ -21,7 +21,7 @@ const log = Object.assign( }, error(msg) { this.emit('error', chalk.red(msg)); - } + }, }, EventEmitter.prototype ); @@ -63,8 +63,8 @@ const error = log.error.bind(log); * @param {string} - a message to report * @returns {function} - a callback to be passed to a Promise's .catch() */ -const reportError = function(message) { - return function(err) { +const reportError = function (message) { + return function (err) { console.log(message); console.log(err); }; @@ -76,5 +76,5 @@ module.exports = { warning, error, log, - reportError + reportError, }; diff --git a/packages/core/src/lib/markModifiedPatterns.js b/packages/core/src/lib/markModifiedPatterns.js index aa80b25bb..6eede313e 100644 --- a/packages/core/src/lib/markModifiedPatterns.js +++ b/packages/core/src/lib/markModifiedPatterns.js @@ -17,7 +17,7 @@ let fs = require('fs-extra'); //eslint-disable-line prefer-const * @param lastModified * @param patternlab */ -module.exports = function(lastModified, patternlab) { +module.exports = function (lastModified, patternlab) { /** * If the given array exists, apply a function to each of its elements * @param {Array} array @@ -28,13 +28,13 @@ module.exports = function(lastModified, patternlab) { array.forEach(func); } }; - const modifiedOrNot = _.groupBy(patternlab.patterns, p => + const modifiedOrNot = _.groupBy(patternlab.patterns, (p) => changes_hunter.needsRebuild(lastModified, p) ? 'modified' : 'notModified' ); // For all unmodified patterns load their rendered template output - forEachExisting(modifiedOrNot.notModified, cleanPattern => { - _.each(patternlab.uikits, uikit => { + forEachExisting(modifiedOrNot.notModified, (cleanPattern) => { + _.each(patternlab.uikits, (uikit) => { const xp = path.join( process.cwd(), uikit.outputDir, @@ -50,7 +50,7 @@ module.exports = function(lastModified, patternlab) { // For all patterns that were modified, schedule them for rebuild forEachExisting( modifiedOrNot.modified, - p => (p.compileState = CompileState.NEEDS_REBUILD) + (p) => (p.compileState = CompileState.NEEDS_REBUILD) ); return modifiedOrNot; }; diff --git a/packages/core/src/lib/markdown_parser.js b/packages/core/src/lib/markdown_parser.js index 4eb359f36..ec962e89e 100644 --- a/packages/core/src/lib/markdown_parser.js +++ b/packages/core/src/lib/markdown_parser.js @@ -3,7 +3,7 @@ const md = require('markdown-it')(); const yaml = require('js-yaml'); const logger = require('./log'); -const markdown_parser = function() { +const markdown_parser = function () { /** * Converts a markdown block with frontmatter (each is optional, technically) to a well-formed object. * @param block - the ".md" file, which can contain frontmatter or not, or only frontmatter. @@ -47,9 +47,9 @@ const markdown_parser = function() { } return { - parse: function(block) { + parse: function (block) { return parseMarkdownBlock(block); - } + }, }; }; diff --git a/packages/core/src/lib/object_factory.js b/packages/core/src/lib/object_factory.js index 8dc81d0e6..704474881 100644 --- a/packages/core/src/lib/object_factory.js +++ b/packages/core/src/lib/object_factory.js @@ -27,7 +27,7 @@ const prefixMatcherDeprecationCheckHidden = /^_.+/; * @param {Patternlab} patternlab The actual pattern lab instance * @param {boolean} isPromoteToFlatPatternRun specifies if the pattern needs to be removed from its deep nesting folder */ -const Pattern = function( +const Pattern = function ( relPath, jsonFileData, patternlab, @@ -201,7 +201,7 @@ const Pattern = function( Pattern.prototype = { // render function - acts as a proxy for the PatternEngine's - render: function(data, partials) { + render: function (data, partials) { if (!this.extendedTemplate) { this.extendedTemplate = this.template; } @@ -213,17 +213,17 @@ Pattern.prototype = { partials ); return promise - .then(results => { + .then((results) => { return results; }) - .catch(reason => { + .catch((reason) => { return Promise.reject(reason); }); } return Promise.reject('where is the engine?'); }, - registerPartial: function() { + registerPartial: function () { if (this.engine && typeof this.engine.registerPartial === 'function') { this.engine.registerPartial(this); } @@ -239,7 +239,7 @@ Pattern.prototype = { * @param {string} suffixType File suffix * @param {string} customFileExtension Custom extension */ - getPatternLink: function(patternlab, suffixType, customFileExtension) { + getPatternLink: function (patternlab, suffixType, customFileExtension) { // if no suffixType is provided, we default to rendered const suffixConfig = patternlab.config.outputFileSuffixes; const suffix = suffixType @@ -261,23 +261,23 @@ Pattern.prototype = { * The finders all delegate to the PatternEngine, which also * encapsulates all appropriate regex's */ - findPartials: function() { + findPartials: function () { return this.engine.findPartials(this); }, - findPartialsWithStyleModifiers: function() { + findPartialsWithStyleModifiers: function () { return this.engine.findPartialsWithStyleModifiers(this); }, - findPartialsWithPatternParameters: function() { + findPartialsWithPatternParameters: function () { return this.engine.findPartialsWithPatternParameters(this); }, - findListItems: function() { + findListItems: function () { return this.engine.findListItems(this); }, - findPartial: function(partialString) { + findPartial: function (partialString) { return this.engine.findPartial(partialString); }, @@ -287,7 +287,7 @@ Pattern.prototype = { * @param {Number} level Level of folder to get * @param {Object} pInfo general information about the pattern */ - getDirLevel: function(level, pInfo) { + getDirLevel: function (level, pInfo) { const items = this.subdir.split(path.sep); pInfo && pInfo.patternHasOwnDir && items.pop(); @@ -309,7 +309,7 @@ Pattern.prototype = { * * @param {Patternlab} patternlab Current patternlab instance */ - promoteFromDirectoryToFlatPattern: function(patternlab) { + promoteFromDirectoryToFlatPattern: function (patternlab) { const p = new Pattern(this.relPath, this.jsonFileData, patternlab, true); // Only reset the specific fields, not everything Object.assign(this, { @@ -320,7 +320,7 @@ Pattern.prototype = { isFlatPattern: p.isFlatPattern, flatPatternPath: p.flatPatternPath, patternPartial: p.patternPartial, - verbosePartial: p.verbosePartial + verbosePartial: p.verbosePartial, }); }, @@ -330,7 +330,7 @@ Pattern.prototype = { * @param {*} pathStr the path that needs to be checked for number prefixes * @returns the order number or 0 when no prefix is available */ - setPatternOrderDataForInfo: pathStr => { + setPatternOrderDataForInfo: (pathStr) => { const match = pathStr.match(prefixMatcherDeprecationCheckOrder); return match && match.length >= 1 ? pathStr.match(prefixMatcherDeprecationCheckOrder)[1].replace('-', '') @@ -354,11 +354,11 @@ Pattern.prototype = { pathObj.name.replace(prefixMatcher, '') || path.basename(pathObj.dir).replace(prefixMatcher, '') === pathObj.name.split('~')[0].replace(prefixMatcher, '') - : false + : false, }; info.dir = info.patternHasOwnDir ? pathObj.dir.split(path.sep).pop() : ''; - info.dirLevel = pathObj.dir.split(path.sep).filter(s => !!s).length; + info.dirLevel = pathObj.dir.split(path.sep).filter((s) => !!s).length; // Only relevant for deprecation check and message if (path.parse(pathObj.dir).base === '_meta') { @@ -397,13 +397,13 @@ Pattern.prototype = { .replace(new RegExp(`-${info.dir}$`), ''); info.verbosePartial = pathObj.dir .split(/\/|\\/, 2) - .map(o => o.replace(prefixMatcher, '')) + .map((o) => o.replace(prefixMatcher, '')) .join('/') .replace(new RegExp(`-${info.dir}$`), ''); } return info; - } + }, }; // Pattern static methods @@ -415,7 +415,7 @@ Pattern.prototype = { * @param {Object} customProps Properties to apply to new pattern * @param {Patternlab} patternlab Current patternlab instance */ -Pattern.createEmpty = function(customProps, patternlab) { +Pattern.createEmpty = function (customProps, patternlab) { let relPath = ''; if (customProps) { if (customProps.relPath) { @@ -434,7 +434,7 @@ Pattern.createEmpty = function(customProps, patternlab) { * parameters that replace the positional parameters that the Pattern * constructor takes. */ -Pattern.create = function(relPath, data, customProps, patternlab) { +Pattern.create = function (relPath, data, customProps, patternlab) { const newPattern = new Pattern(relPath || '', data || null, patternlab); return Object.assign(newPattern, customProps); }; @@ -442,10 +442,10 @@ Pattern.create = function(relPath, data, customProps, patternlab) { const CompileState = { NEEDS_REBUILD: 'needs rebuild', BUILDING: 'building', - CLEAN: 'clean' + CLEAN: 'clean', }; module.exports = { Pattern: Pattern, - CompileState: CompileState + CompileState: CompileState, }; diff --git a/packages/core/src/lib/parameter_hunter.js b/packages/core/src/lib/parameter_hunter.js index 19845b344..3a6d018e5 100644 --- a/packages/core/src/lib/parameter_hunter.js +++ b/packages/core/src/lib/parameter_hunter.js @@ -9,7 +9,7 @@ const parseLink = require('./parseLink'); const jsonCopy = require('./json_copy'); const replaceParameter = require('./replaceParameter'); -const parameter_hunter = function() { +const parameter_hunter = function () { /** * This function is really to accommodate the lax JSON-like syntax allowed by * Pattern Lab PHP for parameter submissions to partials. Unfortunately, no @@ -331,7 +331,7 @@ const parameter_hunter = function() { //todo: this no longer needs to be a promise return Promise.resolve(); }) - .catch(reason => { + .catch((reason) => { console.log(reason); logger.error(reason); }); @@ -342,9 +342,9 @@ const parameter_hunter = function() { } return { - find_parameters: function(pattern, patternlab) { + find_parameters: function (pattern, patternlab) { return findparameters(pattern, patternlab); - } + }, }; }; diff --git a/packages/core/src/lib/parseAllLinks.js b/packages/core/src/lib/parseAllLinks.js index 894ad6f83..e69383bd7 100644 --- a/packages/core/src/lib/parseAllLinks.js +++ b/packages/core/src/lib/parseAllLinks.js @@ -4,7 +4,7 @@ const parseLink = require('./parseLink'); //look for pattern links included in data files. //these will be in the form of link.* WITHOUT {{}}, which would still be there from direct pattern inclusion -module.exports = function(patternlab) { +module.exports = function (patternlab) { //look for link.* such as link.pages-blog as a value patternlab.data = parseLink(patternlab, patternlab.data, 'data.json'); diff --git a/packages/core/src/lib/parseLink.js b/packages/core/src/lib/parseLink.js index f473c6c1c..0251ffada 100644 --- a/packages/core/src/lib/parseLink.js +++ b/packages/core/src/lib/parseLink.js @@ -5,7 +5,7 @@ const path = require('path'); const logger = require('./log'); const getPartial = require('./get'); -module.exports = function(patternlab, obj, key) { +module.exports = function (patternlab, obj, key) { //check for 'link.patternPartial' const linkRE = /(?:'|")(link\.[A-z0-9-_]+)(?:'|")/g; @@ -20,7 +20,7 @@ module.exports = function(patternlab, obj, key) { const linkMatches = dataObjAsString.match(linkRE); if (linkMatches) { - linkMatches.forEach(dataLink => { + linkMatches.forEach((dataLink) => { if (dataLink && dataLink.split('.').length >= 2) { //get the partial the link refers to const linkPatternPartial = dataLink.split('.')[1].replace(/'|"/g, ''); @@ -34,7 +34,7 @@ module.exports = function(patternlab, obj, key) { .replace('viewall-', '') .replace('-all', ''); const pattern = patternlab.patterns.find( - p => p.patternGroup === partial + (p) => p.patternGroup === partial ); if (pattern) { @@ -45,7 +45,7 @@ module.exports = function(patternlab, obj, key) { // group and subgroup there will be a view all page for that group) const partial = linkPatternPartial.replace('viewall-', ''); const pattern = patternlab.patterns.find( - p => `${p.patternGroup}-${p.patternSubgroup}` === partial + (p) => `${p.patternGroup}-${p.patternSubgroup}` === partial ); if (pattern) { diff --git a/packages/core/src/lib/pattern_exporter.js b/packages/core/src/lib/pattern_exporter.js index 12b556076..221415bf8 100644 --- a/packages/core/src/lib/pattern_exporter.js +++ b/packages/core/src/lib/pattern_exporter.js @@ -14,10 +14,7 @@ function exportSinglePattern(patternlab, pattern) { // Extract the first part of the pattern partial as the directory in which // it should go. patternDir = path.join(patternDir, pattern.patternPartial.split('-')[0]); - patternName = pattern.patternPartial - .split('-') - .slice(1) - .join('-'); + patternName = pattern.patternPartial.split('-').slice(1).join('-'); } if (patternlab.config.patternExportRaw) { @@ -31,7 +28,7 @@ function exportSinglePattern(patternlab, pattern) { ); } -const pattern_exporter = function() { +const pattern_exporter = function () { /** * Exports all pattern's final HTML as defined in patternlab-config.json to desired location. * Originally created to help facilitate easier consumption by jekyll. @@ -66,9 +63,9 @@ const pattern_exporter = function() { } return { - export_patterns: function(patternlab) { + export_patterns: function (patternlab) { exportPatterns(patternlab); - } + }, }; }; diff --git a/packages/core/src/lib/pattern_graph.js b/packages/core/src/lib/pattern_graph.js index 848f6f8c4..a5320292d 100644 --- a/packages/core/src/lib/pattern_graph.js +++ b/packages/core/src/lib/pattern_graph.js @@ -35,11 +35,11 @@ const PATTERN_GRAPH_VERSION = 1; * @see PatternGraph#fromJson * @see #540 */ -const PatternGraph = function(graph, timestamp, version) { +const PatternGraph = function (graph, timestamp, version) { this.graph = graph || new Graph({ - directed: true + directed: true, }); this.graph.setDefaultEdgeLabel({}); @@ -51,7 +51,7 @@ const PatternGraph = function(graph, timestamp, version) { }; // shorthand. Use relPath as it is always unique, even with subPatternGroup -const nodeName = p => (p instanceof Pattern ? p.relPath : p); +const nodeName = (p) => (p instanceof Pattern ? p.relPath : p); PatternGraph.prototype = { /** @@ -61,11 +61,11 @@ PatternGraph.prototype = { * * @see {@link https://github.com/pattern-lab/patternlab-node/issues/580|Issue #580} */ - sync: function() { + sync: function () { // Remove any patterns that are in the graph data, but that haven't been discovered when // walking all patterns iteratively - const nodesToRemove = this.nodes().filter(n => !this.patterns.has(n)); - nodesToRemove.forEach(n => this.remove(n)); + const nodesToRemove = this.nodes().filter((n) => !this.patterns.has(n)); + nodesToRemove.forEach((n) => this.remove(n)); return nodesToRemove; }, @@ -73,7 +73,7 @@ PatternGraph.prototype = { * Creates an independent copy of the graph where nodes and edges can be modified without * affecting the source. */ - clone: function() { + clone: function () { const json = graphlib.json.write(this.graph); const graph = graphlib.json.read(json); return new PatternGraph(graph, this.timestamp, this.version); @@ -85,18 +85,18 @@ PatternGraph.prototype = { * * @param {Pattern} pattern */ - add: function(pattern) { + add: function (pattern) { const n = nodeName(pattern); if (!this.patterns.has(n)) { this.graph.setNode(n, { - compileState: pattern.compileState + compileState: pattern.compileState, }); this.patterns.put(pattern); } }, - remove: function(pattern) { + remove: function (pattern) { const n = nodeName(pattern); this.graph.removeNode(n); this.patterns.remove(n); @@ -106,8 +106,8 @@ PatternGraph.prototype = { * Removes nodes from this graph for which the given predicate function returns false. * @param {function} fn which takes a node name as argument */ - filter: function(fn) { - this.graph.nodes().forEach(n => { + filter: function (fn) { + this.graph.nodes().forEach((n) => { if (!fn(n)) { this.remove(n); } @@ -123,7 +123,7 @@ PatternGraph.prototype = { * * @throws {Error} If the pattern is unknown */ - link: function(patternFrom, patternTo) { + link: function (patternFrom, patternTo) { const nameFrom = nodeName(patternFrom); const nameTo = nodeName(patternTo); for (const name of [nameFrom, nameTo]) { @@ -141,7 +141,7 @@ PatternGraph.prototype = { * * @return {boolean} */ - hasLink: function(patternFrom, patternTo) { + hasLink: function (patternFrom, patternTo) { const nameFrom = nodeName(patternFrom); const nameTo = nodeName(patternTo); return this.graph.hasEdge(nameFrom, nameTo); @@ -157,8 +157,8 @@ PatternGraph.prototype = { * @return {Array} An Array of {@link Pattern}s in the order by which the changed patters must be * compiled. */ - compileOrder: function() { - const compileStateFilter = function(patterns, n) { + compileOrder: function () { + const compileStateFilter = function (patterns, n) { const node = patterns.get(n); return node.compileState !== CompileState.CLEAN; }; @@ -169,14 +169,14 @@ PatternGraph.prototype = { * where "->" means "included by"). */ const compileGraph = new Graph({ - directed: true + directed: true, }); const nodes = this.graph.nodes(); - const changedNodes = nodes.filter(n => + const changedNodes = nodes.filter((n) => compileStateFilter(this.patterns, n) ); - this.nodes2patterns(changedNodes).forEach(pattern => { + this.nodes2patterns(changedNodes).forEach((pattern) => { const patternNode = nodeName(pattern); if (!compileGraph.hasNode(patternNode)) { compileGraph.setNode(patternNode); @@ -211,7 +211,7 @@ PatternGraph.prototype = { * @param fn A function that takes the currently viewed pattern and node data. Allows synching data * between patterns and node metadata. */ - applyReverse: function(pattern, fn) { + applyReverse: function (pattern, fn) { for (const p of this.lineageR(pattern)) { fn(p, pattern); this.applyReverse(p, fn); @@ -225,7 +225,7 @@ PatternGraph.prototype = { * * @return [null|Pattern] */ - node: function(pattern) { + node: function (pattern) { return this.graph.node(nodeName(pattern)); }, @@ -234,8 +234,8 @@ PatternGraph.prototype = { * @param nodes {Array} * @return {Array} An Array of Patterns */ - nodes2patterns: function(nodes) { - return nodes.map(n => this.patterns.get(n)); + nodes2patterns: function (nodes) { + return nodes.map((n) => this.patterns.get(n)); }, // TODO cache result in a Map[String, Array]? @@ -246,7 +246,7 @@ PatternGraph.prototype = { * @param pattern * @return {*|Array} */ - lineage: function(pattern) { + lineage: function (pattern) { const nodes = this.graph.successors(nodeName(pattern)); return this.nodes2patterns(nodes); }, @@ -256,7 +256,7 @@ PatternGraph.prototype = { * @param {Pattern} pattern * @return {*|Array} */ - lineageR: function(pattern) { + lineageR: function (pattern) { const nodes = this.graph.predecessors(nodeName(pattern)); return this.nodes2patterns(nodes); }, @@ -267,9 +267,9 @@ PatternGraph.prototype = { * * @see {@link PatternGraph.lineage(pattern)} */ - lineageIndex: function(pattern) { + lineageIndex: function (pattern) { const lineage = this.lineage(pattern); - return lineage.map(p => p.patternPartial); + return lineage.map((p) => p.patternPartial); }, /** @@ -280,36 +280,36 @@ PatternGraph.prototype = { * * @see {@link PatternGraph.lineageRIndex(pattern)} */ - lineageRIndex: function(pattern) { + lineageRIndex: function (pattern) { const lineageR = this.lineageR(pattern); - return lineageR.map(p => p.patternPartial); + return lineageR.map((p) => p.patternPartial); }, /** * Creates an object representing the graph and meta data. * @returns {{timestamp: number, graph}} */ - toJson: function() { + toJson: function () { return { version: this.version, timestamp: this.timestamp, - graph: graphlib.json.write(this.graph) + graph: graphlib.json.write(this.graph), }; }, /** * @return {Array} An array of all node names. */ - nodes: function() { + nodes: function () { return this.graph.nodes(); }, /** * Updates the version to the most recent one */ - upgradeVersion: function() { + upgradeVersion: function () { this.version = PATTERN_GRAPH_VERSION; - } + }, }; /** @@ -317,7 +317,7 @@ PatternGraph.prototype = { * @param {int} [version=PATTERN_GRAPH_VERSION] * @return {PatternGraph} */ -PatternGraph.empty = function(version) { +PatternGraph.empty = function (version) { return new PatternGraph(null, 0, version || PATTERN_GRAPH_VERSION); }; @@ -326,7 +326,7 @@ PatternGraph.empty = function(version) { * @param {PatternGraph|Object} graphOrJson * @return {boolean} */ -PatternGraph.checkVersion = function(graphOrJson) { +PatternGraph.checkVersion = function (graphOrJson) { return graphOrJson.version === PATTERN_GRAPH_VERSION; }; @@ -346,7 +346,7 @@ function VersionMismatch(oldVersion) { * @param {object} o The JSON object to read from * @return {PatternGraph} */ -PatternGraph.fromJson = function(o) { +PatternGraph.fromJson = function (o) { if (!PatternGraph.checkVersion(o)) { throw new VersionMismatch(o.version); } @@ -360,7 +360,7 @@ PatternGraph.fromJson = function(o) { * @param {string} [fileName='dependencyGraph.json'] Name of the graph file * @return {string} */ -PatternGraph.resolveJsonGraphFile = function( +PatternGraph.resolveJsonGraphFile = function ( filePath = process.cwd(), fileName = 'dependencyGraph.json' ) { @@ -377,7 +377,7 @@ PatternGraph.resolveJsonGraphFile = function( * @see {@link PatternGraph.fromJson} * @see {@link PatternGraph.resolveJsonGraphFile} */ -PatternGraph.loadFromFile = function(filePath, fileName) { +PatternGraph.loadFromFile = function (filePath, fileName) { const jsonGraphFile = this.resolveJsonGraphFile(filePath, fileName); // File is fresh, so simply construct an empty graph in memory @@ -399,7 +399,7 @@ PatternGraph.loadFromFile = function(filePath, fileName) { * * @see {@link PatternGraph.resolveJsonGraphFile} */ -PatternGraph.storeToFile = function(patternlab) { +PatternGraph.storeToFile = function (patternlab) { if (process.env.PATTERNLAB_ENV === 'CI') { return; } @@ -413,7 +413,7 @@ PatternGraph.storeToFile = function(patternlab) { * @param patternlab @ @param {string} fileName Output filename */ -PatternGraph.exportToDot = function(patternlab, fileName) { +PatternGraph.exportToDot = function (patternlab, fileName) { const dotFile = this.resolveJsonGraphFile(undefined, fileName); const g = PatternGraphDot.generate(patternlab.graph); fs.outputFileSync(dotFile, g); @@ -421,5 +421,5 @@ PatternGraph.exportToDot = function(patternlab, fileName) { module.exports = { PatternGraph: PatternGraph, - PATTERN_GRAPH_VERSION: PATTERN_GRAPH_VERSION + PATTERN_GRAPH_VERSION: PATTERN_GRAPH_VERSION, }; diff --git a/packages/core/src/lib/pattern_graph_dot.js b/packages/core/src/lib/pattern_graph_dot.js index 33c11fe7d..f4da40e18 100644 --- a/packages/core/src/lib/pattern_graph_dot.js +++ b/packages/core/src/lib/pattern_graph_dot.js @@ -14,7 +14,7 @@ function header() { 'rankdir=LR;', 'ranksep="4 equally·";', 'node [style=filled,color=white];', - 'edge [style=dotted constraint=false]' + 'edge [style=dotted constraint=false]', ]; } @@ -23,7 +23,7 @@ function header() { * @param name * @return {string} */ -const niceKey = function(name) { +const niceKey = function (name) { return 'O' + name.replace('-', ''); }; @@ -69,7 +69,7 @@ function subGraph(group, patterns) { patterns.map(addNode).join(''), //patterns.map(p => "\"" + p.name + "\"").join(" -> ") + "[style=invis]", - '}' + '}', ]; } @@ -84,7 +84,7 @@ const PatternGraphDot = {}; * @param patternGraph * @return {string} */ -PatternGraphDot.generate = function(patternGraph) { +PatternGraphDot.generate = function (patternGraph) { const g = patternGraph.graph; const patterns = patternGraph.patterns; const buckets = new Map(); @@ -93,7 +93,7 @@ PatternGraphDot.generate = function(patternGraph) { 'firebrick', 'slateblue', 'darkgoldenrod', - 'black' + 'black', ]; const colorMap = new Map(); let colIdx = 0; diff --git a/packages/core/src/lib/pattern_registry.js b/packages/core/src/lib/pattern_registry.js index 047551af1..041cb109e 100644 --- a/packages/core/src/lib/pattern_registry.js +++ b/packages/core/src/lib/pattern_registry.js @@ -4,7 +4,7 @@ * Allows lookups for patterns via a central registry. * @constructor */ -const PatternRegistry = function() { +const PatternRegistry = function () { this.key2pattern = new Map(); /** For lookups by {@link Pattern#partialKey} */ @@ -12,15 +12,15 @@ const PatternRegistry = function() { }; PatternRegistry.prototype = { - allPatterns: function() { + allPatterns: function () { return Array.from(this.key2pattern.values()); }, - has: function(name) { + has: function (name) { return this.key2pattern.has(name); }, - get: function(name) { + get: function (name) { return this.key2pattern.get(name); }, @@ -28,18 +28,18 @@ PatternRegistry.prototype = { * Adds the given pattern to the registry. If a pattern with the same key exists, it is replaced. * @param pattern {Pattern|*} */ - put: function(pattern) { + put: function (pattern) { const name = PatternRegistry.partialName(pattern); this.partials.set(name, pattern); const key = PatternRegistry.patternKey(pattern); this.key2pattern.set(key, pattern); }, - remove: function(name) { + remove: function (name) { this.key2pattern.delete(name); }, - getPartial: function(partialName) { + getPartial: function (partialName) { /* Code in here has been moved from getPartial() to prepare for some refactoring. There are a few advantages to this method: @@ -80,10 +80,10 @@ PatternRegistry.prototype = { } } return undefined; - } + }, }; -PatternRegistry.patternKey = function(pattern) { +PatternRegistry.patternKey = function (pattern) { return pattern.relPath; }; @@ -93,7 +93,7 @@ PatternRegistry.patternKey = function(pattern) { * @param pattern {Pattern} * @return {string} */ -PatternRegistry.partialName = function(pattern) { +PatternRegistry.partialName = function (pattern) { return pattern.patternPartial; }; diff --git a/packages/core/src/lib/patternlab.js b/packages/core/src/lib/patternlab.js index 15c9f3cf5..405da4fc9 100644 --- a/packages/core/src/lib/patternlab.js +++ b/packages/core/src/lib/patternlab.js @@ -89,7 +89,7 @@ module.exports = class PatternLab { const outputFileSuffixes = { rendered: '.rendered', rawTemplate: '', - markupOnly: '.markup-only' + markupOnly: '.markup-only', }; if (!patternlab.config.outputFileSuffixes) { @@ -215,10 +215,10 @@ module.exports = class PatternLab { } writePatternFiles(headHTML, pattern, footerHTML, outputBasePath) { - const nullFormatter = str => str; - const defaultFormatter = codeString => + const nullFormatter = (str) => str; + const defaultFormatter = (codeString) => cleanHtml(codeString, { indent_size: 2 }); - const makePath = type => + const makePath = (type) => path.join( this.config.paths.public.patterns, pattern.getPatternLink(this, type) @@ -231,34 +231,34 @@ module.exports = class PatternLab { ? { rendered: eng.renderedCodeFormatter || defaultFormatter, rawTemplate: eng.rawTemplateCodeFormatter || defaultFormatter, - markupOnly: eng.markupOnlyCodeFormatter || defaultFormatter + markupOnly: eng.markupOnlyCodeFormatter || defaultFormatter, } : { rendered: nullFormatter, rawTemplate: nullFormatter, - markupOnly: nullFormatter + markupOnly: nullFormatter, }; //prepare the path and contents of each output file const outputFiles = [ { path: makePath('rendered'), - content: formatters.rendered(patternPage, pattern) + content: formatters.rendered(patternPage, pattern), }, { path: makePath('rawTemplate'), - content: formatters.rawTemplate(pattern.template, pattern) + content: formatters.rawTemplate(pattern.template, pattern), }, { path: makePath('markupOnly'), - content: formatters.markupOnly(pattern.patternPartialCode, pattern) - } + content: formatters.markupOnly(pattern.patternPartialCode, pattern), + }, ].concat( eng.addOutputFiles ? eng.addOutputFiles(this.config.paths, this) : [] ); //write the compiled template to the public patterns directory - outputFiles.forEach(outFile => + outputFiles.forEach((outFile) => fs.outputFileSync( path.join(process.cwd(), outputBasePath, outFile.path), outFile.content @@ -274,22 +274,22 @@ module.exports = class PatternLab { */ registerLogger(logLevel) { if (logLevel === undefined) { - logger.log.on('info', msg => console.info(msg)); - logger.log.on('warning', msg => console.info(msg)); - logger.log.on('error', msg => console.info(msg)); + logger.log.on('info', (msg) => console.info(msg)); + logger.log.on('warning', (msg) => console.info(msg)); + logger.log.on('error', (msg) => console.info(msg)); } else { if (logLevel === 'quiet') { return; } switch (logLevel) { case 'debug': - logger.log.on('debug', msg => console.info(msg)); + logger.log.on('debug', (msg) => console.info(msg)); case 'info': - logger.log.on('info', msg => console.info(msg)); + logger.log.on('info', (msg) => console.info(msg)); case 'warning': - logger.log.on('warning', msg => console.info(msg)); + logger.log.on('warning', (msg) => console.info(msg)); case 'error': - logger.log.on('error', msg => console.info(msg)); + logger.log.on('error', (msg) => console.info(msg)); } } } @@ -312,7 +312,7 @@ module.exports = class PatternLab { // deleted pattern would still be present in the patterns array this.patterns = []; - const promiseAllPatternFiles = new Promise(function(resolve) { + const promiseAllPatternFiles = new Promise(function (resolve) { dive( patterns_dir, (err, file) => { @@ -338,7 +338,7 @@ module.exports = class PatternLab { }); return promiseAllPatternFiles.then(() => { return Promise.all( - this.patterns.map(pattern => { + this.patterns.map((pattern) => { return processIterative(pattern, self); }) ).then(() => { @@ -353,7 +353,7 @@ module.exports = class PatternLab { processAllPatternsRecursive(patterns_dir) { const self = this; - const promiseAllPatternFiles = new Promise(function(resolve) { + const promiseAllPatternFiles = new Promise(function (resolve) { dive( patterns_dir, (err, file) => { diff --git a/packages/core/src/lib/plugin_manager.js b/packages/core/src/lib/plugin_manager.js index adb802953..f79307beb 100644 --- a/packages/core/src/lib/plugin_manager.js +++ b/packages/core/src/lib/plugin_manager.js @@ -1,6 +1,6 @@ 'use strict'; -const plugin_manager = function() { +const plugin_manager = function () { const logger = require('./log'); /** @@ -9,7 +9,7 @@ const plugin_manager = function() { */ function initializePlugins(patternlab) { const foundPlugins = Object.keys(patternlab.config.plugins || {}); - foundPlugins.forEach(plugin => { + foundPlugins.forEach((plugin) => { logger.info(`Found plugin: ${plugin}`); logger.info(`Attempting to load and initialize plugin.`); const pluginModule = require(plugin); @@ -19,8 +19,8 @@ const plugin_manager = function() { async function raiseEvent(patternlab, eventName, args) { patternlab.events.emit(eventName, args); - await (async function() { - const hookHandlers = (patternlab.hooks[eventName] || []).map(h => + await (async function () { + const hookHandlers = (patternlab.hooks[eventName] || []).map((h) => h(args) ); @@ -29,12 +29,12 @@ const plugin_manager = function() { } return { - intialize_plugins: patternlab => { + intialize_plugins: (patternlab) => { initializePlugins(patternlab); }, raiseEvent: async (patternlab, eventName, ...args) => { await raiseEvent(patternlab, eventName, args); - } + }, }; }; diff --git a/packages/core/src/lib/processIterative.js b/packages/core/src/lib/processIterative.js index 1c65c85ca..e2433b1c8 100644 --- a/packages/core/src/lib/processIterative.js +++ b/packages/core/src/lib/processIterative.js @@ -5,7 +5,7 @@ const pph = require('./pseudopattern_hunter'); // This is now solely for analysis; loading of the pattern file is // above, in loadPatternIterative() -module.exports = function(pattern, patternlab) { +module.exports = function (pattern, patternlab) { //look for a pseudo pattern by checking if there is a file //containing same name, with ~ in it, ending in .json return pph diff --git a/packages/core/src/lib/processMetaPattern.js b/packages/core/src/lib/processMetaPattern.js index f793a103a..dea8fbe70 100644 --- a/packages/core/src/lib/processMetaPattern.js +++ b/packages/core/src/lib/processMetaPattern.js @@ -9,7 +9,7 @@ const logger = require('./log'); //this may be mocked in unit tests, so let it be overridden let fs = require('fs-extra'); // eslint-disable-line -module.exports = function(fileName, metaType, patternlab) { +module.exports = function (fileName, metaType, patternlab) { const metaPath = path.resolve(patternlab.config.paths.source.meta, fileName); const metaPattern = new Pattern(metaPath, null, patternlab); metaPattern.template = fs.readFileSync(metaPath, 'utf8'); @@ -19,7 +19,7 @@ module.exports = function(fileName, metaType, patternlab) { .then(() => { patternlab[metaType] = metaPattern; }) - .catch(reason => { + .catch((reason) => { logger.warning( `Could not find the user-editable template ${fileName}, currently configured to be at ${patternlab.config.paths.source.meta}. Your configured path may be incorrect (check paths.source.meta in your config file), the file may have been deleted, or it may have been left in the wrong place during a migration or update.` ); diff --git a/packages/core/src/lib/processRecursive.js b/packages/core/src/lib/processRecursive.js index 97c4ac560..3c541c85c 100644 --- a/packages/core/src/lib/processRecursive.js +++ b/packages/core/src/lib/processRecursive.js @@ -4,7 +4,7 @@ const logger = require('./log'); const decompose = require('./decompose'); const getPartial = require('./get'); -module.exports = function(file, patternlab) { +module.exports = function (file, patternlab) { //find current pattern in patternlab object using file as a partial const currentPattern = getPartial(file, patternlab, false); @@ -19,7 +19,7 @@ module.exports = function(file, patternlab) { } //call our helper method to actually unravel the pattern with any partials - return decompose(currentPattern, patternlab).catch(reason => { + return decompose(currentPattern, patternlab).catch((reason) => { console.log(reason); logger.error(reason); }); diff --git a/packages/core/src/lib/pseudopattern_hunter.js b/packages/core/src/lib/pseudopattern_hunter.js index 39dbd89b7..5e510de66 100644 --- a/packages/core/src/lib/pseudopattern_hunter.js +++ b/packages/core/src/lib/pseudopattern_hunter.js @@ -15,9 +15,9 @@ const changes_hunter = new ch(); const yaml = require('js-yaml'); const dataMerger = require('./dataMerger'); -const pseudopattern_hunter = function() {}; +const pseudopattern_hunter = function () {}; -pseudopattern_hunter.prototype.find_pseudopatterns = function( +pseudopattern_hunter.prototype.find_pseudopatterns = function ( currentPattern, patternlab ) { @@ -33,7 +33,7 @@ pseudopattern_hunter.prototype.find_pseudopatterns = function( const pseudoPatterns = glob.sync(needle, { cwd: paths.source.patterns, debug: false, - nodir: true + nodir: true, }); if (pseudoPatterns.length > 0) { @@ -70,10 +70,7 @@ pseudopattern_hunter.prototype.find_pseudopatterns = function( const variantName = pseudoPatterns[i] .substring(pseudoPatterns[i].indexOf('~') + 1) .split('.')[0]; - const variantExtension = pseudoPatterns[i] - .split('.') - .slice(-1) - .pop(); + const variantExtension = pseudoPatterns[i].split('.').slice(-1).pop(); const variantFilePath = path.join( currentPattern.subdir, currentPattern.fileName + '~' + variantName + '.' + variantExtension @@ -97,7 +94,7 @@ pseudopattern_hunter.prototype.find_pseudopatterns = function( lastModified: Math.max(currentPattern.lastModified, lm.mtime), // use the same template engine as the non-variant - engine: currentPattern.engine + engine: currentPattern.engine, }, patternlab ); diff --git a/packages/core/src/lib/readDocumentation.js b/packages/core/src/lib/readDocumentation.js index f2535cf4f..1159a0347 100644 --- a/packages/core/src/lib/readDocumentation.js +++ b/packages/core/src/lib/readDocumentation.js @@ -14,7 +14,7 @@ const markdown_parser = new mp(); const FILE_EXTENSION = '.md'; const GROUP_DOC_PREFIX = '_'; -module.exports = function(pattern, patternlab, isVariant) { +module.exports = function (pattern, patternlab, isVariant) { try { const markdownFileName = path.resolve( patternlab.config.paths.source.patterns, diff --git a/packages/core/src/lib/render.js b/packages/core/src/lib/render.js index 3ba1f2589..b73d5369f 100644 --- a/packages/core/src/lib/render.js +++ b/packages/core/src/lib/render.js @@ -2,7 +2,7 @@ const logger = require('./log'); -module.exports = function(pattern, data, partials) { +module.exports = function (pattern, data, partials) { logger.debug( `render: ${ pattern.patternPartial !== '-.' diff --git a/packages/core/src/lib/replaceParameter.js b/packages/core/src/lib/replaceParameter.js index 7b0cd6734..b045b58b2 100644 --- a/packages/core/src/lib/replaceParameter.js +++ b/packages/core/src/lib/replaceParameter.js @@ -2,7 +2,7 @@ const logger = require('./log'); -module.exports = function(template, prop, data) { +module.exports = function (template, prop, data) { let t = template; const valueRE = new RegExp(`{{{?\\s*[${prop}]+\\s*}?}}`); diff --git a/packages/core/src/lib/resolver.js b/packages/core/src/lib/resolver.js index 994e5cbf3..d70961413 100644 --- a/packages/core/src/lib/resolver.js +++ b/packages/core/src/lib/resolver.js @@ -23,7 +23,7 @@ const resolvePackageLocations = () => { const resolveFileInPackage = (packageName, ...pathElements) => { if (process.env.projectDir) { return require.resolve(path.join(packageName, ...pathElements), { - paths: resolvePackageLocations() + paths: resolvePackageLocations(), }); } else { return require.resolve(path.join(packageName, ...pathElements)); @@ -34,7 +34,7 @@ const resolveFileInPackage = (packageName, ...pathElements) => { * @func resolvePackageFolder * Resolves the location of a package on disc */ -const resolvePackageFolder = packageName => { +const resolvePackageFolder = (packageName) => { return path.dirname(resolveFileInPackage(packageName, 'package.json')); }; @@ -49,5 +49,5 @@ const resolveDirInPackage = (packageName, ...pathElements) => { module.exports = { resolveFileInPackage, resolveDirInPackage, - resolvePackageFolder + resolvePackageFolder, }; diff --git a/packages/core/src/lib/server.js b/packages/core/src/lib/server.js index c8b41e06c..58bef01a4 100644 --- a/packages/core/src/lib/server.js +++ b/packages/core/src/lib/server.js @@ -6,7 +6,7 @@ const liveServer = require('@pattern-lab/live-server'); const events = require('./events'); const logger = require('./log'); -const server = patternlab => { +const server = (patternlab) => { const _module = { serve: () => { let serverReady = false; @@ -17,10 +17,10 @@ const server = patternlab => { file: 'index.html', logLevel: 0, // errors only wait: 1000, - port: 3000 + port: 3000, }; - const servers = Object.keys(patternlab.uikits).map(kit => { + const servers = Object.keys(patternlab.uikits).map((kit) => { const uikit = patternlab.uikits[kit]; defaults.root = path.resolve( path.join( @@ -36,6 +36,30 @@ 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( @@ -50,7 +74,7 @@ const server = patternlab => { if (serverReady) { _module.reload({ file: '', - action: 'reload' + action: 'reload', }); } }); @@ -82,10 +106,10 @@ const server = patternlab => { return Promise.all(servers); }, - reload: data => { + reload: (data) => { const _data = data || { file: '', - action: '' + action: '', }; return new Promise((resolve, reject) => { let action; @@ -108,9 +132,9 @@ const server = patternlab => { refreshCSS: () => { return _module.reload({ file: '', - action: 'refresh' + action: 'refresh', }); - } + }, }; return _module; }; diff --git a/packages/core/src/lib/starterkit_manager.js b/packages/core/src/lib/starterkit_manager.js index d5d6bb8ad..737aadd9a 100644 --- a/packages/core/src/lib/starterkit_manager.js +++ b/packages/core/src/lib/starterkit_manager.js @@ -1,6 +1,6 @@ 'use strict'; -const starterkit_manager = function(config) { +const starterkit_manager = function (config) { const path = require('path'); const fetch = require('node-fetch'); const fs = require('fs-extra'); @@ -74,11 +74,11 @@ const starterkit_manager = function(config) { { method: 'GET', headers: { - Accept: 'application/json' - } + Accept: 'application/json', + }, } ) - .then(function(res) { + .then(function (res) { const contentType = res.headers.get('content-type'); if (contentType && contentType.indexOf('application/json') === -1) { throw new TypeError( @@ -87,15 +87,15 @@ const starterkit_manager = function(config) { } return res.json(); }) - .then(function(json) { + .then(function (json) { if (!json.items || !Array.isArray(json.items)) { return false; } - return json.items.map(function(repo) { + return json.items.map(function (repo) { return { name: repo.name, url: repo.html_url }; }); }) - .catch(function(err) { + .catch(function (err) { logger.error(err); return false; }); @@ -111,29 +111,31 @@ const starterkit_manager = function(config) { //TODO review for deletion or convert callers to use findModules() function detectStarterKits() { const node_modules_path = path.join(process.cwd(), 'node_modules'); - const npm_modules = fs.readdirSync(node_modules_path).filter(function(dir) { - const module_path = path.join(process.cwd(), 'node_modules', dir); - return ( - fs.statSync(module_path).isDirectory() && - dir.indexOf('starterkit-') === 0 - ); - }); + const npm_modules = fs + .readdirSync(node_modules_path) + .filter(function (dir) { + const module_path = path.join(process.cwd(), 'node_modules', dir); + return ( + fs.statSync(module_path).isDirectory() && + dir.indexOf('starterkit-') === 0 + ); + }); return npm_modules; } return { - load_starterkit: function(starterkitName, clean) { + load_starterkit: function (starterkitName, clean) { loadStarterKit(starterkitName, clean); }, - list_starterkits: function() { + list_starterkits: function () { return listStarterkits(); }, - pack_starterkit: function() { + pack_starterkit: function () { packStarterkit(); }, - detect_starterkits: function() { + detect_starterkits: function () { return detectStarterKits(); - } + }, }; }; diff --git a/packages/core/src/lib/style_modifier_hunter.js b/packages/core/src/lib/style_modifier_hunter.js index 1e3965ba3..bd62c773a 100644 --- a/packages/core/src/lib/style_modifier_hunter.js +++ b/packages/core/src/lib/style_modifier_hunter.js @@ -2,7 +2,7 @@ const logger = require('./log'); -const style_modifier_hunter = function() { +const style_modifier_hunter = function () { /** * Modifies a patterns partial with any styleModifiers found on the supplied partial * @@ -36,9 +36,9 @@ const style_modifier_hunter = function() { } return { - consume_style_modifier: function(pattern, partial, patternlab) { + consume_style_modifier: function (pattern, partial, patternlab) { consumestylemodifier(pattern, partial, patternlab); - } + }, }; }; diff --git a/packages/core/src/lib/watchAssets.js b/packages/core/src/lib/watchAssets.js index f46870bed..6f07626e7 100644 --- a/packages/core/src/lib/watchAssets.js +++ b/packages/core/src/lib/watchAssets.js @@ -10,7 +10,7 @@ let copyFile = require('./copyFile'); // eslint-disable-line prefer-const function onWatchTripped(patternlab, p, assetBase, basePath, dir, copyOptions) { const subPath = p.replace(assetBase, ''); - _.each(patternlab.uikits, uikit => { + _.each(patternlab.uikits, (uikit) => { const destination = path.resolve( basePath, uikit.outputDir, @@ -50,17 +50,17 @@ const watchAssets = ( ignoreInitial: false, awaitWriteFinish: { stabilityThreshold: 200, - pollInterval: 100 + pollInterval: 100, }, - persistent: !watchOnce + persistent: !watchOnce, }); //watch for changes and copy assetWatcher - .on('add', p => { + .on('add', (p) => { onWatchTripped(patternlab, p, assetBase, basePath, dir, copyOptions); }) - .on('change', p => { + .on('change', (p) => { onWatchTripped(patternlab, p, assetBase, basePath, dir, copyOptions); }); diff --git a/packages/core/src/lib/watchPatternLabFiles.js b/packages/core/src/lib/watchPatternLabFiles.js index 17546ac68..c2eb681ab 100644 --- a/packages/core/src/lib/watchPatternLabFiles.js +++ b/packages/core/src/lib/watchPatternLabFiles.js @@ -18,13 +18,13 @@ const watchPatternLabFiles = ( // watch global structures, such as _data/* and _meta/ const globalSources = [ assetDirectories.source.data, - assetDirectories.source.meta + assetDirectories.source.meta, ]; - const globalPaths = globalSources.map(globalSource => + const globalPaths = globalSources.map((globalSource) => path.join(path.resolve(basePath, globalSource), '*') ); - _.each(globalPaths, globalPath => { + _.each(globalPaths, (globalPath) => { logger.debug(`Pattern Lab is watching ${globalPath} for changes!`); if (patternlab.watchers[globalPath]) { @@ -36,37 +36,37 @@ const watchPatternLabFiles = ( ignoreInitial: true, awaitWriteFinish: { stabilityThreshold: 200, - pollInterval: 100 + pollInterval: 100, }, - persistent: !watchOnce + persistent: !watchOnce, }); //watch for changes and rebuild globalWatcher - .on('addDir', async p => { + .on('addDir', async (p) => { await pluginMananger.raiseEvent( patternlab, events.PATTERNLAB_GLOBAL_CHANGE, { - file: p + file: p, } ); }) - .on('add', async p => { + .on('add', async (p) => { await pluginMananger.raiseEvent( patternlab, events.PATTERNLAB_GLOBAL_CHANGE, { - file: p + file: p, } ); }) - .on('change', async p => { + .on('change', async (p) => { await pluginMananger.raiseEvent( patternlab, events.PATTERNLAB_GLOBAL_CHANGE, { - file: p + file: p, } ); }); @@ -78,13 +78,13 @@ const watchPatternLabFiles = ( const baseFileExtensions = ['.json', '.yml', '.yaml', '.md']; const patternWatches = baseFileExtensions .concat(patternlab.engines.getSupportedFileExtensions()) - .map(dotExtension => + .map((dotExtension) => path.join( path.resolve(basePath, assetDirectories.source.patterns), `/**/*${dotExtension}` ) ); - _.each(patternWatches, patternWatchPath => { + _.each(patternWatches, (patternWatchPath) => { logger.debug( `Pattern Lab is watching ${patternWatchPath} for changes - local!` ); @@ -98,61 +98,61 @@ const watchPatternLabFiles = ( ignoreInitial: true, awaitWriteFinish: { stabilityThreshold: 200, - pollInterval: 100 + pollInterval: 100, }, - persistent: !watchOnce + persistent: !watchOnce, }); //watch for changes and rebuild patternWatcher - .on('addDir', async p => { + .on('addDir', async (p) => { await pluginMananger.raiseEvent( patternlab, events.PATTERNLAB_PATTERN_CHANGE, { - file: p + file: p, } ); }) - .on('add', async p => { + .on('add', async (p) => { await pluginMananger.raiseEvent( patternlab, events.PATTERNLAB_PATTERN_CHANGE, { - file: p + file: p, } ); }) - .on('change', async p => { + .on('change', async (p) => { await pluginMananger.raiseEvent( patternlab, events.PATTERNLAB_PATTERN_CHANGE, { - file: p + file: p, } ); }) // the watcher does not react on unlink and unlinkDir // events, so patterns are never removed - .on('unlink', async p => { + .on('unlink', async (p) => { patternlab.graph.sync(); patternlab.graph.upgradeVersion(); await pluginMananger.raiseEvent( patternlab, events.PATTERNLAB_PATTERN_CHANGE, { - file: p + file: p, } ); }) - .on('unlinkDir', async p => { + .on('unlinkDir', async (p) => { patternlab.graph.sync(); patternlab.graph.upgradeVersion(); await pluginMananger.raiseEvent( patternlab, events.PATTERNLAB_PATTERN_CHANGE, { - file: p + file: p, } ); }); diff --git a/packages/core/test/lineage_hunter_tests.js b/packages/core/test/lineage_hunter_tests.js index 3ac79646a..8ede3683b 100644 --- a/packages/core/test/lineage_hunter_tests.js +++ b/packages/core/test/lineage_hunter_tests.js @@ -413,9 +413,8 @@ tap.test( 'molecules-error' ); - var currentPatternLineageIndex = patternlab.graph.lineageIndex( - currentPattern - ); + var currentPatternLineageIndex = + patternlab.graph.lineageIndex(currentPattern); test.equal(currentPatternLineageIndex.length, 1); test.equal(currentPatternLineageIndex[0], 'atoms-error'); diff --git a/packages/core/test/pattern_engines_tests.js b/packages/core/test/pattern_engines_tests.js index 9036984b2..3a1e78f1f 100644 --- a/packages/core/test/pattern_engines_tests.js +++ b/packages/core/test/pattern_engines_tests.js @@ -28,9 +28,8 @@ var engineNames = Object.keys(patternEngines); tap.test( 'getEngineNameForPattern returns "mustache" from test pattern', function (test) { - var engineName = patternEngines.getEngineNameForPattern( - mustacheTestPattern - ); + var engineName = + patternEngines.getEngineNameForPattern(mustacheTestPattern); test.equal(engineName, 'mustache'); test.end(); } diff --git a/packages/core/test/pseudopattern_hunter_tests.js b/packages/core/test/pseudopattern_hunter_tests.js index f37b60363..9c5bf40c1 100644 --- a/packages/core/test/pseudopattern_hunter_tests.js +++ b/packages/core/test/pseudopattern_hunter_tests.js @@ -96,12 +96,10 @@ tap.test( 'utf8' ); atomPattern.extendedTemplate = atomPattern.template; - atomPattern.stylePartials = atomPattern.findPartialsWithStyleModifiers( - atomPattern - ); - atomPattern.parameteredPartials = atomPattern.findPartialsWithPatternParameters( - atomPattern - ); + atomPattern.stylePartials = + atomPattern.findPartialsWithStyleModifiers(atomPattern); + atomPattern.parameteredPartials = + atomPattern.findPartialsWithPatternParameters(atomPattern); var pseudoPattern = new Pattern('test/pseudomodifier.mustache'); pseudoPattern.template = fs.readFileSync( @@ -109,12 +107,10 @@ tap.test( 'utf8' ); pseudoPattern.extendedTemplate = atomPattern.template; - pseudoPattern.stylePartials = pseudoPattern.findPartialsWithStyleModifiers( - pseudoPattern - ); - pseudoPattern.parameteredPartials = pseudoPattern.findPartialsWithPatternParameters( - pseudoPattern - ); + pseudoPattern.stylePartials = + pseudoPattern.findPartialsWithStyleModifiers(pseudoPattern); + pseudoPattern.parameteredPartials = + pseudoPattern.findPartialsWithPatternParameters(pseudoPattern); addPattern(atomPattern, pl); addPattern(pseudoPattern, pl); diff --git a/packages/development-edition-engine-react/source/_meta/_head.html b/packages/development-edition-engine-react/source/_meta/_head.html index bcb87dcd0..9e3094352 100644 --- a/packages/development-edition-engine-react/source/_meta/_head.html +++ b/packages/development-edition-engine-react/source/_meta/_head.html @@ -20,5 +20,4 @@ {{{ patternLabHead }}} - - + diff --git a/packages/edition-node-gulp/gulpfile.js b/packages/edition-node-gulp/gulpfile.js index 0f02a0346..fd039bad7 100644 --- a/packages/edition-node-gulp/gulpfile.js +++ b/packages/edition-node-gulp/gulpfile.js @@ -27,6 +27,7 @@ function serve() { return patternlab.server .serve({ cleanPublic: config.cleanPublic, + watch: true, }) .then(() => { // do something else when this promise resolves diff --git a/packages/engine-handlebars/lib/engine_handlebars.js b/packages/engine-handlebars/lib/engine_handlebars.js index f3a3461c8..fdd6dbd14 100644 --- a/packages/engine-handlebars/lib/engine_handlebars.js +++ b/packages/engine-handlebars/lib/engine_handlebars.js @@ -29,7 +29,8 @@ const glob = require('glob'); // regexes, stored here so they're only compiled once const findPartialsRE = /{{#?>\s*([\w-\/.]+)(?:.|\s+)*?}}/g; -const findListItemsRE = /({{#( )?)(list(I|i)tems.)(one|two|three|four|five|six|seven|eight|nine|ten|eleven|twelve|thirteen|fourteen|fifteen|sixteen|seventeen|eighteen|nineteen|twenty)( )?}}/g; +const findListItemsRE = + /({{#( )?)(list(I|i)tems.)(one|two|three|four|five|six|seven|eight|nine|ten|eleven|twelve|thirteen|fourteen|fifteen|sixteen|seventeen|eighteen|nineteen|twenty)( )?}}/g; const findAtPartialBlockRE = /{{#?>\s*@partial-block\s*}}/g; function escapeAtPartialBlock(partialString) { diff --git a/packages/engine-nunjucks/lib/engine_nunjucks.js b/packages/engine-nunjucks/lib/engine_nunjucks.js index c4dffb0d8..5e3a909fb 100644 --- a/packages/engine-nunjucks/lib/engine_nunjucks.js +++ b/packages/engine-nunjucks/lib/engine_nunjucks.js @@ -37,9 +37,11 @@ const engine_nunjucks = { expandPartials: false, // regexes, stored here so they're only compiled once - findPartialsRE: /{%\s*(?:extends|include|import|from)\s+(?:'[^']+'|"[^"]+").*%}/g, + findPartialsRE: + /{%\s*(?:extends|include|import|from)\s+(?:'[^']+'|"[^"]+").*%}/g, findPartialKeyRE: /{%\s*(?:extends|include|import|from)\s+('[^']+'|"[^"]+")/, - findListItemsRE: /({{#( )?)(list(I|i)tems.)(one|two|three|four|five|six|seven|eight|nine|ten|eleven|twelve|thirteen|fourteen|fifteen|sixteen|seventeen|eighteen|nineteen|twenty)( )?}}/g, // still requires mustache style syntax because of how PL implements lists + findListItemsRE: + /({{#( )?)(list(I|i)tems.)(one|two|three|four|five|six|seven|eight|nine|ten|eleven|twelve|thirteen|fourteen|fifteen|sixteen|seventeen|eighteen|nineteen|twenty)( )?}}/g, // still requires mustache style syntax because of how PL implements lists // render it renderPattern: function renderPattern(pattern, data) { diff --git a/packages/engine-twig-php/lib/engine_twig_php.js b/packages/engine-twig-php/lib/engine_twig_php.js index 73dc9c560..c4ab2af72 100644 --- a/packages/engine-twig-php/lib/engine_twig_php.js +++ b/packages/engine-twig-php/lib/engine_twig_php.js @@ -27,7 +27,8 @@ const engine_twig_php = { engineName: 'twig-php', engineFileExtension: '.twig', expandPartials: false, - findPartialsRE: /{%\s*(?:extends|include|embed)\s+('[^']+'|"[^"]+").*?(with|%}|\s*%})/g, + findPartialsRE: + /{%\s*(?:extends|include|embed)\s+('[^']+'|"[^"]+").*?(with|%}|\s*%})/g, findPartialKeyRE: /"((?:\\.|[^"\\])*)"|'((?:\\.|[^"\\])*)'/, namespaces: [], @@ -45,12 +46,8 @@ const engine_twig_php = { process.exit(1); } - const { - namespaces, - alterTwigEnv, - relativeFrom, - ...rest - } = config.engines.twig; + const { namespaces, alterTwigEnv, relativeFrom, ...rest } = + config.engines.twig; // Schema on config object being passed in: // https://github.com/basaltinc/twig-renderer/blob/master/config.schema.json diff --git a/packages/engine-twig/lib/engine_twig.js b/packages/engine-twig/lib/engine_twig.js index 6dd182659..76308ecef 100644 --- a/packages/engine-twig/lib/engine_twig.js +++ b/packages/engine-twig/lib/engine_twig.js @@ -126,7 +126,8 @@ var engine_twig = { // regexes, stored here so they're only compiled once findPartialsRE: /{%[-]?\s*(?:extends|include|embed|from|import|use)\s+('[^']+'|"[^"]+").*?%}/g, findPartialKeyRE: /"((?:\\.|[^"\\])*)"/, - findListItemsRE: /({{#( )?)(list(I|i)tems.)(one|two|three|four|five|six|seven|eight|nine|ten|eleven|twelve|thirteen|fourteen|fifteen|sixteen|seventeen|eighteen|nineteen|twenty)( )?}}/g, // TODO + findListItemsRE: + /({{#( )?)(list(I|i)tems.)(one|two|three|four|five|six|seven|eight|nine|ten|eleven|twelve|thirteen|fourteen|fifteen|sixteen|seventeen|eighteen|nineteen|twenty)( )?}}/g, // TODO // render it renderPattern: function renderPattern(pattern, data, partials) { diff --git a/packages/engine-underscore/_meta/_head.html b/packages/engine-underscore/_meta/_head.html index bcb87dcd0..9e3094352 100644 --- a/packages/engine-underscore/_meta/_head.html +++ b/packages/engine-underscore/_meta/_head.html @@ -20,5 +20,4 @@ {{{ patternLabHead }}} - - + diff --git a/packages/engine-underscore/lib/engine_underscore.js b/packages/engine-underscore/lib/engine_underscore.js index a562a02a9..d08b3a63f 100644 --- a/packages/engine-underscore/lib/engine_underscore.js +++ b/packages/engine-underscore/lib/engine_underscore.js @@ -97,8 +97,10 @@ const engine_underscore = { expandPartials: false, // regexes, stored here so they're only compiled once - findPartialsRE: /<%=\s*_\.renderNamedPartial[ \t]*\(\s*("(?:[^"].*?)"|'(?:[^'].*?)').*?%>/g, // TODO - findListItemsRE: /({{#( )?)(list(I|i)tems.)(one|two|three|four|five|six|seven|eight|nine|ten|eleven|twelve|thirteen|fourteen|fifteen|sixteen|seventeen|eighteen|nineteen|twenty)( )?}}/g, + findPartialsRE: + /<%=\s*_\.renderNamedPartial[ \t]*\(\s*("(?:[^"].*?)"|'(?:[^'].*?)').*?%>/g, // TODO + findListItemsRE: + /({{#( )?)(list(I|i)tems.)(one|two|three|four|five|six|seven|eight|nine|ten|eleven|twelve|thirteen|fourteen|fifteen|sixteen|seventeen|eighteen|nineteen|twenty)( )?}}/g, // render it renderPattern: function renderPattern(pattern, data, partials) { diff --git a/packages/uikit-workshop/src/html/partials/base-template.html b/packages/uikit-workshop/src/html/partials/base-template.html index 799af572b..5f47c91a7 100755 --- a/packages/uikit-workshop/src/html/partials/base-template.html +++ b/packages/uikit-workshop/src/html/partials/base-template.html @@ -2,7 +2,10 @@ {{# descBlockExists }}
{{# isPatternView }} diff --git a/packages/uikit-workshop/src/scripts/actions/app.js b/packages/uikit-workshop/src/scripts/actions/app.js index 16ed551bb..c3e335a22 100644 --- a/packages/uikit-workshop/src/scripts/actions/app.js +++ b/packages/uikit-workshop/src/scripts/actions/app.js @@ -9,17 +9,15 @@ export const UPDATE_CURRENT_URL = 'UPDATE_CURRENT_URL'; export const UPDATE_CURRENT_PATTERN = 'UPDATE_CURRENT_PATTERN'; export const IS_VIEWALL_PAGE = 'IS_VIEWALL_PAGE'; -export const updateCurrentPattern = (currentPattern) => ( - dispatch, - getState -) => { - if (getState().app.currentPattern !== currentPattern) { - dispatch({ - type: UPDATE_CURRENT_PATTERN, - currentPattern, - }); - } -}; +export const updateCurrentPattern = + (currentPattern) => (dispatch, getState) => { + if (getState().app.currentPattern !== currentPattern) { + dispatch({ + type: UPDATE_CURRENT_PATTERN, + currentPattern, + }); + } + }; export const updateCurrentUrl = (currentUrl) => (dispatch, getState) => { if (getState().app.currentUrl !== currentUrl) { @@ -75,17 +73,15 @@ export const updateDrawerState = (opened) => (dispatch, getState) => { } }; -export const updateDrawerAnimationState = (drawerIsAnimating) => ( - dispatch, - getState -) => { - if (getState().app.drawerIsAnimating !== drawerIsAnimating) { - dispatch({ - type: UPDATE_DRAWER_ANIMATION_STATE, - drawerIsAnimating, - }); - } -}; +export const updateDrawerAnimationState = + (drawerIsAnimating) => (dispatch, getState) => { + if (getState().app.drawerIsAnimating !== drawerIsAnimating) { + dispatch({ + type: UPDATE_DRAWER_ANIMATION_STATE, + drawerIsAnimating, + }); + } + }; export const updateDrawerHeight = (height) => (dispatch, getState) => { if (getState().app.drawerHeight !== height) { diff --git a/packages/uikit-workshop/src/scripts/components/panels-viewer.js b/packages/uikit-workshop/src/scripts/components/panels-viewer.js index 289102f5f..08d0f27db 100644 --- a/packages/uikit-workshop/src/scripts/components/panels-viewer.js +++ b/packages/uikit-workshop/src/scripts/components/panels-viewer.js @@ -177,9 +177,8 @@ export const panelsViewer = { template = document.getElementById(panel.templateID); templateCompiled = Hogan.compile(template.innerHTML); templateRendered = templateCompiled.render(patternData); - const normalizedCode = normalizeWhitespace.normalize( - templateRendered - ); + const normalizedCode = + normalizeWhitespace.normalize(templateRendered); normalizedCode.replace(/[\r\n]+/g, '\n\n'); const highlightedCode = Prism.highlight( normalizedCode, diff --git a/packages/uikit-workshop/src/scripts/components/pl-search/pl-search.js b/packages/uikit-workshop/src/scripts/components/pl-search/pl-search.js index 46d049a4f..a00a1f8be 100644 --- a/packages/uikit-workshop/src/scripts/components/pl-search/pl-search.js +++ b/packages/uikit-workshop/src/scripts/components/pl-search/pl-search.js @@ -242,7 +242,8 @@ class Search extends BaseComponent { return (
diff --git a/packages/uikit-workshop/src/scripts/lit-components/pl-tooltip/pl-tooltip.js b/packages/uikit-workshop/src/scripts/lit-components/pl-tooltip/pl-tooltip.js index e9ead5609..3c5bde8e9 100644 --- a/packages/uikit-workshop/src/scripts/lit-components/pl-tooltip/pl-tooltip.js +++ b/packages/uikit-workshop/src/scripts/lit-components/pl-tooltip/pl-tooltip.js @@ -7,7 +7,7 @@ class Tooltip extends Slotify(LitElement) { return { message: { type: String }, position: { type: String }, - child: {} + child: {}, }; } diff --git a/packages/uikit-workshop/src/scripts/lit-components/pl-viewport/pl-viewport.js b/packages/uikit-workshop/src/scripts/lit-components/pl-viewport/pl-viewport.js index 342f31035..79f6a9cf1 100644 --- a/packages/uikit-workshop/src/scripts/lit-components/pl-viewport/pl-viewport.js +++ b/packages/uikit-workshop/src/scripts/lit-components/pl-viewport/pl-viewport.js @@ -387,7 +387,8 @@ class IFrame extends BaseLitComponent { * Workaround to avoiding an infinite loop (if using srcdoc) which breaks the ability to * hit the back button if you hit a 404 */ - this.iframe.contentWindow.document.body.innerHTML = this.iframe404Fallback; + this.iframe.contentWindow.document.body.innerHTML = + this.iframe404Fallback; } }, 100); } From 5367e6052c8a7a59dae062129c334140550f6248 Mon Sep 17 00:00:00 2001 From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> Date: Tue, 30 Nov 2021 20:53:01 +0100 Subject: [PATCH 09/11] chore: code optimizations From 03b5763e1ca23695cf6222b88c71c904691a633e Mon Sep 17 00:00:00 2001 From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> Date: Sat, 4 Dec 2021 09:13:47 +0100 Subject: [PATCH 10/11] refactor: prettier code formatting --- .../files/_handlebars-test-patterns/atoms/global/_hidden.hbs | 2 +- .../atoms/global/helloworld-withdata.hbs | 2 +- .../_handlebars-test-patterns/atoms/global/helloworld.hbs | 2 +- packages/engine-twig/lib/engine_twig.js | 3 ++- packages/uikit-workshop/src/html/partials/base-template.html | 5 +---- packages/uikit-workshop/webpack.config.js | 2 +- 6 files changed, 7 insertions(+), 9 deletions(-) diff --git a/packages/core/test/files/_handlebars-test-patterns/atoms/global/_hidden.hbs b/packages/core/test/files/_handlebars-test-patterns/atoms/global/_hidden.hbs index b2c93a13e..0908c6843 100644 --- a/packages/core/test/files/_handlebars-test-patterns/atoms/global/_hidden.hbs +++ b/packages/core/test/files/_handlebars-test-patterns/atoms/global/_hidden.hbs @@ -1 +1 @@ -I'm the hidden atom +I'm the hidden atom \ No newline at end of file diff --git a/packages/core/test/files/_handlebars-test-patterns/atoms/global/helloworld-withdata.hbs b/packages/core/test/files/_handlebars-test-patterns/atoms/global/helloworld-withdata.hbs index 30c6ff45a..81bc7229a 100644 --- a/packages/core/test/files/_handlebars-test-patterns/atoms/global/helloworld-withdata.hbs +++ b/packages/core/test/files/_handlebars-test-patterns/atoms/global/helloworld-withdata.hbs @@ -1,2 +1,2 @@ Hello world! -{{subtitle}} +{{subtitle}} \ No newline at end of file diff --git a/packages/core/test/files/_handlebars-test-patterns/atoms/global/helloworld.hbs b/packages/core/test/files/_handlebars-test-patterns/atoms/global/helloworld.hbs index cd0875583..6769dd60b 100644 --- a/packages/core/test/files/_handlebars-test-patterns/atoms/global/helloworld.hbs +++ b/packages/core/test/files/_handlebars-test-patterns/atoms/global/helloworld.hbs @@ -1 +1 @@ -Hello world! +Hello world! \ No newline at end of file diff --git a/packages/engine-twig/lib/engine_twig.js b/packages/engine-twig/lib/engine_twig.js index 76308ecef..89dac691b 100644 --- a/packages/engine-twig/lib/engine_twig.js +++ b/packages/engine-twig/lib/engine_twig.js @@ -124,7 +124,8 @@ var engine_twig = { engineFileExtension: '.twig', // regexes, stored here so they're only compiled once - findPartialsRE: /{%[-]?\s*(?:extends|include|embed|from|import|use)\s+('[^']+'|"[^"]+").*?%}/g, + findPartialsRE: + /{%[-]?\s*(?:extends|include|embed|from|import|use)\s+('[^']+'|"[^"]+").*?%}/g, findPartialKeyRE: /"((?:\\.|[^"\\])*)"/, findListItemsRE: /({{#( )?)(list(I|i)tems.)(one|two|three|four|five|six|seven|eight|nine|ten|eleven|twelve|thirteen|fourteen|fifteen|sixteen|seventeen|eighteen|nineteen|twenty)( )?}}/g, // TODO diff --git a/packages/uikit-workshop/src/html/partials/base-template.html b/packages/uikit-workshop/src/html/partials/base-template.html index 5f47c91a7..799af572b 100755 --- a/packages/uikit-workshop/src/html/partials/base-template.html +++ b/packages/uikit-workshop/src/html/partials/base-template.html @@ -2,10 +2,7 @@ {{# descBlockExists }}
{{# isPatternView }} diff --git a/packages/uikit-workshop/webpack.config.js b/packages/uikit-workshop/webpack.config.js index 1911b0953..9d0a1338a 100644 --- a/packages/uikit-workshop/webpack.config.js +++ b/packages/uikit-workshop/webpack.config.js @@ -120,7 +120,7 @@ module.exports = function (apiConfig) { options: { sassOptions: { sourceMap: config.sourceMaps, - outputStyle: 'expanded' + outputStyle: 'expanded', }, }, }, From c1d26f3c75edd66f6e2bbbb8bbbe1e5ed2423e58 Mon Sep 17 00:00:00 2001 From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> Date: Sat, 4 Dec 2021 09:22:08 +0100 Subject: [PATCH 11/11] Revert "refactor: prettier code formatting" This reverts commit 03b5763e1ca23695cf6222b88c71c904691a633e. --- .../files/_handlebars-test-patterns/atoms/global/_hidden.hbs | 2 +- .../atoms/global/helloworld-withdata.hbs | 2 +- .../_handlebars-test-patterns/atoms/global/helloworld.hbs | 2 +- packages/engine-twig/lib/engine_twig.js | 3 +-- packages/uikit-workshop/src/html/partials/base-template.html | 5 ++++- packages/uikit-workshop/webpack.config.js | 2 +- 6 files changed, 9 insertions(+), 7 deletions(-) diff --git a/packages/core/test/files/_handlebars-test-patterns/atoms/global/_hidden.hbs b/packages/core/test/files/_handlebars-test-patterns/atoms/global/_hidden.hbs index 0908c6843..b2c93a13e 100644 --- a/packages/core/test/files/_handlebars-test-patterns/atoms/global/_hidden.hbs +++ b/packages/core/test/files/_handlebars-test-patterns/atoms/global/_hidden.hbs @@ -1 +1 @@ -I'm the hidden atom \ No newline at end of file +I'm the hidden atom diff --git a/packages/core/test/files/_handlebars-test-patterns/atoms/global/helloworld-withdata.hbs b/packages/core/test/files/_handlebars-test-patterns/atoms/global/helloworld-withdata.hbs index 81bc7229a..30c6ff45a 100644 --- a/packages/core/test/files/_handlebars-test-patterns/atoms/global/helloworld-withdata.hbs +++ b/packages/core/test/files/_handlebars-test-patterns/atoms/global/helloworld-withdata.hbs @@ -1,2 +1,2 @@ Hello world! -{{subtitle}} \ No newline at end of file +{{subtitle}} diff --git a/packages/core/test/files/_handlebars-test-patterns/atoms/global/helloworld.hbs b/packages/core/test/files/_handlebars-test-patterns/atoms/global/helloworld.hbs index 6769dd60b..cd0875583 100644 --- a/packages/core/test/files/_handlebars-test-patterns/atoms/global/helloworld.hbs +++ b/packages/core/test/files/_handlebars-test-patterns/atoms/global/helloworld.hbs @@ -1 +1 @@ -Hello world! \ No newline at end of file +Hello world! diff --git a/packages/engine-twig/lib/engine_twig.js b/packages/engine-twig/lib/engine_twig.js index 89dac691b..76308ecef 100644 --- a/packages/engine-twig/lib/engine_twig.js +++ b/packages/engine-twig/lib/engine_twig.js @@ -124,8 +124,7 @@ var engine_twig = { engineFileExtension: '.twig', // regexes, stored here so they're only compiled once - findPartialsRE: - /{%[-]?\s*(?:extends|include|embed|from|import|use)\s+('[^']+'|"[^"]+").*?%}/g, + findPartialsRE: /{%[-]?\s*(?:extends|include|embed|from|import|use)\s+('[^']+'|"[^"]+").*?%}/g, findPartialKeyRE: /"((?:\\.|[^"\\])*)"/, findListItemsRE: /({{#( )?)(list(I|i)tems.)(one|two|three|four|five|six|seven|eight|nine|ten|eleven|twelve|thirteen|fourteen|fifteen|sixteen|seventeen|eighteen|nineteen|twenty)( )?}}/g, // TODO diff --git a/packages/uikit-workshop/src/html/partials/base-template.html b/packages/uikit-workshop/src/html/partials/base-template.html index 799af572b..5f47c91a7 100755 --- a/packages/uikit-workshop/src/html/partials/base-template.html +++ b/packages/uikit-workshop/src/html/partials/base-template.html @@ -2,7 +2,10 @@ {{# descBlockExists }}
{{# isPatternView }} diff --git a/packages/uikit-workshop/webpack.config.js b/packages/uikit-workshop/webpack.config.js index 9d0a1338a..1911b0953 100644 --- a/packages/uikit-workshop/webpack.config.js +++ b/packages/uikit-workshop/webpack.config.js @@ -120,7 +120,7 @@ module.exports = function (apiConfig) { options: { sassOptions: { sourceMap: config.sourceMaps, - outputStyle: 'expanded', + outputStyle: 'expanded' }, }, },