Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wip] remove node@4 support #151

Merged
merged 5 commits into from
Oct 30, 2018
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
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