An app for creating and managing your front-end pattern library.
- Create patterns in Markdown files
- Browseable interface
- Free and open source
- Comment on each pattern using
disqus
Built with Gulp, Angular and Markdown/YAML.
-
Clone the repository
git clone https://github.com/PebbleRoad/tapestry.git
-
Install NPM and bower packages
npm install && bower install
-
Launch the server
gulp patterns
-
Open your browser and navigate to
http://localhost:8000
Create a new discuss account and open src/assets/js/app/app.js
and set the disqus_shortname
---
name: Alert
description: |
### What
Page level information or service alert. Critical updates with a defined time period should be pushed using the alert box.
### Use when
For pagelevel critical updates.
---
<div class="ui-alert ui-alert--success">
<div class="alert__title">This is a success alert</div>
<div class="alert__body">More body text</div>
<a href="#" class="alert_close"></a>
</div>
- Patterns folder is watched by Gulp and JSON files are generated for each root pattern
- AngularJS uses these JSON documents to show a browseable interface of the patterns
- Inject your own CSS by editing
index.html
and add your own patterns
- Unit testing gulp plugins - gulp-tree and gulp-script-inject
- Unit testing of the Angular app