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

Commit 5ad5bf7

Browse files
u982744tburny
authored andcommitted
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.
1 parent 972cb1e commit 5ad5bf7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Gruntfile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ 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.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) },
7777
{ expand: true, cwd: path.resolve(paths().source.root), src: 'favicon.ico', dest: path.resolve(paths().public.root) },
7878
{ expand: true, cwd: path.resolve(paths().source.styleguide), src: ['*', '**'], dest: path.resolve(paths().public.root) },
7979
// slightly inefficient to do this again - I am not a grunt glob master. someone fix

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

0 commit comments

Comments
 (0)