Skip to content

Commit

Permalink
remove node@4 support (#151)
Browse files Browse the repository at this point in the history
* remove node@4 support

* remove babel

* add engine field

* up lock file

* add options description
  • Loading branch information
mightyaleksey authored Oct 30, 2018
1 parent 1ab8eb1 commit 797d678
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 1,263 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
language: node_js
node_js:
- "4"
- "6"
- "node"

Expand Down
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,27 @@ into:
composes: className [... className] from "path/to/file.css";
```

## Options

- `failOnWrongOrder` `bool` generates exception for unpredictable imports order.

```css
.aa {
composes: b from './b.css';
composes: c from './c.css';
}

.bb {
/* "b.css" should be before "c.css" in this case */
composes: c from './c.css';
composes: b from './b.css';
}
```

## Building

```
npm install
npm build
npm test
```

Expand Down
28 changes: 7 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,25 @@
{
"name": "postcss-modules-extract-imports",
"version": "1.2.1",
"version": "2.0.0",
"description": "A CSS Modules transform to extract local aliases for inline imports",
"main": "lib/index.js",
"main": "src/index.js",
"engines": {
"node": ">= 6"
},
"files": [
"lib"
"src"
],
"scripts": {
"build": "babel --out-dir lib src",
"test": "jest --coverage",
"precommit": "lint-staged",
"prepublish": "yarn run test && yarn run build"
"prepublish": "yarn run test"
},
"lint-staged": {
"*.js": [
"prettier --single-quote --no-semi --write",
"git add"
]
},
"babel": {
"presets": [
[
"env",
{
"targets": {
"node": 4
}
}
]
]
},
"repository": {
"type": "git",
"url": "https://github.com/css-modules/postcss-modules-extract-imports.git"
Expand All @@ -49,10 +39,6 @@
"postcss": "^7.0.5"
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-eslint": "^7.2.2",
"babel-jest": "^20.0.3",
"babel-preset-env": "^1.5.1",
"codecov.io": "^0.1.2",
"coveralls": "^2.11.2",
"husky": "^0.13.3",
Expand Down
Loading

0 comments on commit 797d678

Please sign in to comment.