From 39e12c6e6c0491b3499f280e4e61b3290c4bc9b9 Mon Sep 17 00:00:00 2001 From: BRIAN MUENZENMEYER Date: Tue, 30 Aug 2016 00:04:00 -0500 Subject: [PATCH 1/6] standardize the arguments for styleguidekits --- Gruntfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 06e694e..172304f 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -48,11 +48,11 @@ module.exports = function (grunt) { pl.help(); } - if (arg && arg === "starterkit-list") { + if (arg && arg === "liststarterkits") { pl.liststarterkits(); } - if (arg && arg === "starterkit-load") { + if (arg && arg === "loadstarterkit") { pl.loadstarterkit(argv.kit); } From 870deb5df9c16ea5ed6fc3d820bdc24985333e48 Mon Sep 17 00:00:00 2001 From: Chris Green Date: Wed, 31 Aug 2016 11:42:11 +0100 Subject: [PATCH 2/6] Fix documented but broken "patternlab:build" task in Grunt --- Gruntfile.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Gruntfile.js b/Gruntfile.js index 172304f..f3f6d90 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -151,6 +151,7 @@ module.exports = function (grunt) { ******************************************************/ grunt.registerTask('default', ['patternlab', 'copy:main']); + grunt.registerTask('patternlab:build', ['patternlab', 'copy:main']); grunt.registerTask('patternlab:watch', ['patternlab', 'copy:main', 'watch:all']); grunt.registerTask('patternlab:serve', ['patternlab', 'copy:main', 'browserSync', 'watch:all']); From 5ad5bf7158ae28176025f100de65a14e530eee42 Mon Sep 17 00:00:00 2001 From: Tim Berman Date: Fri, 24 Feb 2017 01:37:44 +1100 Subject: [PATCH 3/6] Correct documentation around build command (#22) - Correct grunt config as it was not copying nested directories and files - Correct build command in documenation as `patternlab:build` does not copy files. --- Gruntfile.js | 6 +++--- README.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index f3f6d90..cd4cc37 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -71,9 +71,9 @@ module.exports = function (grunt) { main: { files: [ { expand: true, cwd: path.resolve(paths().source.js), src: '**/*.js', dest: path.resolve(paths().public.js) }, - { expand: true, cwd: path.resolve(paths().source.css), src: '*.css', dest: path.resolve(paths().public.css) }, - { expand: true, cwd: path.resolve(paths().source.images), src: '*', dest: path.resolve(paths().public.images) }, - { expand: true, cwd: path.resolve(paths().source.fonts), src: '*', dest: path.resolve(paths().public.fonts) }, + { expand: true, cwd: path.resolve(paths().source.css), src: '**/*.css', dest: path.resolve(paths().public.css) }, + { expand: true, cwd: path.resolve(paths().source.images), src: '**/*', dest: path.resolve(paths().public.images) }, + { expand: true, cwd: path.resolve(paths().source.fonts), src: '**/*', dest: path.resolve(paths().public.fonts) }, { expand: true, cwd: path.resolve(paths().source.root), src: 'favicon.ico', dest: path.resolve(paths().public.root) }, { expand: true, cwd: path.resolve(paths().source.styleguide), src: ['*', '**'], dest: path.resolve(paths().public.root) }, // slightly inefficient to do this again - I am not a grunt glob master. someone fix diff --git a/README.md b/README.md index 3a1e1d6..8dfd38c 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,7 @@ To list all available commands type: To generate the front-end for Pattern Lab type: - grunt patternlab:build + grunt ### Watch for changes and re-generate Pattern Lab From 98cbbaf9705bd0b2a50ab2c73e0b24d9fdbe351d Mon Sep 17 00:00:00 2001 From: Tom McCaffery Date: Thu, 23 Feb 2017 09:42:13 -0500 Subject: [PATCH 4/6] Copy CSS and JS sourcemaps if they exist (#20) --- Gruntfile.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index cd4cc37..964f7a6 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -71,7 +71,9 @@ module.exports = function (grunt) { main: { files: [ { expand: true, cwd: path.resolve(paths().source.js), src: '**/*.js', dest: path.resolve(paths().public.js) }, - { expand: true, cwd: path.resolve(paths().source.css), src: '**/*.css', dest: path.resolve(paths().public.css) }, + { expand: true, cwd: path.resolve(paths().source.js), src: '**/*.js.map', dest: path.resolve(paths().public.js) }, + { expand: true, cwd: path.resolve(paths().source.css), src: '**/*.css', dest: path.resolve(paths().public.css) }, + { expand: true, cwd: path.resolve(paths().source.css), src: '**/*.css.map', dest: path.resolve(paths().public.css) }, { expand: true, cwd: path.resolve(paths().source.images), src: '**/*', dest: path.resolve(paths().public.images) }, { expand: true, cwd: path.resolve(paths().source.fonts), src: '**/*', dest: path.resolve(paths().public.fonts) }, { expand: true, cwd: path.resolve(paths().source.root), src: 'favicon.ico', dest: path.resolve(paths().public.root) }, From a653be646502f8cd55f5dcd71f91b0a636cc621f Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 23 Feb 2017 10:01:13 -0500 Subject: [PATCH 5/6] add clean argument param to loadstarterkit function call (#21) --- Gruntfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 964f7a6..c3bdd63 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -53,7 +53,7 @@ module.exports = function (grunt) { } if (arg && arg === "loadstarterkit") { - pl.loadstarterkit(argv.kit); + pl.loadstarterkit(argv.kit, argv.clean); } if (arg && (arg !== "version" && arg !== "patternsonly" && arg !== "help" && arg !== "starterkit-list" && arg !== "starterkit-load")) { From 788064d0b056d1dc148c9e2392c0ab1850792d69 Mon Sep 17 00:00:00 2001 From: Ben Halverson Date: Thu, 23 Feb 2017 07:13:08 -0800 Subject: [PATCH 6/6] removed patterState object from patternlab-config.json (#25) --- patternlab-config.json | 5 ----- 1 file changed, 5 deletions(-) diff --git a/patternlab-config.json b/patternlab-config.json index f0ca808..51c09e7 100644 --- a/patternlab-config.json +++ b/patternlab-config.json @@ -55,11 +55,6 @@ "ishMinimum": "240", "ishMaximum": "2600", "patternStateCascade": ["inprogress", "inreview", "complete"], - "patternStates": { - "molecules-single-comment" : "complete", - "organisms-sticky-comment" : "inreview", - "templates-article" : "complete" - }, "patternExportPatternPartials": [], "patternExportDirectory": "./pattern_exports/", "baseurl" : "",