From bc191ed0817f8c4810a9b4d9fb26a5f3ef3fced1 Mon Sep 17 00:00:00 2001 From: Alexey Litvinov Date: Sun, 9 Aug 2015 20:34:04 +0300 Subject: [PATCH 1/3] moving dependencies to peerDeps --- package.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 42bc94d..eb8170f 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", @@ -22,6 +16,12 @@ "mocha": "^2.2.5", "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 .", From 3b95db6091ede491a13e874ee549d941949ffaef Mon Sep 17 00:00:00 2001 From: Alexey Litvinov Date: Sun, 9 Aug 2015 21:25:01 +0300 Subject: [PATCH 2/3] readme update --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) 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 From 7d77db9f5a5cd72debe7a6aa5993c1b78b436e4e Mon Sep 17 00:00:00 2001 From: Alexey Litvinov Date: Sun, 9 Aug 2015 21:57:18 +0300 Subject: [PATCH 3/3] also saved peerDeps as devDeps to pass the tests --- package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package.json b/package.json index eb8170f..24a21ee 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,10 @@ "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": {