You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Gruntfile.js
+26-26Lines changed: 26 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -15,52 +15,52 @@ module.exports = function (grunt) {
15
15
banner: '/* \n * <%= pkg.name %> - v<%= pkg.version %> - <%= grunt.template.today("yyyy") %> \n * \n * <%= pkg.author %>, and the web community.\n * Licensed under the <%= pkg.license %> license. \n * \n * Many thanks to Brad Frost and Dave Olsen for inspiration, encouragement, and advice. \n *\n */\n\n',
16
16
},
17
17
patternlab: {
18
-
src: './builder/patternlab.js',
19
-
dest: './builder/patternlab.js'
18
+
src: './core/lib/patternlab.js',
19
+
dest: './core/lib/patternlab.js'
20
20
},
21
21
object_factory: {
22
-
src: './builder/object_factory.js',
23
-
dest: './builder/object_factory.js'
22
+
src: './core/lib/object_factory.js',
23
+
dest: './core/lib/object_factory.js'
24
24
},
25
25
lineage: {
26
-
src: './builder/lineage_hunter.js',
27
-
dest: './builder/lineage_hunter.js'
26
+
src: './core/lib/lineage_hunter.js',
27
+
dest: './core/lib/lineage_hunter.js'
28
28
},
29
29
media_hunter: {
30
-
src: './builder/media_hunter.js',
31
-
dest: './builder/media_hunter.js'
30
+
src: './core/lib/media_hunter.js',
31
+
dest: './core/lib/media_hunter.js'
32
32
},
33
33
patternlab_grunt: {
34
-
src: './builder/patternlab_grunt.js',
35
-
dest: './builder/patternlab_grunt.js'
34
+
src: './core/lib/patternlab_grunt.js',
35
+
dest: './core/lib/patternlab_grunt.js'
36
36
},
37
37
patternlab_gulp: {
38
-
src: './builder/patternlab_gulp.js',
39
-
dest: './builder/patternlab_gulp.js'
38
+
src: './core/lib/patternlab_gulp.js',
39
+
dest: './core/lib/patternlab_gulp.js'
40
40
},
41
41
parameter_hunter: {
42
-
src: './builder/parameter_hunter.js',
43
-
dest: './builder/parameter_hunter.js'
42
+
src: './core/lib/parameter_hunter.js',
43
+
dest: './core/lib/parameter_hunter.js'
44
44
},
45
45
pattern_exporter: {
46
-
src: './builder/pattern_exporter.js',
47
-
dest: './builder/pattern_exporter.js'
46
+
src: './core/lib/pattern_exporter.js',
47
+
dest: './core/lib/pattern_exporter.js'
48
48
},
49
49
pattern_assembler: {
50
-
src: './builder/pattern_assembler.js',
51
-
dest: './builder/pattern_assembler.js'
50
+
src: './core/lib/pattern_assembler.js',
51
+
dest: './core/lib/pattern_assembler.js'
52
52
},
53
53
pseudopattern_hunter: {
54
-
src: './builder/pseudopattern_hunter.js',
55
-
dest: './builder/pseudopattern_hunter.js'
54
+
src: './core/lib/pseudopattern_hunter.js',
55
+
dest: './core/lib/pseudopattern_hunter.js'
56
56
},
57
57
list_item_hunter: {
58
-
src: './builder/list_item_hunter.js',
59
-
dest: './builder/list_item_hunter.js'
58
+
src: './core/lib/list_item_hunter.js',
59
+
dest: './core/lib/list_item_hunter.js'
60
60
},
61
61
style_modifier_hunter: {
62
-
src: './builder/style_modifier_hunter.js',
63
-
dest: './builder/style_modifier_hunter.js'
62
+
src: './core/lib/style_modifier_hunter.js',
63
+
dest: './core/lib/style_modifier_hunter.js'
64
64
}
65
65
},
66
66
copy: {
@@ -142,7 +142,7 @@ module.exports = function (grunt) {
142
142
options: {
143
143
configFile: './.eslintrc'
144
144
},
145
-
target: ['./builder/*']
145
+
target: ['./core/lib/*']
146
146
},
147
147
bsReload: {
148
148
css: path.resolve(paths().public.root+'**/*.css')
@@ -153,7 +153,7 @@ module.exports = function (grunt) {
Copy file name to clipboardExpand all lines: README.md
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,8 +34,8 @@ This repository ships with two `package.json` files, a `Gruntfile.js`, and a `gu
34
34
To run patternlab-node using grunt, do the following in the directory you downloaded and extracted the zipped release:
35
35
36
36
1. Run `npm install` from the command line
37
-
2. Optionally, delete `package.gulp.json`, `gulpfile.js`, and `builder/patternlab_gulp.js` files if you are certain you don't need it.
38
-
* Not deleting `builder/patternlab_gulp.js` may cause a harmless error when running grunt. Delete it.
37
+
2. Optionally, delete `package.gulp.json`, `gulpfile.js`, and `core/lib/patternlab_gulp.js` files if you are certain you don't need it.
38
+
* Not deleting `core/lib/patternlab_gulp.js` may cause a harmless error when running grunt. Delete it.
39
39
3. Run `grunt` or `grunt serve` from the command line
40
40
41
41
This creates all patterns, the styleguide, and the pattern lab site. It's strongly recommended to run `grunt serve` to have BrowserSync spin up and serve the files to you.
@@ -164,6 +164,16 @@ Pattern states should be lowercase and use hyphens where spaces are present.
164
164
165
165
Coupled with exported css (much easier to extract with existing tools like [grunt-contrib-copy](https://github.com/gruntjs/grunt-contrib-copy)), pattern export can help to maintain the relevancy of the design system by directly placing partials in a directory of your choosing.
166
166
167
+
##### cacheBust
168
+
`config.json` has this flag to instruct Pattern Lab to append a unique query string to Javascript and CSS assets throughout the frontend.
169
+
170
+
```
171
+
"cacheBust": true
172
+
```
173
+
174
+
Default: true
175
+
176
+
167
177
##### baseurl
168
178
169
179
If your instance of Pattern Lab lives in a subdirectory of your server, for instance on github pages (ex: yourusername.github.io/patterns-demo/), then add the baseurl here. The baseurl is everything after the hostname - ie: `patterns-demo`
0 commit comments