Skip to content

Commit 60916cf

Browse files
committed
Merge pull request #12 from sullenor/peer-deps
Peer deps
2 parents bf83115 + 7d77db9 commit 60916cf

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ Automatically compiles a CSS Module to a low-level interchange format called ICS
55

66
One of the ways you can compile [CSS Modules](https://github.com/css-modules/css-modules) to the ICSS format is through the require hook. The require hook will bind itself to node's require and automatically compile files on the fly. This is similar to Babel's [babel/register](https://babeljs.io/docs/usage/require/).
77

8+
## Requirements
9+
10+
To use this tool we require postcss and few plugins to be installed on your project. See the list below:
11+
12+
- `"postcss": "4.x"`
13+
- `"postcss-modules-extract-imports": "0.x"`
14+
- `"postcss-modules-local-by-default": "0.x"`
15+
- `"postcss-modules-scope": "0.x"`
16+
817
## Install
918

1019
```bash

package.json

+10-6
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33
"version": "1.0.1",
44
"description": "A require hook to compile CSS Modules on the fly",
55
"main": "index.js",
6-
"dependencies": {
7-
"postcss": "^4.1.16",
8-
"postcss-modules-extract-imports": "0.0.5",
9-
"postcss-modules-local-by-default": "0.0.9",
10-
"postcss-modules-scope": "0.0.8"
11-
},
126
"devDependencies": {
137
"babel": "^5.8.20",
148
"babel-eslint": "^4.0.5",
@@ -20,8 +14,18 @@
2014
"in-publish": "^2.0.0",
2115
"isparta": "^3.0.3",
2216
"mocha": "^2.2.5",
17+
"postcss": "4.x",
18+
"postcss-modules-extract-imports": "0.x",
19+
"postcss-modules-local-by-default": "0.x",
20+
"postcss-modules-scope": "0.x",
2321
"precommit-hook": "^3.0.0"
2422
},
23+
"peerDependencies": {
24+
"postcss": "4.x",
25+
"postcss-modules-extract-imports": "0.x",
26+
"postcss-modules-local-by-default": "0.x",
27+
"postcss-modules-scope": "0.x"
28+
},
2529
"scripts": {
2630
"start": "esw -w .",
2731
"lint": "eslint .",

0 commit comments

Comments
 (0)