Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Egner committed Mar 31, 2017
0 parents commit be6ce1a
Show file tree
Hide file tree
Showing 36 changed files with 12,658 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true

[*]
indent_size = 2
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

.DS_Store
node_modules
npm-debug.log

# Generated docs css and js
docs/css/docs.css
docs/js/scripts.js

# Generated docs markup
index.html

### You may want to exclude the compiled CSS and JS
### from version control. If so uncomment the line below
# dist
59 changes: 59 additions & 0 deletions .pug-lintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"disallowAttributeConcatenation": null,
"disallowAttributeInterpolation": true,
"disallowBlockExpansion": null,
"disallowClassAttributeWithStaticValue": true,
"disallowClassLiterals": null,
"disallowClassLiteralsBeforeAttributes": null,
"disallowClassLiteralsBeforeIdLiterals": null,
"disallowDuplicateAttributes": true,
"disallowHtmlText": null,
"disallowIdAttributeWithStaticValue": null,
"disallowIdLiteralsBeforeAttributes": null,
"disallowMultipleLineBreaks": true,
"disallowSpaceAfterCodeOperator": null,
"disallowSpacesInsideAttributeBrackets": true,
"disallowSpecificAttributes": [
{
"a": "name"
}
],
"disallowSpecificTags": null,
"disallowStringConcatenation": null,
"disallowStringInterpolation": null,
"disallowTagInterpolation": null,
"maximumNumberOfLines": null,
"requireClassLiteralsBeforeAttributes": true,
"requireClassLiteralsBeforeIdLiterals": true,
"requireIdLiteralsBeforeAttributes": true,
"requireLineFeedAtFileEnd": true,
"requireLowerCaseAttributes": true,
"requireLowerCaseTags": true,
"requireSpaceAfterCodeOperator": true,
"requireSpacesInsideAttributeBrackets": null,
"requireSpecificAttributes": [
{
"form": "action"
},
{
"img": "alt"
},
{
"input": "type"
},
{
"input[type=submit]": "value"
}
],
"requireStrictEqualityOperators": true,
"validateAttributeQuoteMarks": "'",
"validateAttributeSeparator": {
"separator": ", ",
"multiLineSeparator": "\n "
},
"validateDivTags": true,
"validateExtensions": true,
"validateIndentation": 2,
"validateLineBreaks": "LF",
"validateSelfClosingTags": true
}
30 changes: 30 additions & 0 deletions .sass-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# sass-lint config generated by make-sass-lint-config v0.1.3
#
# The following settings/values are unsupported by sass-lint:
# Linter Indentation, option "allow_non_nested_indentation"
# Linter Indentation, option "character"

files:
include: '**/*.s+(a|c)ss'
ignore:
- 'node_modules/**'
options:
formatter: stylish
max-warnings: 0
rules:
indentation:
- 2
- size: 2
placeholder-in-extend: 0
nesting-depth:
- 1
- max-depth: 3
property-sort-order:
- 1
- order: smacss
url-quotes: 0
force-attribute-nesting: 0
force-pseudo-nesting: 0
force-element-nesting: 0
empty-args: 0
attribute-quotes: 0
15 changes: 15 additions & 0 deletions .yo-rc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"generator-style-guider": {
"promptValues": {
"name": "style-guider-demo",
"depManager": "npm",
"husky": true
},
"name": "style-guider-demo",
"depManager": "npm",
"husky": true,
"longName": "style-guider-demo",
"yarn": false,
"npm": true
}
}
47 changes: 47 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# style-guider-demo

A web framework and style guide built with [Style Guider](https://www.npmjs.com/package/generator-style-guider)

## Setup

Clone the project and use `npm install` to install dependencies

## Scripts

A few gulp scripts are included

### Build

Compile the JS/CSS and build the style guide html with `npm run build`. The documentation with live preview is generated as `index.html`

### Lint

Check the code style of JS, CSS and Pug files with `npm run lint`

### Watch

Combine the build and lint tasks and watch for file changes with `npm start`. A local server is also launched for previewing the style guide.

### Compile JS/CSS for distribution

Compile the JS/CSS in the dist folder with `npm run dist`

## Adding new components

To create new components, [Style Guider](https://www.npmjs.com/package/generator-style-guider) is required. First install it:

```bash
npm install -g yo
npm install -g generator-style-guider
```

Then add a new component using the prompt with:

```bash
yo style-guider:component
```

## Git Hooks

There are pre-commit and pre-push hooks for linting, and building the minified files in `dist/`

1 change: 1 addition & 0 deletions dist/style-guider-demo.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/style-guider-demo.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit be6ce1a

Please sign in to comment.