Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: webpack-contrib/postcss-loader
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e101b845eaa8e7ad006e9a8294c3d64b9061b86c
Choose a base ref
...
head repository: webpack-contrib/postcss-loader
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 7647ac9051a17a3a6add7364828bf7bd9955b968
Choose a head ref
Loading
Showing with 2,079 additions and 4,741 deletions.
  1. +1 −1 .editorconfig
  2. +1 −0 .github/CODEOWNERS
  3. +34 −0 .github/ISSUE_TEMPLATE/BUG.md
  4. +30 −0 .github/ISSUE_TEMPLATE/DOCS.md
  5. +22 −0 .github/ISSUE_TEMPLATE/FEATURE.md
  6. +63 −0 .github/PULL_REQUEST_TEMPLATE.md
  7. +13 −2 .gitignore
  8. +16 −6 .npmignore
  9. +1 −0 .npmrc
  10. +24 −5 .travis.yml
  11. +217 −0 CHANGELOG.md
  12. +2 −2 LICENSE
  13. +384 −196 README.md
  14. +21 −0 appveyor.yml
  15. +130 −0 docs/LOADER.md
  16. +0 −19 error.js
  17. +0 −44 gulpfile.js
  18. +0 −151 index.js
  19. +36 −45 package.json
  20. +37 −0 src/Error.js
  21. +31 −0 src/Warning.js
  22. +232 −0 src/index.js
  23. +36 −0 src/options.js
  24. +57 −0 src/options.json
  25. +65 −0 test/Errors.test.js
  26. +33 −0 test/Warnings.test.js
  27. +14 −0 test/__snapshots__/Errors.test.js.snap
  28. +7 −0 test/__snapshots__/Warnings.test.js.snap
  29. +3 −0 test/__snapshots__/loader.test.js.snap
  30. +0 −1 test/cases/broken.css
  31. +0 −3 test/cases/config/postcss.config.js
  32. +0 −12 test/cases/env/postcss.config.js
  33. +0 −1 test/cases/env/style.css
  34. +0 −9 test/cases/exec.js
  35. +0 −1 test/cases/style.css
  36. +0 −3 test/cases/style.js
  37. +15 −0 test/fixtures/config/context/plugin.js
  38. +5 −0 test/fixtures/config/context/postcss.config.js
  39. +15 −0 test/fixtures/config/plugin.js
  40. +5 −0 test/fixtures/config/postcss.config.js
  41. +3 −0 test/fixtures/css/index.js
  42. 0 test/{cases/config → fixtures/css}/style.css
  43. +3 −0 test/fixtures/jss/exec/index.js
  44. +11 −0 test/fixtures/jss/exec/style.exec.js
  45. +3 −0 test/fixtures/jss/index.js
  46. +1 −0 test/fixtures/jss/style.js
  47. +5 −0 test/fixtures/postcss.config.js
  48. +3 −0 test/fixtures/sss/index.js
  49. 0 test/{cases/sugar.sss → fixtures/sss/style.sss}
  50. +21 −0 test/loader.test.js
  51. +9 −0 test/options/__snapshots__/config.test.js.snap
  52. +8 −0 test/options/__snapshots__/exec.test.js.snap
  53. +5 −0 test/options/__snapshots__/parser.test.js.snap
  54. +9 −0 test/options/__snapshots__/plugins.test.js.snap
  55. +21 −0 test/options/__snapshots__/sourceMap.test.js.snap
  56. +5 −0 test/options/__snapshots__/stringifier.test.js.snap
  57. +5 −0 test/options/__snapshots__/syntax.test.js.snap
  58. +110 −0 test/options/config.test.js
  59. +40 −0 test/options/exec.test.js
  60. +40 −0 test/options/parser.test.js
  61. +91 −0 test/options/plugins.test.js
  62. +56 −0 test/options/sourceMap.test.js
  63. +40 −0 test/options/stringifier.test.js
  64. +40 −0 test/options/syntax.test.js
  65. +0 −5 test/plugins/blue.js
  66. +0 −20 test/plugins/red.js
  67. +0 −5 test/postcss.config.js
  68. +0 −9 test/test-custom-parser.js
  69. +0 −58 test/test-default.js
  70. +0 −9 test/test-explicit-plugins.js
  71. +0 −14 test/test-incorrect-using-packs.js
  72. +0 −15 test/test-with-packs.js
  73. +0 −16 test/webpack-custom-parser.config.js
  74. +0 −16 test/webpack-default.config.js
  75. +0 −21 test/webpack-explicit-plugins.config.js
  76. +0 −16 test/webpack-incorrect-using-packs.config.js
  77. +0 −21 test/webpack-plugins/rewrite.js
  78. +0 −24 test/webpack-with-packs.config.js
  79. +0 −3,991 yarn.lock
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @michael-ciniawsky @evilebottnawi
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/BUG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: 🐛 Bug
about: Report a Bug
---

<!-- ✏️ Briefly describe the issue you are experiencing. Tell us what you were trying to do and what happened instead. Remember, this is *not* the right place to ask general support questions. For that, please go to http://gitter.im/postcss/postcss -->

### Details

<!-- ✏️ Describe in more detail the problem you have been experiencing (if necessary) -->

### Error (Logs|Stacks)

<!-- 👉 Create a [gist](https://gist.github.com) which is a paste of your **full** logs, and link them here -->

<!-- ⚠️ Do **not** paste your full logs here (or at least fold them by using a `<details>{{ logs }}</details>` block), as it will make this issue long and hard to read! If you are reporting a bug, **always** include logs! -->

### Reproduction (Code)

<!-- ⚠️ Please remember that, with sample code; it's easier to reproduce a bug and much faster to fix it -->

<!-- 🔗 Please refer to a simple code example -->

```bash
$ git clone https://github.com/<user>/<sample>
```

### Environment

<!-- 👉 Please provide information about your current environment -->

|OS|node|npm/yarn|package|
|:-:|:--:|:-:|:------:|
|[name][version]|[version]|[version]|[version]|
30 changes: 30 additions & 0 deletions .github/ISSUE_TEMPLATE/DOCS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: 📖 Docs
about: Report documentation related issues
---

### Type

<!-- 👉 Specify the type of issue by checking one of the provided checkboxes below and please deleted all others -->

- [ ] Other
- [ ] Wrong
- [ ] Unclear
- [ ] Missing

### Details

<!-- ✏️ Briefly describe the issue you are experiencing. Tell us what you were trying to do (how you understood the documentation) and what happened instead -->

### Location

<!-- 👉 Select the area where the aforementioned issue is currently located -->

- [ ] README
- [ ] LICENSE
- [ ] CHANGELOG
- [ ] ISSUE_TEMPLATE
- [ ] BUG
- [ ] DOCS
- [ ] FEATURE
- [ ] PULL_REQUEST_TEMPLATE
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/FEATURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: 🌟 Feature
about: Request a feature
---

### Proposal

<!-- ✏️ Briefly describe the feature you want to be added -->

### Use Case

<!-- ✏️ Describe in more detail the specific use case this feature addresses -->

### Implementation

<!-- 👉 Select one of the provided options -->

- [ ] I'm open to work on this
- [ ] I need help/mentorship
- [ ] I'm unable to work on this

<!-- ✏️ Briefly describe the feature implementation -->
63 changes: 63 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
### Notable Changes

<!-- ✏️ Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue(s) down below -->

#### `Commit Message Summary (CHANGELOG)`

<!-- ⚠️ All commits will be squashed into a single commit when merging the PR, so if there is any additional information needed to describe your changes (e.g BREAKING CHANGES), please list them here so the maintainers are able to include them as the commit message body of the final commit. I case your unsure what might be relevant don't hesitate to ask -->

<!-- 👉 Replace the example with your changes or otherwise delete the code block in case no additional information is needed -->

```bash
# Commit Message Body
#
# Example
BREAKING CHANGE: requires `node >= v8.0.0`
BREAKING CHANGE: `options.x` requires to be a `{Function}` now
```

### Type

> ℹ️ What type of changes does your code introduce?
<!-- 👉 Put an `x` in the boxes that apply and delete all others -->

- [ ] CI
- [ ] Fix
- [ ] Perf
- [ ] Docs
- [ ] Test
- [ ] Style
- [ ] Build
- [ ] Chore
- [ ] Feature
- [ ] Refactor

### Issues

> ℹ️ What issue(s) (if any) are closed by your PR?
<!-- 👉 Replace `#1` with the issue number that applies and remove the ``` ` ``` (`#1` => #1) -->

- Fixes `#1`

### SemVer

> ℹ️ What changes to the current `semver` range does your PR introduce?
<!-- 👉 Put an `x` in the boxes that apply and delete all others -->

- [ ] Fix (:label: Patch)
- [ ] Feature (:label: Minor)
- [ ] Breaking Change (:label: Major)

### Checklist

> ℹ️ You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. This is a reminder of what we are going to look for before merging your code.
<!-- 👉 Put an `x` in the boxes that apply and delete all others -->

- [ ] Lint and unit tests pass with my changes
- [ ] I have added tests that prove my fix is effective/works (if needed)
- [ ] I have added necessary documentation (if appropriate)
- [ ] Any dependent changes are merged and published in downstream modules
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
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
29 changes: 24 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
language: node_js
cache: yarn
node_js:
- stable
- "6"
- "4"

jobs:
fast_finish: true
include:
- stage: Lint
env: SCRIPT=lint
node_js: 'stable'
- &test
stage: 'Test'
env: SCRIPT=test
node_js: 'stable'
- <<: *test
node_js: 'lts/*'
- <<: *test
node_js: 6

script: npm run $SCRIPT

after_success:
- npm i coveralls
- cat ./coverage/lcov.info | $(npm bin)/coveralls

notifications:
email: false
Loading