Skip to content

Commit cf87705

Browse files
chore: update to postcss 8 (#41)
* chore: bump minimum Node version to v12 * chore: declare postcss as peer dependency * chore: update dev env to Node 16 * chore: update escape-string-regexp to v4 * chore: engines set to node >= 10 * chore: use github actions * test: run prettier in CI * refactor: use postcss 8 api * chore: update github actions deps
1 parent f6a1303 commit cf87705

16 files changed

+5230
-1654
lines changed

.editorconfig

+1-4
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@ 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
99
insert_final_newline = true
10-
11-
[*.{json,yml}]
12-
indent_size = 2

.github/ISSUE_TEMPLATE.md

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
### Do you want to request a *feature* or report a *bug*?
1+
### Do you want to request a _feature_ or report a _bug_?
2+
23
...
34

45
### What is the current behaviour?
6+
57
...
68

79
### What is the expected behaviour?
@@ -10,12 +12,12 @@
1012

1113
### Steps to Reproduce the Problem
1214

13-
1. ...
14-
2. ...
15-
3. ...
15+
1. ...
16+
2. ...
17+
3. ...
1618

1719
### Specifications
1820

19-
- Version:
20-
- Platform:
21-
- Subsystem:
21+
- Version:
22+
- Platform:
23+
- Subsystem:

.github/PULL_REQUEST_TEMPLATE.md

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
1-
### What kind of change does this PR introduce? *(Bug fix, feature, docs update, ...)*
1+
### What kind of change does this PR introduce? _(Bug fix, feature, docs update, ...)_
2+
23
...
34

4-
### What is the current behaviour? *(You can also link to an open issue here)*
5+
### What is the current behaviour? _(You can also link to an open issue here)_
6+
57
...
68

79
### What is the new behaviour?
8-
...
910

10-
### Does this PR introduce a breaking change? *(What changes might users need to make in their application due to this PR?)*
1111
...
1212

13+
### Does this PR introduce a breaking change? _(What changes might users need to make in their application due to this PR?)_
1314

14-
### Other information:
15+
...
1516

17+
### Other information:
1618

1719
### Please check if the PR fulfills these requirements:
20+
1821
- [ ] Tests for the changes have been added
1922
- [ ] Docs have been added / updated

.github/workflows/ci.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: CI
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Use Node.js 16.15
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: '16.15'
20+
21+
- run: npm ci
22+
23+
- name: Upload code coverage
24+
uses: coverallsapp/github-action@master
25+
with:
26+
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/cy.yml

-21
This file was deleted.

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
node_modules/
22
npm-debug.log
3+
.nyc_output
4+
coverage

.npmignore

-7
This file was deleted.

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
16.15

.prettierignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.git/
2+
package.json
3+
package-lock.json
4+
.nyc_output
5+
coverage

.prettierrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "es5"
4+
}

CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,34 @@
1+
## 3.0.0
2+
3+
Breaking Changes
4+
5+
- Use `PostCSS` 8
6+
- Node supported version >=12
7+
18
## 2.0.0
9+
210
- Consider `rule` nodes only when when building ancestor selectors
311
- Use `PostCSS` 6
412
- Restrict support to `node.js` >= 4
513
- Remove `object-assign` dependency
614

715
## 1.0.0
16+
817
- Solve complex nesting scenarios scenarios externalizing parent selectors resolution to [postcss-resolve-nested-selector](https://github.com/davidtheclark/)
918
- Refactor bootstrap function using `walkRules` and `walkDecls` PostCSS methods
1019
- `replaceDeclarations` option will replace declaration values only
1120

1221
## 0.1.0
22+
1323
- Add experimental `replaceDeclarations` option, to process declaration props and values, too
1424
- Cast warning when nestingLevel >= parentsStack.length
1525
- Move `spacesAndAmpersandRegex` regex into a reusable regex
1626
- Add a failing test case documenting issues when complex nesting
1727

1828
## 0.0.1
29+
1930
- Fix `levelSymbol` and `parentSymbol` options not being used
2031

2132
## 0.0.0
33+
2234
- Initial release

0 commit comments

Comments
 (0)