Skip to content

Commit

Permalink
Merge pull request #840 from pattern-lab/feature/uikit-refactor
Browse files Browse the repository at this point in the history
Feature/uikit refactor
  • Loading branch information
bmuenzenmeyer authored Apr 27, 2018
2 parents 3d121b7 + 87c9d0d commit d6ba41c
Show file tree
Hide file tree
Showing 44 changed files with 1,612 additions and 910 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
},
"nyc": {
"exclude": [
"**/*_tests.js"
"**/*_tests.js",
"packages/core/test/**",
"packages/live-server/*"
]
}
}
2 changes: 1 addition & 1 deletion packages/cli/bin/cli-actions/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ const config = Object.assign(patternlab.getDefaultConfig(), {
});

module.exports = ({ version }) =>
`${version} (PatternLab Node Core version: ${patternlab(config).v()})`;
`${version} (PatternLab Node Core version: ${patternlab(config).version()})`;
1 change: 0 additions & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"author": {
"name": "Raphael Okon"
},
"private": true,
"dependencies": {
"@pattern-lab/core": "^3.0.0-alpha.11",
"@pattern-lab/live-server": "^1.3.3-alpha.2",
Expand Down
9 changes: 2 additions & 7 deletions packages/core/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,7 @@ Many of these functions are exposed to users within [Editions](https://github.co
Returns the standardized default config used to run Pattern Lab. This method can be called statically or after instantiation.

**Returns**: <code>object</code> - Returns the object representation of the `patternlab-config.json`
## `version()` ⇒ <code>void</code>

Logs current version to standard output

**Returns**: <code>void</code> - current patternlab-node version as defined in `package.json`
## `v()` ⇒ <code>string</code>
## `version()` ⇒ <code>string</code>

Returns current version

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

Logs usage to standard output

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

Installs plugin already available via `node_modules/`
Expand Down
66 changes: 40 additions & 26 deletions packages/core/patternlab-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,35 +32,40 @@
"markupOnly": ".markup-only"
},
"paths" : {
"source" : {
"source": {
"root": "./source/",
"patterns" : "./source/_patterns/",
"data" : "./source/_data/",
"patterns": "./source/_patterns/",
"data": "./source/_data/",
"meta": "./source/_meta/",
"annotations" : "./source/_annotations/",
"styleguide" : "./node_modules/@pattern-lab/uikit-workshop/dist/",
"patternlabFiles" : {
"general-header": "./node_modules/@pattern-lab/uikit-workshop/views/partials/general-header.mustache",
"general-footer": "./node_modules/@pattern-lab/uikit-workshop/views/partials/general-footer.mustache",
"patternSection": "./node_modules/@pattern-lab/uikit-workshop/views/partials/patternSection.mustache",
"patternSectionSubtype": "./node_modules/@pattern-lab/uikit-workshop/views/partials/patternSectionSubtype.mustache",
"viewall": "./node_modules/@pattern-lab/uikit-workshop/views/viewall.mustache"
"annotations": "./source/_annotations/",
"styleguide": "dist/",
"patternlabFiles": {
"general-header":
"views/partials/general-header.mustache",
"general-footer":
"views/partials/general-footer.mustache",
"patternSection":
"views/partials/patternSection.mustache",
"patternSectionSubtype":
"views/partials/patternSectionSubtype.mustache",
"viewall":
"views/viewall.mustache"
},
"js" : "./source/js",
"images" : "./source/images",
"fonts" : "./source/fonts",
"css" : "./source/css/"
"js": "./source/js",
"images": "./source/images",
"fonts": "./source/fonts",
"css": "./source/css"
},
"public" : {
"root" : "./public/",
"patterns" : "./public/patterns/",
"data" : "./public/styleguide/data/",
"annotations" : "./public/annotations/",
"styleguide" : "./public/styleguide/",
"js" : "./public/js",
"images" : "./public/images",
"fonts" : "./public/fonts",
"css" : "./public/css"
"public": {
"root": "public/",
"patterns": "public/patterns/",
"data": "public/styleguide/data/",
"annotations": "public/annotations/",
"styleguide": "public/styleguide/",
"js": "public/js",
"images": "public/images",
"fonts": "public/fonts",
"css": "public/css"
}
},
"patternExtension": "mustache",
Expand All @@ -77,5 +82,14 @@
"color": "dark",
"density": "compact",
"layout": "horizontal"
}
},
"uikits": [
{
"name": "uikit-workshop",
"outputDir": "",
"enabled": true,
"excludedPatternStates": [],
"excludedTags": []
}
]
}
Loading

0 comments on commit d6ba41c

Please sign in to comment.