Skip to content

Commit

Permalink
chore: update to postcss 8 (#41)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
toomuchdesign authored May 7, 2022
1 parent f6a1303 commit cf87705
Show file tree
Hide file tree
Showing 16 changed files with 5,230 additions and 1,654 deletions.
5 changes: 1 addition & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ root = true

[*]
indent_style = space
indent_size = 4
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.{json,yml}]
indent_size = 2
16 changes: 9 additions & 7 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
### Do you want to request a *feature* or report a *bug*?
### Do you want to request a _feature_ or report a _bug_?

...

### What is the current behaviour?

...

### What is the expected behaviour?
Expand All @@ -10,12 +12,12 @@

### Steps to Reproduce the Problem

1. ...
2. ...
3. ...
1. ...
2. ...
3. ...

### Specifications

- Version:
- Platform:
- Subsystem:
- Version:
- Platform:
- Subsystem:
13 changes: 8 additions & 5 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
### What kind of change does this PR introduce? *(Bug fix, feature, docs update, ...)*
### What kind of change does this PR introduce? _(Bug fix, feature, docs update, ...)_

...

### What is the current behaviour? *(You can also link to an open issue here)*
### What is the current behaviour? _(You can also link to an open issue here)_

...

### What is the new behaviour?
...

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

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

### Other information:
...

### Other information:

### Please check if the PR fulfills these requirements:

- [ ] Tests for the changes have been added
- [ ] Docs have been added / updated
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: CI
on:
push:
branches:
- master
pull_request:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Use Node.js 16.15
uses: actions/setup-node@v3
with:
node-version: '16.15'

- run: npm ci

- name: Upload code coverage
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
21 changes: 0 additions & 21 deletions .github/workflows/cy.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
node_modules/
npm-debug.log
.nyc_output
coverage
7 changes: 0 additions & 7 deletions .npmignore

This file was deleted.

1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16.15
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.git/
package.json
package-lock.json
.nyc_output
coverage
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"trailingComma": "es5"
}
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,34 @@
## 3.0.0

Breaking Changes

- Use `PostCSS` 8
- Node supported version >=12

## 2.0.0

- Consider `rule` nodes only when when building ancestor selectors
- Use `PostCSS` 6
- Restrict support to `node.js` >= 4
- Remove `object-assign` dependency

## 1.0.0

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

## 0.1.0

- Add experimental `replaceDeclarations` option, to process declaration props and values, too
- Cast warning when nestingLevel >= parentsStack.length
- Move `spacesAndAmpersandRegex` regex into a reusable regex
- Add a failing test case documenting issues when complex nesting

## 0.0.1

- Fix `levelSymbol` and `parentSymbol` options not being used

## 0.0.0

- Initial release
Loading

0 comments on commit cf87705

Please sign in to comment.