Skip to content

chore: update deps #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Apr 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 14 additions & 19 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,42 +4,37 @@ on:
pull_request:
jobs:
full:
name: Node.js 17 Full
name: Node.js 18 Full
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 17
cache: yarn
node-version: 18
- name: Install dependencies
run: yarn install --frozen-lockfile
run: npm ci
- name: Run tests
run: yarn test
run: npm test
env:
FORCE_COLOR: 2
short:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 16
- 14
- 12
name: Node.js ${{ matrix.node-version }} Quick
node: [16]
name: Node.js ${{ matrix.node }} Quick
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/checkout@v3
- name: Install Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: yarn
node-version: ${{ matrix.node }}
- name: Install dependencies
run: yarn install --frozen-lockfile
run: npm ci
- name: Run unit tests
run: yarn unit
run: npm run unit
env:
FORCE_COLOR: 2
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ npm-debug.log
yarn-error.log
coverage
npm-debug.log
package-lock.json

1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

18 changes: 17 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
#0.1.0
# 0.2.0
- added `c8` for coverage and uvu for unit tests
- enforces 100% coverage
- removed `jest`
- removed `console.log` which reports contents of the resolved `@import`
- moved mock test files into subfolder within `test/mocks/` (previously mock vendors.css was shipping to npm)
- updated to the latest v8 PostCSS (set as peer dependency)
improved the algorithm to account for both single and double and missing quotes within `@import`
- improved the algorithm to try-catch fs errors and report them properly
- removed Travis, added GH actions
- 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
- added `prettier` and `eslint` to trigger VSCode to format/lint the code (previous setup wasn't picked up by VSCode plugins)
- committed a fresh yarn lock file (GH actions will expect it too)

Closes issues #2, #3, #4, #5.

# 0.1.0
- Basic nested import functionality
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = () => {
node.replaceWith(`${node.raws.before}${replacement}`);
}
},
postcssPlugin: "ppostcss-nested-import"
postcssPlugin: "postcss-nested-import"
};
};

Expand Down
Loading