Skip to content

Commit d6ba41c

Browse files
Merge pull request #840 from pattern-lab/feature/uikit-refactor
Feature/uikit refactor
2 parents 3d121b7 + 87c9d0d commit d6ba41c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1612
-910
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
},
1111
"nyc": {
1212
"exclude": [
13-
"**/*_tests.js"
13+
"**/*_tests.js",
14+
"packages/core/test/**",
15+
"packages/live-server/*"
1416
]
1517
}
1618
}

packages/cli/bin/cli-actions/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ const config = Object.assign(patternlab.getDefaultConfig(), {
55
});
66

77
module.exports = ({ version }) =>
8-
`${version} (PatternLab Node Core version: ${patternlab(config).v()})`;
8+
`${version} (PatternLab Node Core version: ${patternlab(config).version()})`;

packages/cli/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"author": {
99
"name": "Raphael Okon"
1010
},
11-
"private": true,
1211
"dependencies": {
1312
"@pattern-lab/core": "^3.0.0-alpha.11",
1413
"@pattern-lab/live-server": "^1.3.3-alpha.2",

packages/core/docs/README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,7 @@ Many of these functions are exposed to users within [Editions](https://github.co
2626
Returns the standardized default config used to run Pattern Lab. This method can be called statically or after instantiation.
2727

2828
**Returns**: <code>object</code> - Returns the object representation of the `patternlab-config.json`
29-
## `version()` ⇒ <code>void</code>
30-
31-
Logs current version to standard output
32-
33-
**Returns**: <code>void</code> - current patternlab-node version as defined in `package.json`
34-
## `v()` ⇒ <code>string</code>
29+
## `version()` ⇒ <code>string</code>
3530

3631
Returns current version
3732

@@ -63,7 +58,7 @@ Many of these functions are exposed to users within [Editions](https://github.co
6358

6459
Logs usage to standard output
6560

66-
**Returns**: <code>void</code> - pattern lab API usage, as console output
61+
**Returns**: <code>void</code> - Pattern Lab API usage, as console output
6762
## `installplugin(pluginName)` ⇒ <code>void</code>
6863

6964
Installs plugin already available via `node_modules/`

packages/core/patternlab-config.json

Lines changed: 40 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -32,35 +32,40 @@
3232
"markupOnly": ".markup-only"
3333
},
3434
"paths" : {
35-
"source" : {
35+
"source": {
3636
"root": "./source/",
37-
"patterns" : "./source/_patterns/",
38-
"data" : "./source/_data/",
37+
"patterns": "./source/_patterns/",
38+
"data": "./source/_data/",
3939
"meta": "./source/_meta/",
40-
"annotations" : "./source/_annotations/",
41-
"styleguide" : "./node_modules/@pattern-lab/uikit-workshop/dist/",
42-
"patternlabFiles" : {
43-
"general-header": "./node_modules/@pattern-lab/uikit-workshop/views/partials/general-header.mustache",
44-
"general-footer": "./node_modules/@pattern-lab/uikit-workshop/views/partials/general-footer.mustache",
45-
"patternSection": "./node_modules/@pattern-lab/uikit-workshop/views/partials/patternSection.mustache",
46-
"patternSectionSubtype": "./node_modules/@pattern-lab/uikit-workshop/views/partials/patternSectionSubtype.mustache",
47-
"viewall": "./node_modules/@pattern-lab/uikit-workshop/views/viewall.mustache"
40+
"annotations": "./source/_annotations/",
41+
"styleguide": "dist/",
42+
"patternlabFiles": {
43+
"general-header":
44+
"views/partials/general-header.mustache",
45+
"general-footer":
46+
"views/partials/general-footer.mustache",
47+
"patternSection":
48+
"views/partials/patternSection.mustache",
49+
"patternSectionSubtype":
50+
"views/partials/patternSectionSubtype.mustache",
51+
"viewall":
52+
"views/viewall.mustache"
4853
},
49-
"js" : "./source/js",
50-
"images" : "./source/images",
51-
"fonts" : "./source/fonts",
52-
"css" : "./source/css/"
54+
"js": "./source/js",
55+
"images": "./source/images",
56+
"fonts": "./source/fonts",
57+
"css": "./source/css"
5358
},
54-
"public" : {
55-
"root" : "./public/",
56-
"patterns" : "./public/patterns/",
57-
"data" : "./public/styleguide/data/",
58-
"annotations" : "./public/annotations/",
59-
"styleguide" : "./public/styleguide/",
60-
"js" : "./public/js",
61-
"images" : "./public/images",
62-
"fonts" : "./public/fonts",
63-
"css" : "./public/css"
59+
"public": {
60+
"root": "public/",
61+
"patterns": "public/patterns/",
62+
"data": "public/styleguide/data/",
63+
"annotations": "public/annotations/",
64+
"styleguide": "public/styleguide/",
65+
"js": "public/js",
66+
"images": "public/images",
67+
"fonts": "public/fonts",
68+
"css": "public/css"
6469
}
6570
},
6671
"patternExtension": "mustache",
@@ -77,5 +82,14 @@
7782
"color": "dark",
7883
"density": "compact",
7984
"layout": "horizontal"
80-
}
85+
},
86+
"uikits": [
87+
{
88+
"name": "uikit-workshop",
89+
"outputDir": "",
90+
"enabled": true,
91+
"excludedPatternStates": [],
92+
"excludedTags": []
93+
}
94+
]
8195
}

0 commit comments

Comments
 (0)