Skip to content

Commit

Permalink
Merge pull request #1067 from varya/feature/spelling-schek
Browse files Browse the repository at this point in the history
Automated spellchecking
  • Loading branch information
Junaid Rasheed committed Sep 7, 2017
2 parents 1b5e5fb + 6d90f62 commit a16ffa9
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 17 deletions.
66 changes: 66 additions & 0 deletions .yaspellerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"lang": "en",
"ignoreCapitalization": true,
"dictionary": [
"KSS",
"SASS",
"SCSS",
"styleguide",
"CLI",
"favIcon",
"navbar",
"HTML5",
"UI",
"PostCSS",
"mixin",
"templateUrl",
"BEM",
"bemto",
"kizu",
"Gulpfile",
"StyleGuide",
"diff",
"additionalNgDependencies",
"afterSections",
"appRoot",
"beforeBody",
"customColors",
"disableEncapsulation",
"disableHtml5Mode",
"disableServerLog",
"showMarkupSection",
"sideNav",
"basicAuth",
"commonClass",
"extraHead",
"favicon",
"filesConfig",
"hideSubsectionsOnMainSection",
"SC5",
"styleVariables",
"GitHub",
"Travis",
"PhantomJS",
"AirBNB",
"JSCS",
"linting",
"npm",
"rootPath",
"SASS",
"onRendered",
"src",
"visualtest",
"postcss",
"sc5",
"kss",
"sass",
"github",
"js",
"rebase",
"versioning",
"prepend",
"includeDefaultStyles",
"showReferenceNumbers"
]
}

8 changes: 4 additions & 4 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Install all npm dependencies

npm install

The stylesheet of the style guide itself could be used as test data.
Start watching UI code changes in lib/app and build the app using the style guides stylesheets:
The style sheet of the style guide itself could be used as test data.
Start watching UI code changes in lib/app and build the app using the style guides style sheets:

gulp dev

Expand All @@ -29,7 +29,7 @@ Node module tests are ran with Mocha, UI related tests with Karma & PhantomJS.

### Coding convention

This project follows AirBNB-ish JavaScript coding convention (with a few changes). It is tuned to use [JSCS]() as a code
This project follows AirBNB JavaScript coding convention (with a few changes). It is tuned to use [JSCS]() as a code
checker. The checking is injected into the testing process, so you can see in Travis respond to your pull-request if your
files follow the convention.

Expand All @@ -42,7 +42,7 @@ To be able to check during development, please
## How to release

1. Check that all the needed pull requests are merged
1. Make sure that your clone fetched all the tags which exist in the SC5 repo
1. Make sure that your clone fetched all the tags which exist in the SC5 repository
1. Rebase your `master` branch against SC5
1. Create `release/x.y.z` branch from `master` with the number of upcoming version and switch to it
1. Increment the package number in `package.json`
Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ using KSS notation. It can be used as a command line utility, gulp task or Grunt
- [Build options](#build-options)
- [Documenting syntax](#documenting-syntax)
- [Defining an Angular directive](#defining-an-angular-directive)
- [Ignore parts of the stylesheet from being processed](#ignore-parts-of-the-stylesheet-from-being-processed)
- [Ignore parts of the style sheet from being processed](#ignore-parts-of-the-stylesheet-from-being-processed)
- [Wrapper markup](#wrapper-markup)
- [Inserted markup](#inserted-markup)
- [Pug (jade) markup](#pug-jade-markup)
Expand Down Expand Up @@ -65,7 +65,7 @@ The gulp plugin contains two functions that requires different set of file strea

`generate()`: All unprocessed styles containing the KSS markup and style variables. This will process the KSS markup and collects variable information.

`applyStyles()`: Preprocessed/compiled stylesheets. This will create necessary pseudo styles and create the actual stylesheet to be used in the styleguide.
`applyStyles()`: Pre-processed/compiled style sheets. This will create necessary pseudo styles and create the actual style sheet to be used in the styleguide.

The following code shows complete example how to use styleguide with gulp-sass and with gulp watch.

Expand Down Expand Up @@ -177,7 +177,7 @@ Styleguide command line tool requires two sets of source files:

`--kss-source`: Unprocessed files containing the KSS markup and LESS/SASS variables

`--style-source` Preprocessed/compiled stylesheets to be used in the styleguide
`--style-source` Pre-processed/compiled style sheets to be used in the styleguide

Example usage:

Expand Down Expand Up @@ -225,7 +225,7 @@ When this option parameter is enabled, style guide will show reference numbers o
<a name="option-includeDefaultStyles"></a>
**includeDefaultStyles** (boolean, optional, default: true)

Include/exclude defualt styles.
Include/exclude default styles.

<a name="option-showMarkupSection"></a>
**showMarkupSection** (boolean, optional, default: true)
Expand Down Expand Up @@ -304,7 +304,7 @@ Disable Shadow DOM encapsulation. When this option parameter is enabled, all sty
<a name="option-disableHtml5Mode"></a>
**disableHtml5Mode** (boolean, optional, default: false)

Disable HTML5 URL mode. When this option parameter is enabled, style guide will use hashbang URLs instead of HTML5 history API. This is useful when hosting static style guides.
Disable HTML5 URL mode. When this option parameter is enabled, style guide will use hash bang URLs instead of HTML5 history API. This is useful when hosting static style guides.

<a name="option-basicAuth"></a>
**basicAuth** (object, optional, default: null)
Expand All @@ -328,7 +328,7 @@ Disable variable saving from web interface.

Path to file that defines custom UI color overrides using PostCSS variables. See all possible variables [here](https://github.com/SC5/sc5-styleguide/blob/master/lib/app/css/_styleguide_variables.css).

Internal styles could be overriden by defining new styles inside the `styleguide_custom_styles` mixin. This mixin is added to the end of the application stylesheet.
Internal styles could be overridden by defining new styles inside the `styleguide_custom_styles` mixin. This mixin is added to the end of the application style sheet.

You can define your own styles with

Expand All @@ -337,7 +337,7 @@ You can define your own styles with
/* Define your styles here */
}
```
PostCSS configuration supports mixins, nesting, valiables, media queries.
PostCSS configuration supports mixins, nesting, variables, media queries.

<a name="option-parsers"></a>
**parsers** (object, optional)
Expand All @@ -353,7 +353,7 @@ parsers: {
}
```

Styleguide tries to guess which parser to use when parsing variable information from stylesheets. The object key defines the file extension to match and the value refers to the parser name. There are three parsers available: `scss`, `less` and `postcss`.
Styleguide tries to guess which parser to use when parsing variable information from style sheets. The object key defines the file extension to match and the value refers to the parser name. There are three parsers available: `scss`, `less` and `postcss`.

For example, to parse all .css files using postcss parser, following configuration could be used:

Expand Down Expand Up @@ -492,7 +492,7 @@ You can also write the same with comma-syntax
// file: path/to/application-file.js, path/to/dependency-file.js, path/to/stylesheet.css
```

### Ignore parts of the stylesheet from being processed
### Ignore parts of the style sheet from being processed

You can ignore parts of the CSS or KSS from being processed using the following tags:

Expand Down Expand Up @@ -735,7 +735,7 @@ extraHead: [
]
```

This way you can enrich the documented components with JavaScript. Keep in mind that you need to use `disableEncapsulation` parameter to make the components visible for the parent page JavaScript (otherwise they are encapsulated with shadowDOM).
This way you can enrich the documented components with JavaScript. Keep in mind that you need to use `disableEncapsulation` parameter to make the components visible for the parent page JavaScript (otherwise they are encapsulated with shadow DOM).

### onRendered event

Expand Down Expand Up @@ -812,7 +812,7 @@ Point your browser to <http://localhost:3000>
### Articles, blog posts

* [article] [Visual regression tests for SC5 StyleGuide](https://sc5.io/posts/visual-regression-testing/)
* [article] [Automating Style Guide-Driven Development @ SmashingMagazine](https://www.smashingmagazine.com/2015/03/automating-style-guide-driven-development/)
* [article] [Automating Style Guide-Driven Development @ Smashing Magazine](https://www.smashingmagazine.com/2015/03/automating-style-guide-driven-development/)
* [blog post] [Styleguide the Smaller Things](http://varya.me/en/posts/sc5-styleguide-for-smallers/)
* [article] [Advanced techniques for the SC5 styleguide generator](https://www.alleyinteractive.com/blog/advanced-techniques-for-the-sc5-styleguide-generator/)
* [blog post] [Living SC5 Styleguide, the next level](http://varya.me/en/posts/sc5-style-guide-next-level/)
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,13 @@
"proxyquire": "~1.7.3",
"requirefrom": "~0.2.0",
"sinon": "~1.17.2",
"sinon-chai": "~2.8.0"
"sinon-chai": "~2.8.0",
"yaspeller-ci": "^0.3.0"
},
"scripts": {
"pretest": "gulp clean-coverage",
"test": "gulp test",
"test": "gulp test && npm run spellcheck",
"spellcheck": "yaspeller-ci README.md DEVELOPMENT.md",
"posttest": "gulp generate-coverage-report",
"prepublish": "gulp build",
"build": "gulp build",
Expand Down

0 comments on commit a16ffa9

Please sign in to comment.