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

Update to PostCSS@6 #2561

Merged
merged 7 commits into from
Jun 30, 2017
Merged

Update to PostCSS@6 #2561

merged 7 commits into from
Jun 30, 2017

Conversation

ntwb
Copy link
Member

@ntwb ntwb commented May 8, 2017

Updates postcss to the latest 6.x version

Supersedes #2548

@ntwb ntwb added this to the 8.0.0 milestone May 8, 2017
@ntwb
Copy link
Member Author

ntwb commented May 8, 2017

Related PRs, I didn't create new PRs for these as they'll need rebasing once this PR is merged, theoretically they all also require and are dependant on this PR also:

#2555 postcss-scss
#2553 sugarss
#2554 postcss-safe-parser
#2588 autoprefixer

@jeddy3
Copy link
Member

jeddy3 commented May 9, 2017

I suggest we just update everything related to postcss@6 in this PR for the sake of simplicity.

@hudochenkov
Copy link
Member

I think we could delay this until 8.0. This way we won't have much merge conflicts with master. And by that time other dependencies (and PostCSS) fix their bugs, if any :)

@jeddy3
Copy link
Member

jeddy3 commented May 20, 2017

I think we could delay this until 8.0

Yep, it's pointing to the v8 branch. We can merge master into v8 before working on this PR.

@jeddy3 jeddy3 changed the title chore(package): update postcss to version 6.0.0 (v8 branch) Update to PostCSS@6 Jun 28, 2017
@jeddy3
Copy link
Member

jeddy3 commented Jun 28, 2017

I've rebased this on v8.

@jeddy3
Copy link
Member

jeddy3 commented Jun 28, 2017

Summary:

Test Suites: 5 failed, 267 passed, 272 total
Tests:       26 failed, 13042 passed, 13068 total
Snapshots:   7 passed, 7 total
Time:        108.692s
Ran all test suites.

26 failed, 13042 passed is a pretty decent ratio :)

The failing suites are:

  • lib/rules/no-extra-semicolons/__tests__/index.js
  • lib/rules/block-closing-brace-newline-after/__tests__/index.js
  • lib/__tests__/ignoreDisables.test.js
  • lib/__tests__/defaultSeverity.test.js
  • lib/__tests__/postcssPlugin.test.js

I suggest we tackle them individually as PRs into this branch v8-postcss-six. Drop a note in here if you've about to start on one.

I'm going to give lib/rules/block-closing-brace-newline-after/__tests__/index.js a go now.

@jeddy3
Copy link
Member

jeddy3 commented Jun 28, 2017

Going to look at lib/__tests__/postcssPlugin.test.js

* Account for PostCSS@6's support for at-apply

* Remove only
@jeddy3
Copy link
Member

jeddy3 commented Jun 28, 2017

Going to look at lib/__tests__/defaultSeverity.test.js and commit directly here.

@alexander-akait
Copy link
Member

seems npm@5 output incorrect node_modules where postcss v5 on top

@alexander-akait
Copy link
Member

alexander-akait commented Jun 29, 2017

Need resolve too davidtheclark/postcss-resolve-nested-selector#3

@alexander-akait
Copy link
Member

@ai seems bug in postcss
Input:

:root { --foo: { color: red };; }

Output for --foo:

Rule {
      raws: 
       { before: ' ',
         between: ' ',
         semicolon: false,
         after: ' ',
         ownSemicolon: ';' },
      type: 'rule',
      nodes: 
       [ Declaration {
           raws: [Object],
           type: 'decl',
           parent: [Circular],
           source: [Object],
           prop: 'color',
           value: 'red' } ],
      parent: 
       Rule {
         raws: { before: '', between: ' ', semicolon: false, after: ' ' },
         type: 'rule',
         nodes: [ [Circular] ],
         parent: 
          Root {
            raws: [Object],
            type: 'root',
            nodes: [Object],
            source: [Object],
            lastEach: 4,
            indexes: [Object] },
         source: { start: [Object], input: [Object], end: [Object] },
         selector: ':root',
         lastEach: 4,
         indexes: { '4': 0 } },
      source: 
       { start: { line: 1, column: 9 },
         input: 
          Input {
            css: ':root { --foo: { color: red };; }',
            id: '<input css 1>' },
         end: { line: 1, column: 29 } },
      selector: '--foo:',
      lastEach: 3,
      indexes: {} }

No information about extra semicolon, stringify this node output: --foo: { color: red }; (without extra semicolon). Also no information in docs about ownSemicolon: ';'

@ai
Copy link
Member

ai commented Jun 29, 2017

@alexander-akait
Copy link
Member

alexander-akait commented Jun 29, 2017

@ai in my example we lose extra semicolon in Rule, no information about this 😞

@ai
Copy link
Member

ai commented Jun 29, 2017

@evilebottnawi what is expected output?

@alexander-akait
Copy link
Member

alexander-akait commented Jun 29, 2017

@ai To tell the truth I do not know, but try :root { --foo: { color: red };; } parse and stringify (output :root { --foo: { color: red }; } without extra semicolon)

@ai
Copy link
Member

ai commented Jun 29, 2017

Yeap, it is a bug. Please create issue, I will try to fix it tomorrow.

@alexander-akait
Copy link
Member

wip

@alexander-akait
Copy link
Member

@jeddy3 seems bug in npm@5 😞

@alexander-akait
Copy link
Member

alexander-akait commented Jun 30, 2017

restarting and clearing caches do not solve problem 😞 maybe before npm@5 become stable add allow failure to travis

@jeddy3
Copy link
Member

jeddy3 commented Jun 30, 2017

Green after purging all the caches.

@evilebottnawi Thanks for following up on the no-extra-semicolon rule. Thanks @ai for addressing the custom property set semicolon so quickly!

This looks good to me.

Copy link
Member

@hudochenkov hudochenkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job, everyone!

@jeddy3 jeddy3 merged commit 012e86f into v8 Jun 30, 2017
@jeddy3 jeddy3 deleted the v8-postcss-six branch June 30, 2017 20:49
@jeddy3
Copy link
Member

jeddy3 commented Jun 30, 2017

8.0.0 changelog:

  • Changed: compatibility with postcss from @5 to @6 (#2561).

jeddy3 added a commit that referenced this pull request Jul 14, 2017
* Add stylelint semantic versioning policy

* Fix whitespace and empty lines

* Add changelog entry

* Remove stylelint-config=standard reference

* Tweak major release optional options verbiage

* Update changelog

* Props ESLint

* Fix false negatives with ignore: ["descendant"] in selector-no-type (#2200)

* Update CHANGELOG.md

* Fix handling of shared-line comments (#2262)

* Fix handling of shared-line comments

Introduces a number of utilities and adjusts the following rules:
at-rule-empty-line-before, custom-property-empty-line-before,
declaration-empty-line-before, rule-nested-empty-line-before,
rule-non-nested-empty-line-before

Closes #2237; closes #2239; closes #2240.

* Fixes based on feedback

* Use getPreviousNonSharedLineCommentNode more

* Use more new helpers in comment-empty-line-before

* Add ignore: ["child"] option to selector-no-type (#2217)

* Add ignore: ["child"] option to selector-no-type

* Correct logic for ignore: ["child"] option

* Include line and column in reject tests with multiple type selectors

* Update CHANGELOG.md

* Report every selector resolved selector in selector-max-compound-selectors (#2350)

* Update CHANGELOG.md

* Add new shorthand data (#2354)

* Add new shorthand data

* Add mask shorthand

* Use defined list of properties in shorthand-property-no-redundant-values

* Improve declaration-block-no-shorthand-property-overrides speed a little bit

* Check prefixed properties agains prefixed properties in declaration-block-no-shorthand-property-overrides

* Improve declaration-block-no-redundant-longhand-properties speed a little bit

* Ignore prefixes case in declaration-block-no-shorthand-property-overrides

* Check prefixed properties agains prefixed properties in declaration-block-no-redundant-longhand-properties

* Add `grid-gap` to shorthand-property-no-redundant-values

* Explain properties set for shorthand-property-no-redundant-values

* Revert unnecessary changes

* Add “mask” to declaration-block-no-redundant-longhand-properties readme

* Update CHANGELOG.md

* Update changelog

* Remove deprecated rules (#2422)

* Remove deprecated rules

* Include `rule-empty-line-before` in system tests

* *-empty-line-before rules consider line as empty if it contains whitespace only (#2440)

* Update CHANGELOG.md

* Remove deprecated options (#2433)

* Update CHANGELOG.md

* report-needless-disables now exits with non-zero code (#2341)

* Update CHANGELOG.md

* Remove leftover files (#2442)

* Remove leftover file

* One more

* And one more

* Ignoring improvements (#2464)

* WIP ignoring improvements

* Remove standaloneIgnored property of result

* Add disableDefaultIgnores

* Add documentation tweaks

* Add parseStylelintIgnore tests

* Non-absolutized ignore file paths

* Restire gitignore syntax

* Remove parseStylelintIgnore

* Update CHANGELOG.md

* Check all linear-gradients in a value list (#2496)

Closes #2481

* Update CHANGELOG.md

* Update CHANGELOG.md

* Respect line case for `ignorePattern` (#2683)

Closes #2647

* Update CHANGELOG.md

* Update decls

* Fix remark warning

* Update snapshots

* Add missing message to reject test

* Fix tests for *-empty-line-before rules (#2688)

* Fix tests for *-empty-line-before rules

* Test addition and tweak

* Update to PostCSS@6 (#2561)

* Update to PostCSS@6

* Fix PostCSS@6 closing-brace test (#2689)

* Account for PostCSS@6's support for at-apply

* Remove only

* Fix postcssPlugin tests (#2690)

* Fix defaultSeverity.test.js test

* Fix ignoreDisables test

* Check ownSemiColon

* Fixed: remove hacks related to custom property set.

* Remove deprecated rules (#2693)

Closes #2521

* Update CHANGELOG.md

* Update CHANGELOG.md

* Add VISION.md (#2704)

* Add releases.md (#2705)

* Add releases.md

Closes #2700

* Add dry-release step

* Use HTTPS for links

* Change ignore options for selector-max-type (#2701)

* Fix false negatives with ignore descendant

* Add ignore child

Closes #2699

* Update CHANGELOG.md

* Update README.md to account for VISION.md (#2727)

* Update README.md to account for VISION.md

* Fix lint warnings in CHANGELOG

* Update postcss-less to 1.0 (#2702)

* Update postcss-less to 1.0.2

* Update isStandardSyntaxRule for postcss-less 1.0

* Pass custom postcss stringifier when creating result

* Correct no-extra-semicolons Less test position

* Ignore Less mixins in no-extra-semicolons

* Update postcss-less to 1.1.0

* Correct no-extra-semicolons Less test position again

* Utilize isStandardSyntaxRule when checking for Less rules in no-extra-semicolons

* Case sensitive white/blacklists and ignore* options (#2709)

Closes #2660

* Update CHANGELOG.md

* docs: Add "New Release Issue Template" to releases.md (#2728)

* Exit with non-zero code on postcss warnings (#2713)

* Enhancement: exit with non zero code on postcss warnings.

* Account for parseErrors in stringformatqer

* Guard against no parseErrors

* Update CHANGELOG.md

* Refactor: simplify ignore logic. (#2732)

* Update changelog

* Bump 8.0.0 changes to top

* Correctly place changelog items

* Add introduction

* Add codefence for website

* Use relative path

* Include VISION in package for website

* Add link to VISION doc for website

* Changelog amends

* Update releases.md (#2738)

* Update eslint and config (#2737)

* Order requires

* Use eqeqeq eslint rule

* Update eslint

* Disable no-useless-escape just for this repo

* Enable no-useless-escape rule

* Use tilde

* Fix enable comment

* Add reject test for unescaped regex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants