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

Add support for browser bundle #4796

Closed
wants to merge 68 commits into from
Closed

Add support for browser bundle #4796

wants to merge 68 commits into from

Commits on Jun 3, 2020

  1. Configuration menu
    Copy the full SHA
    a4a7149 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3b9c8bf View commit details
    Browse the repository at this point in the history
  3. Add bundle script

    m-allanson committed Jun 3, 2020
    Configuration menu
    Copy the full SHA
    4643539 View commit details
    Browse the repository at this point in the history
  4. Try bundling syntaxes

    m-allanson committed Jun 3, 2020
    Configuration menu
    Copy the full SHA
    a70460e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f0c81e2 View commit details
    Browse the repository at this point in the history
  6. Add temporary html demo

    m-allanson committed Jun 3, 2020
    Configuration menu
    Copy the full SHA
    4eb613d View commit details
    Browse the repository at this point in the history
  7. Fix error when re-selecting 'css' syntax

    Shortcut to avoid error attempting to load 'null.js'
    m-allanson committed Jun 3, 2020
    Configuration menu
    Copy the full SHA
    1f92941 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ddb0efd View commit details
    Browse the repository at this point in the history
  9. Move browser entrypoint

    m-allanson committed Jun 3, 2020
    Configuration menu
    Copy the full SHA
    7315c27 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    1a20046 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    cda1c6b View commit details
    Browse the repository at this point in the history
  12. Update bundle scripts

    m-allanson committed Jun 3, 2020
    Configuration menu
    Copy the full SHA
    0c3eb8e View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    037b039 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    761e7fa View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    bb3acc6 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    69a5d6e View commit details
    Browse the repository at this point in the history
  17. Fix up some types

    m-allanson committed Jun 3, 2020
    Configuration menu
    Copy the full SHA
    4ddad17 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    349644c View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    35ca844 View commit details
    Browse the repository at this point in the history
  20. Update formatter developer docs

    - Reference new type alias
    - Remove inaccurate information
    m-allanson committed Jun 3, 2020
    Configuration menu
    Copy the full SHA
    59951c0 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    558b8dd View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    38e9e82 View commit details
    Browse the repository at this point in the history
  23. Re-enable debug calls

    m-allanson committed Jun 3, 2020
    Configuration menu
    Copy the full SHA
    a891ae8 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    49e3c94 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    d0082b1 View commit details
    Browse the repository at this point in the history
  26. Re-enable passing second arg returnValue to formatter functions

    Note that none of the built in formatters use this value, but the tests + docs refer to it.
    m-allanson committed Jun 3, 2020
    Configuration menu
    Copy the full SHA
    5ede16c View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    9abb987 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    a335bba View commit details
    Browse the repository at this point in the history
  29. WIP: Load syntaxes at runtime without changing existing customSyntax API

    The runtime and syntax bundles are now output as ES modules. This allows use of dynamic import `import()`.  Which means this bundle can (partially) match the existing stylelint API where the `customSyntax` option accepts a "path to a JS file exporting a PostCSS-compatible syntax".
    
    Ref: https://stylelint.io/user-guide/usage/options#customsyntax
    m-allanson committed Jun 3, 2020
    Configuration menu
    Copy the full SHA
    6785443 View commit details
    Browse the repository at this point in the history
  30. Add temporary html file

    m-allanson committed Jun 3, 2020
    Configuration menu
    Copy the full SHA
    d5ffe67 View commit details
    Browse the repository at this point in the history
  31. Overload the customSyntax option to accept a syntax object

    This means syntax loading can be handled externally from stylelint. This requires overloading the customSyntax option to also accept an object, but should make things a bit more flexible. It also avoids the weirdness of having an (ignored) ESM `import()` in a CommonJS module.
    m-allanson committed Jun 3, 2020
    Configuration menu
    Copy the full SHA
    7e51049 View commit details
    Browse the repository at this point in the history
  32. Use named export instead of default

    This matches other parts of stylelint more closely, and leaves the option of exporting additional methods in future.
    m-allanson committed Jun 3, 2020
    Configuration menu
    Copy the full SHA
    5ffc2b8 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    78806e0 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    f6f7119 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    3ce8581 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    a360430 View commit details
    Browse the repository at this point in the history
  37. Overload customSyntax option to additionally accept a syntax object

    This enables non-standard syntaxes to be passed into the browser bundle.
    m-allanson committed Jun 3, 2020
    Configuration menu
    Copy the full SHA
    312952c View commit details
    Browse the repository at this point in the history
  38. Hackety hack

    Manually replace `require.cache` calls with an empty object in the dist/ bundles.
    m-allanson committed Jun 3, 2020
    Configuration menu
    Copy the full SHA
    e015fb8 View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    0960ea4 View commit details
    Browse the repository at this point in the history
  40. Fix failing syntax test

    m-allanson committed Jun 3, 2020
    Configuration menu
    Copy the full SHA
    3b63096 View commit details
    Browse the repository at this point in the history
  41. Add TODO

    m-allanson committed Jun 3, 2020
    Configuration menu
    Copy the full SHA
    c50bb02 View commit details
    Browse the repository at this point in the history
  42. Tidy up dist dir

    m-allanson committed Jun 3, 2020
    Configuration menu
    Copy the full SHA
    a21904c View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    1b3ec1e View commit details
    Browse the repository at this point in the history
  44. Remove unused deps

    m-allanson committed Jun 3, 2020
    Configuration menu
    Copy the full SHA
    3a6dab9 View commit details
    Browse the repository at this point in the history
  45. Minify bundles

    m-allanson committed Jun 3, 2020
    Configuration menu
    Copy the full SHA
    0f51d72 View commit details
    Browse the repository at this point in the history
  46. Fix lint error

    m-allanson committed Jun 3, 2020
    Configuration menu
    Copy the full SHA
    58a8034 View commit details
    Browse the repository at this point in the history
  47. Configuration menu
    Copy the full SHA
    d0194e5 View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2020

  1. Update package-lock.json

    Update package-lock.json
    m-allanson committed Jun 10, 2020
    Configuration menu
    Copy the full SHA
    92904dc View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' into browser-bundle

    # By Mike Allanson (6) and others
    # Via GitHub
    * master:
      Bump got from 11.2.0 to 11.3.0 (#4825)
      Export an object from the CSS-in-JS syntax (#4824)
      Add type `Formatter` for formatter functions (#4823)
      Update CHANGELOG.md
      Fix false positives for namespaced variables in property-no-unknown (#4803)
      Update CHANGELOG.md
      Fix TypeError for inline comments and autofix for sugarss in max-empty-lines (#4821)
      Create new 'lintPostcssResult' module (#4819)
      13.6.0
      Update deps
      Prepare 13.6.0
      Update CHANGELOG.md
    m-allanson committed Jun 10, 2020
    Configuration menu
    Copy the full SHA
    ae22a5c View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2020

  1. Configuration menu
    Copy the full SHA
    c8dd0a9 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2020

  1. Merge branch 'master' into browser-bundle

    # By jeddy3 (4) and others
    # Via GitHub
    * master:
      Create new 'prepareReturnValue' module (#4832)
      13.6.1
      Scope eslint disable
      Prepare 13.6.1
      Update deps
      Update CHANGELOG.md
      Fix false positives for idents within ::part pseudo-elements in selector-type-no-unknown (#4828)
      Bump np from 6.2.3 to 6.2.4 (#4830)
    m-allanson committed Jun 20, 2020
    Configuration menu
    Copy the full SHA
    30cc66f View commit details
    Browse the repository at this point in the history
  2. Delete temp test files

    m-allanson committed Jun 20, 2020
    Configuration menu
    Copy the full SHA
    f375429 View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2020

  1. Merge branch 'master' into browser-bundle

    # By Mike Allanson (2) and others
    * master:
      Fix changelog formatting
      A small refactor (#4837)
      Update CHANGELOG.md
      Add ignoreContextFunctionalPseudoClasses to selector-max-id (#4835)
    m-allanson committed Jun 22, 2020
    Configuration menu
    Copy the full SHA
    48ccd71 View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2020

  1. Configuration menu
    Copy the full SHA
    2051637 View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2020

  1. Use Parcel API instead of the CLI

    This means no config is needed in `package.json`
    m-allanson committed Jul 1, 2020
    Configuration menu
    Copy the full SHA
    8a74537 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2ad2b5e View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2020

  1. A bit more tidying

    m-allanson committed Jul 2, 2020
    Configuration menu
    Copy the full SHA
    642bd32 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2020

  1. Merge branch 'master' into browser-bundle

    # By Richard Hallows (4) and others
    # Via GitHub
    * master:
      Create codeql analysis workflow (#4850)
      Update CHANGELOG.md
      Add support for descriptions in stylelint command comments (#4848)
      Update CHANGELOG.md
      Add *-allowed-list/*-disallowed-list/*-required-list names for *-whitelist/*-blacklist/*-requirelist rules (#4845)
      Update CHANGELOG.md
      Add syntax object acceptance to customSyntax option (#4839)
      Bump typescript from 3.9.5 to 3.9.6 (#4853)
      Add ignoreComments[] to comment-empty-line-before (#4841)
      Bump autoprefixer from 9.8.0 to 9.8.2 (#4838)
    m-allanson committed Jul 8, 2020
    Configuration menu
    Copy the full SHA
    6d9ff23 View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2020

  1. eslint was not happy

    m-allanson committed Jul 15, 2020
    Configuration menu
    Copy the full SHA
    32a9a8b View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2020

  1. Merge branch 'master' into browser-bundle

    * master:
      Update CHANGELOG.md
      Fix false negatives for where, is, nth-child and nth-last-child in selector-max-* (except selector-max-type) (#4842)
      Bump @types/lodash from 4.14.155 to 4.14.157 (#4869)
      Remove `postcss-reporter` package (#4858)
      Bump lodash from 4.17.15 to 4.17.19 (#4864)
      Replace 3rd-party type definitions (#4857)
    m-allanson committed Jul 23, 2020
    Configuration menu
    Copy the full SHA
    56ff536 View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2020

  1. Merge branch 'master' into browser-bundle

    * master: (34 commits)
      Update CHANGELOG.md
      Fix double-slash disable comments when followed by another comment (#4913)
      Update CHANGELOG.md (#4916)
      13.7.0
      Prepare 13.7.0
      Prepare changelog
      Update dependencies
      Update CHANGELOG.md
      Deprecate *-blacklist/*-requirelist/*-whitelist (#4892)
      Fix some path / glob problems (#4867)
      Update CHANGELOG.md
      Add a reportDescriptionlessDisables flag (#4907)
      Fix CHANGELOG.md format via Prettier (#4910)
      Fix callbacks in tests (#4903)
      Update CHANGELOG.md
      Fix false positives for trailing combinator in selector-combinator-space-after (#4878)
      Add coc-stylelint (#4901)
      Update CHANGELOG.md
      Add support for *.cjs config files (#4905)
      Add a reportDisables secondary option (#4897)
      ...
    m-allanson committed Sep 3, 2020
    Configuration menu
    Copy the full SHA
    5599148 View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2020

  1. Clearer naming

    m-allanson committed Nov 5, 2020
    Configuration menu
    Copy the full SHA
    1d7a889 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' into browser-bundle

    * master: (46 commits)
      Update CHANGELOG.md
      Add ignoreAtRules to property-no-unknown (#4965)
      Bump eslint from 7.11.0 to 7.12.1 (#5017)
      Bump typescript from 4.0.3 to 4.0.5 (#5016)
      Bump lint-staged from 10.4.0 to 10.5.1 (#5014)
      Bump remark-cli from 8.0.1 to 9.0.0 (#4996)
      Bump jest-circus from 26.5.3 to 26.6.1 (#5009)
      Bump got from 11.7.0 to 11.8.0 (#5007)
      Bump jest from 26.5.3 to 26.6.1 (#5008)
      Refactor formatter tests (#4988)
      Fix `isStandardSyntaxDeclaration.test.js` that use callbacks (#4972)
      Update CHANGELOG.md
      Add "comment-pattern" rule (#4962)
      Update CHANGELOG.md
      Show the pattern in "*-pattern" rule messages (#4975)
      Enable ESLint `no-shadow` and add disable comments (#4986)
      Report disables in the same manner as lints (#4973)
      Update dependencies (#4982)
      Fix some tests that use callbacks (#4970)
      Use own vendor utility instead of PostCSS (#4942) (#4963)
      ...
    m-allanson committed Nov 5, 2020
    Configuration menu
    Copy the full SHA
    d9f9b80 View commit details
    Browse the repository at this point in the history
  3. Updated deps

    m-allanson committed Nov 5, 2020
    Configuration menu
    Copy the full SHA
    b13be22 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0b549ae View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4aa06c4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b5900e9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    fdb24ea View commit details
    Browse the repository at this point in the history