Skip to content

Commit 2b76df8

Browse files
feat(index): add options validation
1 parent 0dceb2c commit 2b76df8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+2543
-2254
lines changed

.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ root = true
22

33
[*]
44
indent_style = space
5-
indent_size = 4
5+
indent_size = 2
66
end_of_line = lf
77
charset = utf-8
88
trim_trailing_whitespace = true

.gitignore

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1-
node_modules/
1+
# OS
2+
3+
.DS_Store
4+
._*
5+
6+
# NODEJS
7+
28
npm-debug.log
39
yarn-error.log
4-
build/
10+
11+
dmd
12+
jest
13+
coverage
14+
jsdoc-api
15+
node_modules

.npmignore

+16-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
1+
# FILES
2+
3+
.travis.yml
14
.gitignore
25
.npmignore
36
.editorconfig
47

5-
node_modules/
8+
.travis.yml
9+
610
npm-debug.log
7-
yarn-error.log
11+
812
yarn.lock
13+
yarn-error.log
914

10-
build/
11-
test/
12-
.travis.yml
1315

14-
gulpfile.js
16+
# DIRECTORIES
17+
18+
.github
19+
20+
dmd
21+
test
22+
coverage
23+
jsdoc-api
24+
node_modules

.travis.yml

+11-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1+
cache:
2+
yarn: true
3+
directories:
4+
- node_modules
5+
16
language: node_js
2-
cache: yarn
37
node_js:
4-
- stable
5-
- "6"
6-
- "4"
8+
- "node"
9+
- 6
10+
- 4
11+
12+
notifications:
13+
email: false

LICENSE

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
The MIT License (MIT)
1+
License (MIT)
22

3-
Copyright 2014 Andrey Sitnik <[email protected]>
3+
Copyright 2017 Andrey Sitnik <[email protected]>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

LOADER.md

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<a name="loader"></a>
2+
3+
## loader(css, map) ⇒ <code>cb</code>
4+
PostCSS Loader
5+
6+
> Loads && processes CSS with [PostCSS](https://github.com/postcss/postcss)
7+
8+
**Kind**: global function
9+
**Returns**: <code>cb</code> - cb Result
10+
**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>
11+
**Version**: 2.0.0
12+
**Author**: Andrey Sitnik (@ai) <[email protected]>
13+
**License**: MIT
14+
15+
| Param | Type | Description |
16+
| --- | --- | --- |
17+
| css | <code>String</code> | Source |
18+
| map | <code>Object</code> | Source Map |
19+
20+
21+
* [loader(css, map)](#loader) ⇒ <code>cb</code>
22+
* [.cb](#loader.cb) : <code>function</code>
23+
* [.cb](#loader.cb) : <code>function</code>
24+
25+
<a name="loader.cb"></a>
26+
27+
### loader.cb : <code>function</code>
28+
**Kind**: static typedef of [<code>loader</code>](#loader)
29+
30+
| Param | Type | Description |
31+
| --- | --- | --- |
32+
| null | <code>Object</code> | Error |
33+
| result | <code>String</code> | Result (JS Module) |
34+
| map | <code>Object</code> | Source Map |
35+
36+
<a name="loader.cb"></a>
37+
38+
### loader.cb : <code>function</code>
39+
**Kind**: static typedef of [<code>loader</code>](#loader)
40+
41+
| Param | Type | Description |
42+
| --- | --- | --- |
43+
| null | <code>Object</code> | Error |
44+
| css | <code>String</code> | Result (Raw Module) |
45+
| map | <code>Object</code> | Source Map |
46+

0 commit comments

Comments
 (0)