Skip to content
This repository has been archived by the owner on Dec 28, 2021. It is now read-only.

Support Deno #80

Merged
merged 1 commit into from
Oct 27, 2021
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
18 changes: 15 additions & 3 deletions INSTALL.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Installing PostCSS Nesting

[PostCSS Nesting] runs in all Node environments, with special instructions for:
[PostCSS Nesting] runs in all Node environments and Deno, with special instructions for:

| [Node](#node) | [PostCSS CLI](#postcss-cli) | [Webpack](#webpack) | [Create React App](#create-react-app) | [Gulp](#gulp) | [Grunt](#grunt) |
| --- | --- | --- | --- | --- | --- |
| [Node](#node) | [PostCSS CLI](#postcss-cli) | [Webpack](#webpack) | [Create React App](#create-react-app) | [Gulp](#gulp) | [Grunt](#grunt) | [Deno](#deno) |
| --- | --- | --- | --- | --- | --- | --- |

## Node

Expand Down Expand Up @@ -160,6 +160,17 @@ grunt.initConfig({
});
```

## Deno

You can also use [PostCSS Nesting] on [Deno]:

```js
import postcss from "https://deno.land/x/postcss/mod.js";
import postcssNesting from "https://deno.land/x/postcss_nesting/mod.js";

await postcss([postcssNesting]).process(YOUR_CSS /*, processOptions */);
```

[Gulp PostCSS]: https://github.com/postcss/gulp-postcss
[Grunt PostCSS]: https://github.com/nDmitry/grunt-postcss
[PostCSS]: https://github.com/postcss/postcss
Expand All @@ -168,3 +179,4 @@ grunt.initConfig({
[PostCSS Nesting]: https://github.com/jonathantneal/postcss-nesting
[React App Rewire PostCSS]: https://github.com/csstools/react-app-rewire-postcss
[React App Rewired]: https://github.com/timarney/react-app-rewired
[Deno]: https://deno.land/x/postcss_nesting
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,17 @@ postcss([
| [Node](INSTALL.md#node) | [Webpack](INSTALL.md#webpack) | [Create React App](INSTALL.md#create-react-app) | [Gulp](INSTALL.md#gulp) | [Grunt](INSTALL.md#grunt) |
| --- | --- | --- | --- | --- |

### Deno

You can also use [PostCSS Nesting] on [Deno]:

```js
import postcss from "https://deno.land/x/postcss/mod.js";
import postcssNesting from "https://deno.land/x/postcss_nesting/mod.js";

await postcss([postcssNesting]).process(YOUR_CSS /*, processOptions */);
```

[cli-img]: https://img.shields.io/travis/csstools/postcss-nesting.svg
[cli-url]: https://travis-ci.org/csstools/postcss-nesting
[css-img]: https://cssdb.org/badge/nesting-rules.svg
Expand All @@ -77,3 +88,4 @@ postcss([
[CSS Nesting]: https://drafts.csswg.org/css-nesting-1/
[PostCSS]: https://github.com/postcss/postcss
[PostCSS Nesting]: https://github.com/jonathantneal/postcss-nesting
[Deno]: https://deno.land/x/postcss_nesting
3 changes: 3 additions & 0 deletions mod.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/* Deno entry point */

export { default } from './src/postcss-8-nesting.js'