Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Commit b48bacc

Browse files
authored
Release 1.2.0
Release 1.2.0
2 parents e701350 + 788064d commit b48bacc

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

Gruntfile.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ module.exports = function (grunt) {
4848
pl.help();
4949
}
5050

51-
if (arg && arg === "starterkit-list") {
51+
if (arg && arg === "liststarterkits") {
5252
pl.liststarterkits();
5353
}
5454

55-
if (arg && arg === "starterkit-load") {
56-
pl.loadstarterkit(argv.kit);
55+
if (arg && arg === "loadstarterkit") {
56+
pl.loadstarterkit(argv.kit, argv.clean);
5757
}
5858

5959
if (arg && (arg !== "version" && arg !== "patternsonly" && arg !== "help" && arg !== "starterkit-list" && arg !== "starterkit-load")) {
@@ -71,9 +71,11 @@ module.exports = function (grunt) {
7171
main: {
7272
files: [
7373
{ expand: true, cwd: path.resolve(paths().source.js), src: '**/*.js', dest: path.resolve(paths().public.js) },
74-
{ expand: true, cwd: path.resolve(paths().source.css), src: '*.css', dest: path.resolve(paths().public.css) },
75-
{ expand: true, cwd: path.resolve(paths().source.images), src: '*', dest: path.resolve(paths().public.images) },
76-
{ expand: true, cwd: path.resolve(paths().source.fonts), src: '*', dest: path.resolve(paths().public.fonts) },
74+
{ expand: true, cwd: path.resolve(paths().source.js), src: '**/*.js.map', dest: path.resolve(paths().public.js) },
75+
{ expand: true, cwd: path.resolve(paths().source.css), src: '**/*.css', dest: path.resolve(paths().public.css) },
76+
{ expand: true, cwd: path.resolve(paths().source.css), src: '**/*.css.map', dest: path.resolve(paths().public.css) },
77+
{ expand: true, cwd: path.resolve(paths().source.images), src: '**/*', dest: path.resolve(paths().public.images) },
78+
{ expand: true, cwd: path.resolve(paths().source.fonts), src: '**/*', dest: path.resolve(paths().public.fonts) },
7779
{ expand: true, cwd: path.resolve(paths().source.root), src: 'favicon.ico', dest: path.resolve(paths().public.root) },
7880
{ expand: true, cwd: path.resolve(paths().source.styleguide), src: ['*', '**'], dest: path.resolve(paths().public.root) },
7981
// slightly inefficient to do this again - I am not a grunt glob master. someone fix
@@ -151,6 +153,7 @@ module.exports = function (grunt) {
151153
******************************************************/
152154

153155
grunt.registerTask('default', ['patternlab', 'copy:main']);
156+
grunt.registerTask('patternlab:build', ['patternlab', 'copy:main']);
154157
grunt.registerTask('patternlab:watch', ['patternlab', 'copy:main', 'watch:all']);
155158
grunt.registerTask('patternlab:serve', ['patternlab', 'copy:main', 'browserSync', 'watch:all']);
156159

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ To list all available commands type:
8080
8181
To generate the front-end for Pattern Lab type:
8282
83-
grunt patternlab:build
83+
grunt
8484
8585
### Watch for changes and re-generate Pattern Lab
8686

patternlab-config.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,6 @@
5555
"ishMinimum": "240",
5656
"ishMaximum": "2600",
5757
"patternStateCascade": ["inprogress", "inreview", "complete"],
58-
"patternStates": {
59-
"molecules-single-comment" : "complete",
60-
"organisms-sticky-comment" : "inreview",
61-
"templates-article" : "complete"
62-
},
6358
"patternExportPatternPartials": [],
6459
"patternExportDirectory": "./pattern_exports/",
6560
"baseurl" : "",

0 commit comments

Comments
 (0)