This repository has been archived by the owner on Dec 10, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from pattern-lab/3.0
Pattern Lab Node Edition 1.0.0-alpha.1
- Loading branch information
Showing
17 changed files
with
175 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
This is another simple example, which we wrapped with an `npm` script inside package.json | ||
*/ | ||
const config = require('./../patternlab-config.json'); | ||
const patternlab = require('@pattern-lab/patternlab-node')(config); | ||
|
||
patternlab.build(() => { | ||
// use the callback | ||
}, { | ||
cleanPublic: true | ||
}).then(() => { | ||
// or do something else when this promise resolves | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* | ||
This is another simple example, which we wrapped with an `npm` script inside package.json | ||
*/ | ||
const config = require('./../patternlab-config.json'); | ||
const patternlab = require('@pattern-lab/patternlab-node')(config); | ||
|
||
patternlab.help(); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
This is another simple example, which we wrapped with an `npm` script inside package.json | ||
*/ | ||
const config = require('./../patternlab-config.json'); | ||
const patternlab = require('@pattern-lab/patternlab-node')(config); | ||
|
||
patternlab.serve(() => { | ||
// use the callback | ||
}, { | ||
cleanPublic: true, | ||
}).then(() => { | ||
// or do something else when this promise resolves | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
This is the default location to place annotations. | ||
|
||
Pattern Lab uses annotations defined here to markup the UI. Read more about [annotations](http://patternlab.io/docs/pattern-adding-annotations.html). | ||
|
||
If you wish to rename this directory, make sure you update the `paths.source.annotations` property within `patternlab-config.json`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
This is the default location to place global data files. | ||
|
||
Pattern Lab uses data defined here as the global fallback if a template does not provide its own data. Read more about [data](http://patternlab.io/docs/data-overview.html). | ||
|
||
If you wish to rename this directory, make sure you update the `paths.source.data` property within `patternlab-config.json`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
This is the default location to place meta files, otherwise known a pattern's header and footer. | ||
|
||
Pattern Lab builds each pattern while prepending and appending the header and footer. Read more about [pattern headers and footers](http://patternlab.io/docs/pattern-header-footer.html). | ||
|
||
If you wish to rename this directory, make sure you update the `paths.source.meta` property within `patternlab-config.json`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
This is the default location to place pattern files. | ||
|
||
Pattern Lab builds patterns and the ui from the structure defined within. Read more about [pattern organization](http://patternlab.io/docs/pattern-organization.html). | ||
|
||
If you wish to rename this directory, make sure you update the `paths.source.patterns` property within `patternlab-config.json`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
This is the default location to place global css files. | ||
|
||
The entire contents of this directory will be recursively copied to your configured `public/` directory. | ||
|
||
If you wish to rename this directory, make sure you update the `paths.source.css` property within `patternlab-config.json`. |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
This is the default location to place global font files. | ||
|
||
The entire contents of this directory will be recursively copied to your configured `public/` directory. | ||
|
||
If you wish to rename this directory, make sure you update the `paths.source.fonts` property within `patternlab-config.json`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
This is the default location to place global image files. | ||
|
||
The entire contents of this directory will be recursively copied to your configured `public/` directory. | ||
|
||
If you wish to rename this directory, make sure you update the `paths.source.images` property within `patternlab-config.json`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
This is the default location to place global javascript files. | ||
|
||
The entire contents of this directory will be recursively copied to your configured `public/` directory. | ||
|
||
If you wish to rename this directory, make sure you update the `paths.source.js` property within `patternlab-config.json`. |