Skip to content
This repository was archived by the owner on Dec 10, 2019. It is now read-only.

Commit 4460334

Browse files
committed
initial commit
0 parents  commit 4460334

File tree

8 files changed

+255
-0
lines changed

8 files changed

+255
-0
lines changed

.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
tab_width = 2
8+
end_of_line = lf
9+
charset = utf-8
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true

.eslintrc

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
{
2+
"env": {
3+
"node": true,
4+
"builtin": true
5+
},
6+
"globals": {},
7+
"rules": {
8+
"block-scoped-var": 0,
9+
"camelcase": 0,
10+
"comma-spacing": [1, {"before": false, "after": true}],
11+
"consistent-return": 2,
12+
"curly": [2, "all"],
13+
"dot-notation": [1, { "allowKeywords": true }],
14+
"eqeqeq": [2, "allow-null"],
15+
"global-strict": [0, "never"],
16+
"guard-for-in": 2,
17+
"indent": [1, 2, {"SwitchCase": 1, "VariableDeclarator": 1}],
18+
"lines-around-comment": [1, {
19+
"beforeBlockComment": true,
20+
"beforeLineComment": true,
21+
"allowBlockStart": true,
22+
"allowObjectStart": true,
23+
"allowArrayStart": true
24+
}],
25+
"key-spacing": 0,
26+
"keyword-spacing": 1,
27+
"new-cap": 0,
28+
"no-alert": 2,
29+
"no-bitwise": 2,
30+
"no-caller": 2,
31+
"no-cond-assign": [2, "except-parens"],
32+
"no-debugger": 2,
33+
"no-dupe-args": 2,
34+
"no-dupe-keys": 2,
35+
"no-empty": 2,
36+
"no-eval": 2,
37+
"no-extend-native": 2,
38+
"no-extra-bind": 2,
39+
"no-extra-parens": 0,
40+
"no-extra-semi": 2,
41+
"no-func-assign": 2,
42+
"no-implied-eval": 2,
43+
"no-invalid-regexp": 2,
44+
"no-irregular-whitespace": 1,
45+
"no-iterator": 2,
46+
"no-loop-func": 2,
47+
"no-mixed-requires": 0,
48+
"no-multi-str": 2,
49+
"no-multi-spaces": 1,
50+
"no-native-reassign": 2,
51+
"no-new": 2,
52+
"no-param-reassign": 1,
53+
"no-proto": 2,
54+
"no-redeclare": 0,
55+
"no-script-url": 2,
56+
"no-self-assign": 2,
57+
"no-self-compare": 2,
58+
"no-sequences": 2,
59+
"no-shadow": 2,
60+
"no-undef": 2,
61+
"no-underscore-dangle": 0,
62+
"no-unreachable": 1,
63+
"no-unused-vars": 1,
64+
"no-use-before-define": 1,
65+
"no-useless-call": 2,
66+
"no-useless-concat": 2,
67+
"no-with": 2,
68+
"quotes": [0, "single"],
69+
"radix": 2,
70+
"semi": [0, "never"],
71+
"strict": 0,
72+
"space-before-blocks": 1,
73+
"space-before-function-paren": [1, {
74+
"anonymous": "always",
75+
"named": "never"
76+
}],
77+
"space-in-parens": [1, "never"],
78+
"space-infix-ops": 1,
79+
"valid-typeof": 2,
80+
"vars-on-top": 0,
81+
"wrap-iife": [2, "inside"]
82+
}
83+
}

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
node_modules/
2+
.DS_Store
3+
patternlab.json
4+
.sass-cache/*
5+
/sass-cache
6+
Thumbs.db
7+
.idea/
8+
public

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 Pattern Lab
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Pattern Lab Node
2+
3+
The pure wrapper around [Pattern Lab Node Core](https://github.com/pattern-lab/patternlab-node), the default pattern engine, and supporting frontend assets.
4+
5+
## Packaged Components
6+
7+
The Gulp Edition comes with the following components:
8+
9+
* `patternlab-node`: [GitHub](https://github.com/pattern-lab/patternlab-node), [npm](https://www.npmjs.com/package/patternlab-node)
10+
* `patternengine-node-mustache`: [GitHub](https://github.com/pattern-lab/patternengine-node-mustache), [npm](https://www.npmjs.com/package/patternengine-node-mustache)
11+
* `pattern-lab/styleguidekit-assets-default`: [GitHub](https://github.com/pattern-lab/styleguidekit-assets-default)
12+
* `pattern-lab/styleguidekit-mustache-default`: [GitHub](https://github.com/pattern-lab/styleguidekit-mustache-default)
13+
14+
## Prerequisites
15+
16+
The Pattern Lab Node uses [Node](https://nodejs.org) for core processing, [npm](https://www.npmjs.com/) to manage project dependencies, and [gulp.js](http://gulpjs.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.
17+
18+
## Installing
19+
20+
Forthcoming
21+
22+
## Getting Started
23+
24+
Forthcoming
25+
26+
## Updating Pattern Lab
27+
28+
To update Pattern Lab please refer to each component's GitHub repository, and the [master instructions for core](https://github.com/pattern-lab/patternlab-node/wiki/Upgrading). The components are listed at the top of the README.

package.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "edition-node",
3+
"description": "A pure wrapper around patternlab-node core, the default pattern engine, and supporting frontend assets.",
4+
"version": "0.0.1",
5+
"dependencies": {
6+
"patternlab-node": "^2.0.0",
7+
"patternengine-node-mustache": "^1.0.0",
8+
"styleguidekit-assets-default": "^3.0.0",
9+
"styleguidekit-mustache-default": "^3.0.0"
10+
},
11+
"keywords": [
12+
"Pattern Lab",
13+
"Atomic Web Design",
14+
"Node",
15+
"Javascript"
16+
],
17+
"repository": {
18+
"type": "git",
19+
"url": "git://github.com/pattern-lab/edition-node.git"
20+
},
21+
"bugs": "https://github.com/pattern-lab/edition-node/issues",
22+
"author": "Brian Muenzenmeyer",
23+
"scripts": {
24+
"postinstall": "node scripts/postinstall.js"
25+
},
26+
"license": "MIT",
27+
"engines": {
28+
"node": ">=4.0"
29+
}
30+
}

patternlab-config.json

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"paths" : {
3+
"source" : {
4+
"root": "./source/",
5+
"patterns" : "./source/_patterns/",
6+
"data" : "./source/_data/",
7+
"meta": "./source/_meta/",
8+
"annotations" : "./source/_annotations/",
9+
"styleguide" : "./node_modules/styleguidekit-assets-default/dist/",
10+
"patternlabFiles" : "./node_modules/styleguidekit-mustache-default/views/",
11+
"js" : "./source/js",
12+
"images" : "./source/images",
13+
"fonts" : "./source/fonts",
14+
"css" : "./source/css/"
15+
},
16+
"public" : {
17+
"root" : "./public/",
18+
"patterns" : "./public/patterns/",
19+
"data" : "./public/styleguide/data/",
20+
"annotations" : "./public/annotations/",
21+
"styleguide" : "./public/styleguide/",
22+
"js" : "./public/js",
23+
"images" : "./public/images",
24+
"fonts" : "./public/fonts",
25+
"css" : "./public/css"
26+
}
27+
},
28+
"styleGuideExcludes": [
29+
],
30+
"defaultPattern": "all",
31+
"defaultShowPatternInfo": false,
32+
"cleanPublic" : true,
33+
"patternExtension": "mustache",
34+
"ignored-extensions" : ["scss", "DS_Store", "less"],
35+
"ignored-directories" : ["scss"],
36+
"debug": false,
37+
"ishControlsHide": {
38+
"s": false,
39+
"m": false,
40+
"l": false,
41+
"full": false,
42+
"random": false,
43+
"disco": false,
44+
"hay": true,
45+
"mqs": false,
46+
"find": false,
47+
"views-all": false,
48+
"views-annotations": false,
49+
"views-code": false,
50+
"views-new": false,
51+
"tools-all": false,
52+
"tools-docs": false
53+
},
54+
"ishMinimum": "240",
55+
"ishMaximum": "2600",
56+
"patternStateCascade": ["inprogress", "inreview", "complete"],
57+
"patternStates": {
58+
},
59+
"patternExportPatternPartials": [],
60+
"patternExportDirectory": "./pattern_exports/",
61+
"cacheBust": true,
62+
"starterkitSubDir": "dist",
63+
"outputFileSuffixes": {
64+
"rendered": ".rendered",
65+
"rawTemplate": "",
66+
"markupOnly": ".markup-only"
67+
},
68+
"cleanOutputHtml": true
69+
}

scripts/postinstall.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"use strict";
2+
console.log('Beginning Pattern Lab Node postinstall...');
3+
4+
//call the core library postinstall
5+
var patternlab = require('patternlab-node/core/scripts/postinstall');

0 commit comments

Comments
 (0)