Skip to content

Commit 24d6909

Browse files
committed
Merge pull request MoOx#238 from MoOx/postcss-merge
postcss-cssnext merge
2 parents a969931 + 25131d6 commit 24d6909

File tree

110 files changed

+679
-2588
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+679
-2588
lines changed

.eslintrc

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
---
2-
# babel support more syntax stuff than eslint for now
2+
root: true
3+
extends: eslint:recommended
4+
5+
# babel-eslint support more syntax stuff than eslint for now
36
parser: babel-eslint
47

58
ecmaFeatures:
@@ -27,31 +30,34 @@ plugins:
2730

2831
# 0: off, 1: warning, 2: error
2932
rules:
33+
no-console: 0
34+
3035
indent: [2, 2] # 2 spaces indentation
3136
max-len: [2, 80, 4]
32-
no-multiple-empty-lines: [2, {"max": 1}]
3337
quotes: [2, "double"]
38+
jsx-quotes: [2, "prefer-double"]
3439
semi: [2, "never"]
40+
no-multiple-empty-lines: [2, {"max": 1}]
3541

3642
brace-style: [2, "stroustrup"]
3743
comma-dangle: [2, "always-multiline"]
3844
comma-style: [2, "last"]
39-
computed-property-spacing: [2, "never"]
4045
dot-location: [2, "property"]
4146

42-
no-var: [2]
43-
no-bitwise: [2]
4447
one-var: [2, "never"]
48+
no-var: [2]
4549
prefer-const: [2]
50+
no-bitwise: [2]
51+
52+
object-curly-spacing: [2, "always"]
53+
array-bracket-spacing: [2, "always"]
54+
#computed-property-spacing: [2, "always"]
4655

47-
array-bracket-spacing: [2, "never"]
48-
object-shorthand: [2, "methods"]
49-
object-curly-spacing: [2, "never"]
56+
space-unary-ops: [2, {"words": true, "nonwords": false}]
5057
space-after-keywords: [2, "always"]
5158
space-before-blocks: [2, "always"]
5259
space-before-function-paren: [2, "never"]
5360
space-in-parens: [2, "never"]
54-
space-unary-ops: [2, {"words": true, "nonwords": false}]
5561
spaced-comment: [2, "always"]
5662

5763
# see globals
@@ -60,7 +66,6 @@ rules:
6066
# eslint-plugin-react rules
6167
react/jsx-boolean-value: 2
6268
react/jsx-no-undef: 2
63-
react/jsx-quotes: 2
6469
#react/jsx-sort-prop-types: 2
6570
#react/jsx-sort-props: 2
6671
react/jsx-uses-react: 2

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
# npm
12
node_modules
23

3-
dist
4+
# build
5+
lib
46
docs/dist

CHANGELOG.md

Lines changed: 67 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,55 @@
1+
# 2.3.0 - 2015-12-16
2+
3+
- Added: we use latest version of pixrem(@^3)
4+
([6d44410](https://github.com/MoOx/postcss-cssnext/commit/6d4441023f30895211f010776b142d02359f4d0a))
5+
So now `rem` have
6+
[2 new parameters](https://github.com/robwierzbowski/node-pixrem#options):
7+
- ``rootValue`` to define the root element font-size manually
8+
- ``unitPrecision`` for rounded values
9+
10+
# 2.2.0 - 2015-10-21
11+
12+
- Added: [postcss-nesting](https://github.com/jonathantneal/postcss-nesting)
13+
([b31f167](https://github.com/MoOx/postcss-cssnext/commit/b31f167d7659a18a14fce65a7a94da07560e6a59)).
14+
Supports nesting via the `@nest` syntax. See postcss-nesting documentation.
15+
16+
# 2.1.0 - 2015-09-16
17+
18+
- Added: [postcss-initial](https://github.com/maximkoretskiy/postcss-initial)
19+
([a907881](https://github.com/MoOx/postcss-cssnext/commit/a90788153801a3f898f6cc1ade189d4de2af3367)).
20+
Supports `initial` value for all properties. Also it supports `all: initial`.
21+
_Does not support `all: unset` and `all: inherit`._
22+
Plugin can be useful for creating isolated components.
23+
- `all` specification: https://drafts.csswg.org/css-cascade/#all-shorthand
24+
- `all` browsers support: http://caniuse.com/#feat=css-all
25+
- `initial` value specification: https://drafts.csswg.org/css-cascade/#initial-value
26+
- `initial` value browser support: http://caniuse.com/#feat=css-initial-value
27+
28+
# 2.0.1 - 2015-09-14
29+
30+
- Fixed: plugin can be consumed correctly from es5 environment
31+
([7d6d3c0](https://github.com/MoOx/postcss-cssnext/commit/7d6d3c018d8ca17091d4cfe3d5d61e246ad8775d)).
32+
33+
# 2.0.0 - 2015-09-14
34+
35+
- Added: support for PostCSS v5.x
36+
- Removed: support for PostCSS v4.x
37+
([b5ece99...8907c13](https://github.com/MoOx/postcss-cssnext/compare/b5ece99c1e1b5e4cdfd6c25f856946bbcbc2247c...8907c13d31662a2cb393edb0387144dfbba81659)).
38+
39+
---
40+
41+
**pre 2.0.0 information was related to `cssnext` package.**
42+
43+
---
44+
145
# 1.8.4 - 2015-08-24
246

347
- Fixed: `compress` option now works again correctly. A recent update in cssnano
448
has introduced some minor breaking changes the way cssnext changed plugins
549
metadata (`pluginName`).
650
A direct minor change is that `messages` (in console or in css output) now show
751
real origin (postcss plugin name) instead of a vague "cssnext" origin.
8-
([#195](https://github.com/cssnext/cssnext/issues/195))
52+
([#195](https://github.com/MoOx/postcss-cssnext/issues/195))
953

1054
# 1.8.3 - 2015-08-06
1155

@@ -15,28 +59,28 @@ severals fixes.
1559
# 1.8.2 - 2015-07-23
1660

1761
- Fixed: CLI watcher now works watchs correctl multiples `@import`
18-
([#123](https://github.com/cssnext/cssnext/issues/123))
62+
([#123](https://github.com/MoOx/postcss-cssnext/issues/123))
1963

2064
# 1.8.1 - 2015-07-15
2165

2266
- Added: cssnext now throw an error if used as a webpack loader to prevent
2367
unexpected usage with a recommendation for
24-
[cssnext-loader](https://github.com/cssnext/cssnext-loader)
25-
([#61](https://github.com/cssnext/cssnext/issues/61))
68+
[cssnext-loader](https://github.com/MoOx/postcss-cssnext-loader)
69+
([#61](https://github.com/MoOx/postcss-cssnext/issues/61))
2670

2771
# 1.8.0 - 2015-06-29
2872

2973
- Fixed: replacement of `postcss-log-warnings` (deprecated) by
3074
`postcss-reporter`
31-
([#162](https://github.com/cssnext/cssnext/issues/162))
75+
([#162](https://github.com/MoOx/postcss-cssnext/issues/162))
3276
- Fixed: CLI now add `to` option automatically
33-
([#159](https://github.com/cssnext/cssnext/issues/159))
77+
([#159](https://github.com/MoOx/postcss-cssnext/issues/159))
3478
If you were happy with the previous CLI behavior (which was not rebasing url),
3579
you should probably just add the `--no-url` to keep the CSS as it was.
3680
- Changed: `compress` option now use cssnano v2.x
37-
([#166](https://github.com/cssnext/cssnext/issues/166))
81+
([#166](https://github.com/MoOx/postcss-cssnext/issues/166))
3882
- Added: CLI output file dirname is now automatically created (using `mkdirp`)
39-
([#146](https://github.com/cssnext/cssnext/issues/146))
83+
([#146](https://github.com/MoOx/postcss-cssnext/issues/146))
4084

4185
# 1.7.1 - 2015-06-19
4286

@@ -52,28 +96,28 @@ Now you must use `@custom-selector :--{name}` syntax instead of
5296
`@custom-selector --{name}`
5397
The support of syntax without : and the warning message will be remove in the
5498
next major release
55-
([#97](https://github.com/cssnext/cssnext/issues/97))
99+
([#97](https://github.com/MoOx/postcss-cssnext/issues/97))
56100
- Added: `plugins` option that allows you to pipe your own transformations
57-
([#118](https://github.com/cssnext/cssnext/issues/118))
101+
([#118](https://github.com/MoOx/postcss-cssnext/issues/118))
58102
- Added: `messages` option that allows you to see messages of transformations
59-
([#88](https://github.com/cssnext/cssnext/issues/88))
103+
([#88](https://github.com/MoOx/postcss-cssnext/issues/88))
60104
- Added: `:any-link` pseudo class support
61105

62106
# 1.6.0 - 2015-06-02
63107

64108
- Added: prevent mutability issues with frozen options objects
65-
([#147](https://github.com/cssnext/cssnext/pull/147))
109+
([#147](https://github.com/MoOx/postcss-cssnext/pull/147))
66110

67111
# 1.5.2 - 2015-05-27
68112

69113
- Fixed: support for autoprefixer 5.2
70-
([#131](https://github.com/cssnext/cssnext/issues/131))
114+
([#131](https://github.com/MoOx/postcss-cssnext/issues/131))
71115

72116
# 1.5.1 - 2015-05-25
73117

74118
- Fixed: when printing a bug report in CLI, url was not printed, due to a
75119
replacement of colors lib by chalk in 1.5.0
76-
([#129](https://github.com/cssnext/cssnext/pull/129))
120+
([#129](https://github.com/MoOx/postcss-cssnext/pull/129))
77121

78122
# 1.5.0 - 2015-05-23
79123

@@ -121,7 +165,7 @@ files anymore
121165
# 1.0.1 - 2015-02-18
122166

123167
- Fixed: cssnext binary doesn't exit on an error if --watch is enabled
124-
([#69](https://github.com/cssnext/cssnext/pull/69))
168+
([#69](https://github.com/MoOx/postcss-cssnext/pull/69))
125169

126170
# 1.0.0 - 2015-02-06
127171

@@ -162,7 +206,7 @@ autoprefixer
162206
# 0.6.6 - 2014-12-22
163207

164208
- Fixed: `Cannot find module 'exit'` error when an error came out
165-
([#54](https://github.com/cssnext/cssnext/issues/54))
209+
([#54](https://github.com/MoOx/postcss-cssnext/issues/54))
166210

167211
# 0.6.5 - 2014-12-16
168212

@@ -216,7 +260,7 @@ v3.0.0 have by default `{inline: true, sourceContent: true}`
216260
# 0.4.3 - 2014-11-09
217261

218262
- Added: font-variant support
219-
([#42](https://github.com/cssnext/cssnext/issues/42))
263+
([#42](https://github.com/MoOx/postcss-cssnext/issues/42))
220264

221265
# 0.4.2 - 2014-11-02
222266

@@ -225,17 +269,17 @@ v3.0.0 have by default `{inline: true, sourceContent: true}`
225269
- Added: echo a warning when using a non root custom properties
226270
([#13](https://github.com/postcss/postcss-custom-properties/issues/13))
227271
- Added: cssnext can return a postcss instance of no string given
228-
([#3](https://github.com/cssnext/cssnext/issues/3))
272+
([#3](https://github.com/MoOx/postcss-cssnext/issues/3))
229273

230274
# 0.4.1 - 2014-11-01
231275

232276
- Added: gray() support
233-
([#44](https://github.com/cssnext/cssnext/issues/44))
277+
([#44](https://github.com/MoOx/postcss-cssnext/issues/44))
234278

235279
# 0.4.0 - 2014-10-23
236280

237281
- Changed: color feature has been exploded to multiples features
238-
([#40](https://github.com/cssnext/cssnext/issues/40)).
282+
([#40](https://github.com/MoOx/postcss-cssnext/issues/40)).
239283

240284
Before
241285

@@ -271,7 +315,7 @@ var output = cssnext(input, {
271315

272316
- Changed: cssnext options are not passed to all plugins anymore. You know need
273317
to specify feature options by passing object to `features` properties
274-
([#39](https://github.com/cssnext/cssnext/issues/39)).
318+
([#39](https://github.com/MoOx/postcss-cssnext/issues/39)).
275319

276320
Before
277321

@@ -306,7 +350,7 @@ This change have been made to avoid collision between options
306350
# 0.3.1 - 2014-08-27
307351

308352
- Fixed: nested custom properties usages
309-
([#25](https://github.com/cssnext/cssnext/issues/25))
353+
([#25](https://github.com/MoOx/postcss-cssnext/issues/25))
310354

311355
# 0.3.0 - 2014-08-26
312356

@@ -316,7 +360,7 @@ This change have been made to avoid collision between options
316360
# 0.2.3 - 2014-08-26
317361

318362
- Fixed: support empty files
319-
([#24](https://github.com/cssnext/cssnext/issues/24))
363+
([#24](https://github.com/MoOx/postcss-cssnext/issues/24))
320364

321365
# 0.2.2 - 2014-08-22
322366

README.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,32 @@
1-
# cssnext
1+
# postcss-cssnext
22

3-
[![NPM version](http://img.shields.io/npm/v/cssnext.svg?style=flat)](https://www.npmjs.org/package/cssnext)
4-
[![Travis Build Status](https://img.shields.io/travis/cssnext/cssnext.svg?label=unix%20build)](https://travis-ci.org/cssnext/cssnext)
5-
[![AppVeyor Build Status](https://img.shields.io/appveyor/ci/MoOx/cssnext.svg?label=windows%20build)](https://ci.appveyor.com/project/MoOx/cssnext)
6-
[![Join the chat at https://gitter.im/cssnext/cssnext](https://img.shields.io/badge/gitter%20-join%20chat%20%E2%9E%9E-1dce73.svg)](https://gitter.im/cssnext/cssnext)
3+
[![NPM version](http://img.shields.io/npm/v/postcss-cssnext.svg?style=flat)](https://www.npmjs.org/package/postcss-cssnext)
4+
[![Travis Build Status](https://img.shields.io/travis/MoOx/postcss-cssnext.svg?label=unix%20build)](https://travis-ci.org/cssnext/postcss-cssnext)
5+
[![AppVeyor Build Status](https://img.shields.io/appveyor/ci/MoOx/postcss-cssnext.svg?label=windows%20build)](https://ci.appveyor.com/project/MoOx/postcss-cssnext)
6+
[![Join the chat at https://gitter.im/MoOx/postcss-cssnext](https://img.shields.io/badge/gitter%20-join%20chat%20%E2%9E%9E-1dce73.svg)](https://gitter.im/MoOx/postcss-cssnext)
77

88

9-
> Use tomorrow's CSS syntax, today.
9+
> Use tomorrows CSS syntax, today.
1010
11-
cssnext is a CSS transpiler that allows you to use the latest CSS syntax today.
12-
It transforms CSS specs into more compatible CSS so you don’t need to wait for browser support.
11+
PostCSS-cssnext is a PostCSS plugin that helps you to use the latest CSS syntax today.
12+
It transforms CSS specs into more compatible CSS so you don’t need to wait for browser support.
13+
14+
---
1315

1416
## Check out [cssnext website](http://cssnext.io/)
1517

1618
- [Features](http://cssnext.io/features/)
1719
- [Setup](http://cssnext.io/setup/)
1820
- [Usage](http://cssnext.io/usage/)
1921
- [Playground](http://cssnext.io/playground/)
22+
- [Migration to postcss-cssnext](http://cssnext.io/postcss/)
2023

2124
For questions and support please visit the
22-
[gitter room](https://gitter.im/cssnext/cssnext).
25+
[gitter room](https://gitter.im/MoOx/postcss-cssnext).
2326

2427
---
2528

26-
_The [issue tracker](https://github.com/cssnext/cssnext/issues) is exclusively for bug reports and feature requests._
29+
_The [issue tracker](https://github.com/MoOx/postcss-cssnext/issues) is exclusively for bug reports and feature requests._
2730

2831
---
2932

appveyor.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ environment:
99
version: "{build}"
1010
build: off
1111
deploy: off
12+
matrix:
13+
fast_finish: true
1214

1315
install:
1416
- ps: Install-Product node $env:nodejs_version
@@ -17,5 +19,4 @@ install:
1719
test_script:
1820
- node --version
1921
- npm --version
20-
- ps: "npm test # PowerShell"
21-
- cmd: "npm test"
22+
- npm test

docs/content/features.md

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: cssnext features
2+
title: postcss-cssnext features
33
subtitle: Discover the future of CSS
44

55
backgroundModifier: darkRoad
@@ -337,30 +337,13 @@ body {
337337
_Note that according to your [browser scope](#nodejs-options) some might be not
338338
transpiled to avoid extra useless output._
339339

340-
## Bonus features
341-
342-
_The features below are considered as bonus since it's totally not
343-
related to CSS specs._
344-
345-
### `@import`
346-
347-
`@import` inline local files and modules - `node_modules` or `web_modules`
348-
([](https://github.com/postcss/postcss-import)) to output a bundled CSS file.
349-
`url()` referenced are also rebased.
350-
351-
### minification
352-
353-
minification/compression is available ([](https://github.com/ben-eb/cssnano))
354-
if you want to compress the output for production.
355-
356-
357340
## @todo
358341

359342
Any omissions of the CSS specifications (even in draft) that are subject to be
360343
handled by cssnext are not intentional.
361-
You can take a look at the [list of features that are waiting to be implemented](https://github.com/cssnext/cssnext/issues?q=is%3Aopen+is%3Aissue+label%3A%22type%3A+feature+request%22).
344+
You can take a look at the [list of features that are waiting to be implemented](https://github.com/MoOx/postcss-cssnext/issues?q=is%3Aopen+is%3Aissue+label%3A%22type%3A+feature+request%22).
362345
Feel free to work on a feature ready to be added, or
363-
[open a new issue](https://github.com/cssnext/cssnext/issues/new)
346+
[open a new issue](https://github.com/MoOx/postcss-cssnext/issues/new)
364347
if you find something that should be handled.
365348
Keep in mind that, as of right now, this project is intended to support new CSS
366349
*syntax* only.

0 commit comments

Comments
 (0)