Skip to content

Commit

Permalink
postcss-bundler (#1090)
Browse files Browse the repository at this point in the history
  • Loading branch information
romainmenke authored Aug 24, 2023
1 parent a8ea763 commit f0efd4a
Show file tree
Hide file tree
Showing 62 changed files with 1,692 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/css-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ body:
multiple: true
options:
- PostCSS Preset Env
- PostCSS Bundler
- CSS All Property
- CSS Blank Pseudo
- CSS Has Pseudo
Expand Down
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/plugin-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ body:
multiple: true
options:
- PostCSS Preset Env
- PostCSS Bundler
- CSS All Property
- CSS Blank Pseudo
- CSS Has Pseudo
Expand Down
3 changes: 3 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
"plugin-packs/postcss-preset-env":
- plugin-packs/postcss-preset-env/**

"plugin-packs/postcss-bundler":
- plugin-packs/postcss-bundler/**

"cli":
- cli/csstools-cli/**
- packages/base-cli/**
Expand Down
49 changes: 49 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions plugin-packs/postcss-bundler/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
package-lock.json
yarn.lock
*.result.css
*.result.css.map
*.result.html
1 change: 1 addition & 0 deletions plugin-packs/postcss-bundler/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.2.0
21 changes: 21 additions & 0 deletions plugin-packs/postcss-bundler/.tape.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { postcssTape } from '@csstools/postcss-tape';
import plugin from '@csstools/postcss-bundler';

const testCases = {
basic: {
message: "supports basic usage",
},
'leading-slash': {
message: "does not infer a root to resolve leading slash imports",
exception: /Failed to find \'\/imports\/basic.css\'/,
},
'does-not-exist': {
message: "throws on files that don't exist",
exception: /Failed to find 'imports\/does-not-exist.css'/,
},
'examples/example': {
message: 'minimal example',
},
}

postcssTape(plugin)(testCases);
47 changes: 47 additions & 0 deletions plugin-packs/postcss-bundler/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Changes to PostCSS Bundler

### Unreleased (major)

- Initial major version

### 0.1.0-alpha.6

_August 16, 2023_

- Reduce filesystem access

### 0.1.0-alpha.5

_August 15, 2023_

- Stricter parsing algorithm

### 0.1.0-alpha.4

_August 15, 2023_

- Fix sourcemaps

### 0.1.0-alpha.3

_August 14, 2023_

- Fix the path from which node modules are resolved

### 0.1.0-alpha.2

_August 14, 2023_

- Use the `node_modules:` scheme to reference imports from a `node_modules` package

### 0.1.0-alpha.1

_August 14, 2023_

- Use the `npm:` scheme to reference imports from a `node_modules` package

### 0.1.0-alpha.0

_August 14, 2023_

- Initial version
Loading

0 comments on commit f0efd4a

Please sign in to comment.