Skip to content

Next version todo/changelog #240

Open

Description

@TrySound

Here's changes I made last time and TODO for near future

ICSS

  • document * importer
  • implement * importer

postcss-icss-import

  • deduplicate icss rules

postcss-icss-url

  • deduplicate icss rules

keyframes

  • always local if plugin is enabled
  • animation name is replaced with existing local keyframes or leaved untouched
  • add warnings when keyframes identifier already declared by different plugin
  • disallow all reserved names without checking count of usage (animation: infinite infinite). Was made to improve performance and reduce implementation complexity. Should we revert this?
  • pass contract messages
  • add generic-names as default generateScopedName
  • remove local/global block behavior (:global { @keyframes name {} })

local-by-default -> selectors

  • split keyframes in separate package
  • rename to postcss-icss-selectors
  • process scoping
  • remove pure mode
  • remove selectors consistency checking
  • add generic-names as default generateScopedName
  • pass contract messages
  • implement scoping contract with warnings
  • implement value contract
  • implement composes contract
  • disallow .class:local.class in favor of .class:local(.class) or .class :local .class
  • remove local/global block behavior (:global { .selector {} })
  • deprecate postcss-modules-local-by-default

scope -> composes

  • rename to postcss-icss-compose
  • combine with postcss-modules-extract-imports
  • pass contract messages
  • remove scoping functionality
  • implement scoping contract
  • warn on using composes in media queries
  • remove url scoping
  • deprecate postcss-modules-scope
  • deprecate postcss-modules-extract-imports

values

  • rename to postcss-icss-values
  • disallow values names started with dot and hash. (.5s, #hash)
  • this can introduce ability to replace local classes and ids correctly (cross modules will be possible for theming).
  • warn about redeclared value
  • pass contract messages
  • implement scoping contract
  • deprecate postcss-modules-values
  • remove external values path replacement (@colors: './path'; @value one from colors;)

lint

  • add pure mode checking
  • add selectors consistency checking
  • add global identifiers checking (animation-name, composes)

/cc @michael-ciniawsky @evilebottnawi @sullenor @Outpunk @sokra

Activity

  1. frenzzy commented on Jun 27, 2017

    @frenzzy

    remove local/global block behavior (:global { .selector {} })

    but why? what the alternative?

  2. TrySound commented on Jun 27, 2017

    @TrySound
    MemberAuthor

    It can't be resolved with postcss plugins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions