diff --git a/README.md b/README.md index 501723d..b8e1b44 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,15 @@ Automatically compiles a CSS Module to a low-level interchange format called ICS 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/). +## Requirements + +To use this tool we require postcss and few plugins to be installed on your project. See the list below: + +- `"postcss": "4.x"` +- `"postcss-modules-extract-imports": "0.x"` +- `"postcss-modules-local-by-default": "0.x"` +- `"postcss-modules-scope": "0.x"` + ## Install ```bash diff --git a/package.json b/package.json index 42bc94d..24a21ee 100644 --- a/package.json +++ b/package.json @@ -3,12 +3,6 @@ "version": "1.0.1", "description": "A require hook to compile CSS Modules on the fly", "main": "index.js", - "dependencies": { - "postcss": "^4.1.16", - "postcss-modules-extract-imports": "0.0.5", - "postcss-modules-local-by-default": "0.0.9", - "postcss-modules-scope": "0.0.8" - }, "devDependencies": { "babel": "^5.8.20", "babel-eslint": "^4.0.5", @@ -20,8 +14,18 @@ "in-publish": "^2.0.0", "isparta": "^3.0.3", "mocha": "^2.2.5", + "postcss": "4.x", + "postcss-modules-extract-imports": "0.x", + "postcss-modules-local-by-default": "0.x", + "postcss-modules-scope": "0.x", "precommit-hook": "^3.0.0" }, + "peerDependencies": { + "postcss": "4.x", + "postcss-modules-extract-imports": "0.x", + "postcss-modules-local-by-default": "0.x", + "postcss-modules-scope": "0.x" + }, "scripts": { "start": "esw -w .", "lint": "eslint .",