Skip to content

Commit 1b9a530

Browse files
authored
Merge pull request #12 from revelt/chore-update-deps
chore: update deps
2 parents 96251f6 + 92670b8 commit 1b9a530

File tree

8 files changed

+5743
-3491
lines changed

8 files changed

+5743
-3491
lines changed

.github/workflows/test.yml

+14-19
Original file line numberDiff line numberDiff line change
@@ -4,42 +4,37 @@ on:
44
pull_request:
55
jobs:
66
full:
7-
name: Node.js 17 Full
7+
name: Node.js 18 Full
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout the repository
11-
uses: actions/checkout@v2
11+
uses: actions/checkout@v3
1212
- name: Install Node.js
13-
uses: actions/setup-node@v2
13+
uses: actions/setup-node@v3
1414
with:
15-
node-version: 17
16-
cache: yarn
15+
node-version: 18
1716
- name: Install dependencies
18-
run: yarn install --frozen-lockfile
17+
run: npm ci
1918
- name: Run tests
20-
run: yarn test
19+
run: npm test
2120
env:
2221
FORCE_COLOR: 2
2322
short:
2423
runs-on: ubuntu-latest
2524
strategy:
2625
matrix:
27-
node-version:
28-
- 16
29-
- 14
30-
- 12
31-
name: Node.js ${{ matrix.node-version }} Quick
26+
node: [16]
27+
name: Node.js ${{ matrix.node }} Quick
3228
steps:
3329
- name: Checkout the repository
34-
uses: actions/checkout@v2
35-
- name: Install Node.js ${{ matrix.node-version }}
36-
uses: actions/setup-node@v2
30+
uses: actions/checkout@v3
31+
- name: Install Node.js ${{ matrix.node }}
32+
uses: actions/setup-node@v3
3733
with:
38-
node-version: ${{ matrix.node-version }}
39-
cache: yarn
34+
node-version: ${{ matrix.node }}
4035
- name: Install dependencies
41-
run: yarn install --frozen-lockfile
36+
run: npm ci
4237
- name: Run unit tests
43-
run: yarn unit
38+
run: npm run unit
4439
env:
4540
FORCE_COLOR: 2

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ npm-debug.log
33
yarn-error.log
44
coverage
55
npm-debug.log
6-
package-lock.json
6+

.npmrc

-1
This file was deleted.

CHANGELOG.md

+17-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,18 @@
1-
#0.1.0
1+
# 0.2.0
2+
- added `c8` for coverage and uvu for unit tests
3+
- enforces 100% coverage
4+
- removed `jest`
5+
- removed `console.log` which reports contents of the resolved `@import`
6+
- moved mock test files into subfolder within `test/mocks/` (previously mock vendors.css was shipping to npm)
7+
- updated to the latest v8 PostCSS (set as peer dependency)
8+
improved the algorithm to account for both single and double and missing quotes within `@import`
9+
- improved the algorithm to try-catch fs errors and report them properly
10+
- removed Travis, added GH actions
11+
- yarn is assumed to be the preferred over npm, but added npm lockfile to gitignore and `.npmrc` just in case somebody forks and tries to run it using npm i
12+
- added `prettier` and `eslint` to trigger VSCode to format/lint the code (previous setup wasn't picked up by VSCode plugins)
13+
- committed a fresh yarn lock file (GH actions will expect it too)
14+
15+
Closes issues #2, #3, #4, #5.
16+
17+
# 0.1.0
218
- Basic nested import functionality

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module.exports = () => {
3131
node.replaceWith(`${node.raws.before}${replacement}`);
3232
}
3333
},
34-
postcssPlugin: "ppostcss-nested-import"
34+
postcssPlugin: "postcss-nested-import"
3535
};
3636
};
3737

0 commit comments

Comments
 (0)