Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Commit

Permalink
Merge pull request #7 from pattern-lab/dev
Browse files Browse the repository at this point in the history
Edition Node Grunt 1.0.1
  • Loading branch information
Brian Muenzenmeyer authored Jul 13, 2016
2 parents 64dad81 + 149ef32 commit e0456cd
Show file tree
Hide file tree
Showing 89 changed files with 997 additions and 4,286 deletions.
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ The Grunt Edition comes with the following components:

## Prerequisites

Pattern Lab Node uses [Node](https://nodejs.org) and [npm](https://www.npmjs.com/) to manage project dependencies, and [grunt](http://gruntjs.com/) to run tasks and interface with core.

Please follow the directions for [installing Node](https://nodejs.org/en/download/) on the Node website. This should include `npm`.
The Pattern Lab Node - Grunt Edition uses [Node](https://nodejs.org) for core processing, [npm](https://www.npmjs.com/) to manage project dependencies, and [grunt.js](http://gruntjs.com/) to run tasks and interface with the core library. Node version 4 or higher suffices. You can follow the directions for [installing Node](https://nodejs.org/en/download/) on the Node website if you haven't done so already. Installation of Node will include npm.

It's also highly recommended that you [install grunt](http://gruntjs.com/getting-started) globally.

Expand All @@ -28,19 +26,22 @@ There are two methods for downloading and installing the Grunt Edition:

### Download a pre-built package

The fastest way to get started with the Grunt Edition is to [download the pre-built version](https://github.com/pattern-lab/edition-node-gulp/releases) from the [releases page](https://github.com/pattern-lab/edition-node-gulp/releases). The pre-built project comes with the [Default Starterkit for Mustache](https://github.com/pattern-lab/starterkit-mustache-default/tree/dev) installed by default.
The fastest way to get started with the Grunt Edition is to [download the pre-built version](https://github.com/pattern-lab/edition-node-gulp/releases) from the [releases page](https://github.com/pattern-lab/edition-node-gulp/releases). The pre-built project comes with the [Base Starterkit for Mustache](https://github.com/pattern-lab/starterkit-mustache-base) installed by default.

**Please note:** Pattern Lab Node uses [npm](https://www.npmjs.com/) to manage project dependencies. To upgrade the Grunt Edition or to install plug-ins you'll need to be familiar with npm.

### Use npm

`npm` is a dependency management and package system which can pull in all of the Grunt Edition's dependencies for you. To accomplish this:

* download or clone this repository to an install location.
* download or `git clone` this repository to an install location.

* run the following

```
cd install/location
npm install
```
Running `npm install` from a directory containing a `package.json` file will download all dependencies defined within.
Expand All @@ -67,19 +68,19 @@ These are some helpful commands you can use on the command line for working with
To list all available commands type:
grunt pl-help
grunt patternlab:help
### Generate Pattern Lab
To generate the front-end for Pattern Lab type:
grunt pl-build
grunt patternlab:build
### Watch for changes and re-generate Pattern Lab
To watch for changes, re-generate the front-end, and server it via a BrowserSync server, type:
grunt pl-serve
grunt patternlab:serve
BrowserSync should open [http://localhost:3000](http://localhost:3000) in your browser.
Expand All @@ -89,4 +90,4 @@ To install a specific StarterKit from GitHub type:
npm install [starterkit-vendor/starterkit-name]
grunt patternlab:starterkit-load --kit=[starterkit-name]
grunt patternlab:loadstarterkit --kit=[starterkit-name]
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "edition-node-grunt",
"description": "The grunt wrapper around patternlab-node core, providing tasks to interact with the core library and move supporting frontend assets.",
"version": "1.0.0",
"version": "1.0.1",
"main": "./core/lib/patternlab.js",
"dependencies": {
"bs-html-injector": "^3.0.0",
Expand Down
18 changes: 9 additions & 9 deletions source/_annotations/annotations.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
var comments = {
"comments" : [
{
"el": "#colors",
"title" : "Special Markup and Styling",
"comment": "This code uses pattern-scaffolding.css in the `source/css/` directory."
}
]
};
{
"comments" : [
{
"el": "#annotation-css-selector",
"title" : "Annotation title",
"comment": "Annotation description"
}
]
}
166 changes: 74 additions & 92 deletions source/_data/data.json
Original file line number Diff line number Diff line change
@@ -1,93 +1,75 @@
{
"title" : "Pattern Lab",
"htmlClass": "pl",
"bodyClass": "body",
"img": {
"landscape-4x3": {
"src": "../../images/fpo_4x3.png",
"alt": "4x3 Image"
},
"landscape-16x9": {
"src": "../../images/fpo_16x9.png",
"alt": "16x9 Image"
},
"square": {
"src": "../../images/fpo_square.png",
"alt": "Square Thumbnail"
},
"avatar" : {
"src" : "../../images/fpo_avatar.png",
"alt" : "Person Name"
},
"rectangle": {
"src": "http://placeimg.com/400/300/tech",
"alt": "Rectangle"
}
},
"headline" : {
"short" : "Lorem ipsum dolor sit (37 characters)",
"medium" : "Lorem ipsum dolor sit amet, consectetur adipiscing elit. (72 characters)"
},
"excerpt" : {
"short" : "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam",
"medium" : "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.",
"long" : "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
},
"description" : "So, setting about it as methodically as men might smoke out a wasps' nest, the Martians spread this strange stifling vapour over the Londonward country. The horns of the crescent slowly moved apart, until at last they formed a line from Hanwell to Coombe and Malden. All night through their destructive tubes advanced.",
"url" : "#",
"name" : {
"first": "Lacy",
"firsti": "L",
"middle": "Tommie",
"middlei": "T",
"last": "Way",
"lasti": "W"
},
"year" : {
"long": "2013",
"short": "13"
},
"month" : {
"long": "February",
"short": "Feb",
"digit": "02"
},
"dayofweek" : {
"long": "Monday",
"short": "Mon"
},
"day" : {
"long": "10",
"short": "10",
"ordinal": "th"
},
"hour" : {
"long": "01",
"short": "1",
"military": "13",
"ampm": "pm"
},
"minute" : {
"long": "20",
"short": "20"
},
"seconds" : "31",
"author" : {
"first-name": "Author",
"last-name": "Name"
},
"hero": true,
"emergency" : false,
"touts" : [
{ },
{ },
{ }
],
"latest-posts" : [
{ },
{ },
{ },
{ },
{ }
]
}
"key": "value",
"key2": "use this for variables you want to load globally",
"title": "Nullizzle shizznit velizzle, hizzle, suscipit own yo', gravida vizzle, arcu.",
"img": {
"avatar": {
"src": "http://placeimg.com/100/100/people",
"alt": "Avatar"
},
"square": {
"src": "http://placeimg.com/300/300/nature",
"alt": "Square"
},
"rectangle": {
"src": "http://placeimg.com/400/300/tech",
"alt": "Rectangle"
},
"landscape-4x3": {
"src": "http://placeimg.com/400/300/tech",
"alt": "4x3 Image"
},
"landscape-16x9": {
"src": "http://placeimg.com/640/360/tech",
"alt": "16x9 Image"
}
},
"headline": {
"short": "Lorizzle pimpin' dolizzle sit amet I",
"medium": "Rizzle adipiscing elizzle. Nullam sapien velizzle, shit volutpizzle, my"
},
"excerpt": {
"short": "Shizz fo shizzle mah nizzle fo rizzle, mah home g-dizzle, gravida vizzle, arcu. Pellentesque crunk tortizzle. Sed erizzle. Black izzle sheezy telliv.",
"medium": "Izzle crazy tempizzle sizzle. We gonna chung gangsta get down get down fo shizzle turpizzle. Away break it down black. Pellentesque bling bling rhoncus fo shizzle. In hac the bizzle platea dictumst. Black dapibizzle. Crackalackin.",
"long": "Curabitizzle fo shizzle diam quizzle nisi nizzle mollizzle. Suspendisse boofron. Morbi odio. Sure pizzle. Crazy orci. Shut the shizzle up maurizzle get down get down, check out this a, go to hizzle sit amizzle, malesuada izzle, pede. Pellentesque gravida. Vestibulizzle check it out mi, volutpat izzle, shiz sed, shiznit sempizzle, da bomb. Funky fresh in ipsum. Da bomb volutpat felis vizzle daahng dawg. Crizzle quis dope izzle fo shizzle my ni."
},
"description": "Fizzle crazy tortor. Sed rizzle. Ass pimpin' dolor dapibizzle turpis tempizzle fo shizzle my nizzle. Maurizzle pellentesque its fo rizzle izzle turpis. Get down get down we gonna chung nizzle. Shizzlin dizzle eleifend rhoncizzle break it down. In yo ghetto platea dictumst. Bling bling dapibizzle. Curabitur break yo neck, yall fo, pretizzle eu, go to hizzle dope, own yo' vitae, nunc. Bizzle suscipizzle. Ass semper velit sizzle fo.",
"url": "http://lorizzle.nl/",
"name": {
"first": "Junius",
"firsti": "J",
"middle": "Marius",
"middlei": "M",
"last": "Koolen",
"lasti": "K"
},
"year": {
"long": "2013",
"short": "13"
},
"month": {
"long": "January",
"short": "Jan",
"digit": "01"
},
"dayofweek": {
"long": "Sunday",
"short": "Sun"
},
"day": {
"long": "01",
"short": "1",
"ordinal": "st"
},
"hour": {
"long": "06",
"short": "6",
"military": "06",
"ampm": "am"
},
"minute": {
"long": "20",
"short": "20"
},
"seconds": "31"
}
Loading

0 comments on commit e0456cd

Please sign in to comment.