Skip to content

Commit

Permalink
Rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
andyjansson committed Oct 3, 2018
1 parent caf10ac commit 532a4e4
Show file tree
Hide file tree
Showing 10 changed files with 1,195 additions and 159 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
language: node_js
cache: yarn
node_js:
- stable
- node
- "8"
- "6"
- "4"
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
- Changed: Updated postcss-selector-parser to version 5.0.0-rc.3
- Changed: Dropped reduce-css-calc as a dependency
- Fixed: Support constant() and env() ([#42](https://github.com/postcss/postcss-calc/issues/42), [#48](https://github.com/postcss/postcss-calc/issues/48))
- Fixed: Support custom properties with "calc" in its name ([#50](https://github.com/postcss/postcss-calc/issues/50))
- Fixed: Remove unnecessary whitespace around `*` and `/` ([cssnano#625](https://github.com/cssnano/cssnano/issues/625))
- Fixed: Arithmetic bugs around subtraction ([#49](https://github.com/postcss/postcss-calc/issues/49))
- Fixed: Handling of nested calc statements ([reduce-css-calc#49](https://github.com/MoOx/reduce-css-calc/issues/49))
- Fixed: Bugs regarding complex calculations ([reduce-cs-calc#45](https://github.com/MoOx/reduce-css-calc/issues/45))
- Fixed: `100%` incorrectly being transformed to `1` ([reduce-css-calc#44](https://github.com/MoOx/reduce-css-calc/issues/44))
- Added: support for case-insensitive calc statements

# 6.0.2 - 2018-09-25

- Fixed: use PostCSS 7 (thanks to @douglasduteil)
Expand Down
19 changes: 12 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
"LICENSE"
],
"scripts": {
"prepublish": "npm run build && del-cli dist/__tests__",
"build": "del-cli dist && cross-env BABEL_ENV=publish babel src --out-dir dist",
"prepublish": "npm run build",
"build": "del-cli dist && cross-env BABEL_ENV=publish babel src --out-dir dist --ignore src/__tests__/**/*.js && jison src/parser.jison -o dist/parser.js",
"pretest": "eslint src && npm run build",
"test": "ava src/__tests__/"
"test": "ava"
},
"author": "Maxime Thirouin",
"author": "Andy Jansson",
"license": "MIT",
"repository": "https://github.com/postcss/postcss-calc.git",
"eslintConfig": {
Expand All @@ -30,6 +30,7 @@
"devDependencies": {
"@babel/cli": "^7.0.0",
"@babel/core": "^7.0.0",
"@babel/polyfill": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/register": "^7.0.0",
"ava": "^1.0.0-beta.8",
Expand All @@ -40,15 +41,19 @@
"eslint": "^5.6.1",
"eslint-config-i-am-meticulous": "^11.0.0",
"eslint-plugin-babel": "^5.2.1",
"eslint-plugin-import": "^2.2.0"
"eslint-plugin-import": "^2.2.0",
"jison-gho": "^0.6.1-215"
},
"dependencies": {
"css-unit-converter": "^1.1.1",
"postcss": "^7.0.2",
"postcss-selector-parser": "^5.0.0-rc.3",
"reduce-css-calc": "^2.0.0"
"postcss-value-parser": "^3.3.0"
},
"ava": {
"require": "@babel/register"
"require": [
"@babel/register",
"@babel/polyfill"
]
}
}
Loading

0 comments on commit 532a4e4

Please sign in to comment.