Skip to content

Commit

Permalink
feat(index): add options validation
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-ciniawsky committed May 8, 2017
1 parent 0dceb2c commit 2b76df8
Show file tree
Hide file tree
Showing 70 changed files with 2,543 additions and 2,254 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ root = true

[*]
indent_style = space
indent_size = 4
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
Expand Down
15 changes: 13 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
node_modules/
# OS

.DS_Store
._*

# NODEJS

npm-debug.log
yarn-error.log
build/

dmd
jest
coverage
jsdoc-api
node_modules
22 changes: 16 additions & 6 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
# FILES

.travis.yml
.gitignore
.npmignore
.editorconfig

node_modules/
.travis.yml

npm-debug.log
yarn-error.log

yarn.lock
yarn-error.log

build/
test/
.travis.yml

gulpfile.js
# DIRECTORIES

.github

dmd
test
coverage
jsdoc-api
node_modules
15 changes: 11 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
cache:
yarn: true
directories:
- node_modules

language: node_js
cache: yarn
node_js:
- stable
- "6"
- "4"
- "node"
- 6
- 4

notifications:
email: false
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)
License (MIT)

Copyright 2014 Andrey Sitnik <andrey@sitnik.ru>
Copyright 2017 Andrey Sitnik <andrey@sitnik.ru>

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
46 changes: 46 additions & 0 deletions LOADER.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<a name="loader"></a>

## loader(css, map) ⇒ <code>cb</code>
PostCSS Loader

> Loads && processes CSS with [PostCSS](https://github.com/postcss/postcss)
**Kind**: global function
**Returns**: <code>cb</code> - cb Result
**Requires**: <code>module:path</code>, <code>module:loader-utils</code>, <code>module:schema-utils</code>, <code>module:postcss</code>, <code>module:postcss-load-config</code>, <code>module:Error</code>
**Version**: 2.0.0
**Author**: Andrey Sitnik (@ai) <andrey@sitnik.ru>
**License**: MIT

| Param | Type | Description |
| --- | --- | --- |
| css | <code>String</code> | Source |
| map | <code>Object</code> | Source Map |


* [loader(css, map)](#loader) ⇒ <code>cb</code>
* [.cb](#loader.cb) : <code>function</code>
* [.cb](#loader.cb) : <code>function</code>

<a name="loader.cb"></a>

### loader.cb : <code>function</code>
**Kind**: static typedef of [<code>loader</code>](#loader)

| Param | Type | Description |
| --- | --- | --- |
| null | <code>Object</code> | Error |
| result | <code>String</code> | Result (JS Module) |
| map | <code>Object</code> | Source Map |

<a name="loader.cb"></a>

### loader.cb : <code>function</code>
**Kind**: static typedef of [<code>loader</code>](#loader)

| Param | Type | Description |
| --- | --- | --- |
| null | <code>Object</code> | Error |
| css | <code>String</code> | Result (Raw Module) |
| map | <code>Object</code> | Source Map |

Loading

0 comments on commit 2b76df8

Please sign in to comment.