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

Commit

Permalink
Release 1.2.0
Browse files Browse the repository at this point in the history
Release 1.2.0
  • Loading branch information
tburny authored Feb 23, 2017
2 parents e701350 + 788064d commit b48bacc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
15 changes: 9 additions & 6 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ module.exports = function (grunt) {
pl.help();
}

if (arg && arg === "starterkit-list") {
if (arg && arg === "liststarterkits") {
pl.liststarterkits();
}

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

if (arg && (arg !== "version" && arg !== "patternsonly" && arg !== "help" && arg !== "starterkit-list" && arg !== "starterkit-load")) {
Expand All @@ -71,9 +71,11 @@ 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.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) },
{ 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
Expand Down Expand Up @@ -151,6 +153,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']);

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions patternlab-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" : "",
Expand Down

0 comments on commit b48bacc

Please sign in to comment.