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

chore: release alpha #389

Merged
31 commits merged into from
May 5, 2021
Merged

chore: release alpha #389

31 commits merged into from
May 5, 2021

Conversation

ghost
Copy link

@ghost ghost commented May 4, 2021

@HendrikThePendric mentioned here: dhis2/ui#580 that there are changes on cli-style@alpha that fix the editor integration for eslint. @varl and I were looking at the alpha branch a while back (see here: dhis2/scheduler-app#174). I've taken a look, and from my perspective the only things that came up there that we hadn't addressed yet are:

The workflow change doesn't have to be addressed in cli-style, and the other two aren't critical in my opinion. I think we could merge alpha to master as far as I'm concerned (all critical things I could find during testing are fixed). What do you think @varl?

varl and others added 30 commits December 16, 2020 12:52
Husky will be removed to allow easier implementation for:

1. Opt-in Git hooks
2. Yarn 2 support

BREAKING CHANGE: Husky has been removed from cli-style. You will need to
remove hooks that reference husky.sh in .git/hooks.
# [8.0.0-alpha.1](v7.2.3...v8.0.0-alpha.1) (2020-12-16)

### Code Refactoring

* remove husky ([752b944](752b944))

### BREAKING CHANGES

* Husky has been removed from cli-style. You will need to
remove hooks that reference husky.sh in .git/hooks.
It is possible to install all available git hooks with:

    d2-style install git-hooks/all

Or specific hooks with e.g.

    d2-style install git-hooks/commit-msg
# [8.0.0-alpha.2](v8.0.0-alpha.1...v8.0.0-alpha.2) (2020-12-16)

### Features

* opt-in git hooks ([#333](#333)) ([a3bc415](a3bc415))
# [8.0.0-alpha.3](v8.0.0-alpha.2...v8.0.0-alpha.3) (2020-12-16)

### Features

* **eslint:** add import order rule ([#334](#334)) ([c7b9991](c7b9991))
This removes the `--quiet` flag from the ESLint invocation, and fixes
the broken output where ESLint complains about us trying to lint
dot-files and folders by un-ignoring their built-in ignore filters.

We agree with ignoring node_modules in terms of linting however, so that
is left in place.
# [8.0.0-alpha.4](v8.0.0-alpha.3...v8.0.0-alpha.4) (2021-03-15)

### Features

* commit check can read from a custom file ([366be0c](366be0c))
* show eslint warnings ([#368](#368)) ([abe4668](abe4668))
"d2-style" no longer tries to obfuscate what tools are used under the hood, and
leans into being a friendly helper to nudge developers to comply with the dhis2
code style and guidelines.

New features:

-   "d2-style <check/apply>" can now run all configured linters and formatters
in a single command, making it easier to use.

-   "d2-style <add/remove>" is used to add configuration files for individual
tools, e.g. eslint, prettier, etc.

-   "d2-style add" supports templates for e.g. react using:

		d2-style add eslint react

-   "d2-style install" reads the project configuration from .d2/style.config.js
and sets up the project in accordance to that.

BREAKING CHANGE: The verb (check/apply) is now moved to the top-level.  E.g.
"d2-style js check" becomes "d2-style check js". This is to allow all checkers
to run with a single command: "d2-style check"

BREAKING CHANGE: "d2-style install" is no longer used to set up linters.  As of
husky@5 the tool is vastly simplified and much faster. Hooks can be installed
manually with "d2-style install", but is also run as a "post-install" script
that we control for consistency. Configuration is added to the project with the
"d2-style add" command.
# [8.0.0-alpha.5](v8.0.0-alpha.4...v8.0.0-alpha.5) (2021-04-07)

### Features

* new and improved d2-style ([#378](#378)) ([f8279e5](f8279e5))

### BREAKING CHANGES

* The verb (check/apply) is now moved to the top-level.  E.g.
"d2-style js check" becomes "d2-style check js". This is to allow all checkers
to run with a single command: "d2-style check"
* "d2-style install" is no longer used to set up linters.  As of
husky@5 the tool is vastly simplified and much faster. Hooks can be installed
manually with "d2-style install", but is also run as a "post-install" script
that we control for consistency. Configuration is added to the project with the
"d2-style add" command.
# [8.0.0-alpha.6](v8.0.0-alpha.5...v8.0.0-alpha.6) (2021-04-07)

### Bug Fixes

* match files from project root ([b77ef35](b77ef35))
# [8.0.0-alpha.7](v8.0.0-alpha.6...v8.0.0-alpha.7) (2021-04-07)

### Features

* delete deprecated configuration files ([c961647](c961647))
This introduces ls-lint to check the file system for consistent naming
of files and folders.

Installed using:

    yarn d2-style add ls-lint

Can be run individually:

    yarn d2-style check fs

If it is configured (i.e. .ls-lint.yml exists), then it will run on:

    yarn d2-style check
# [8.0.0-alpha.8](v8.0.0-alpha.7...v8.0.0-alpha.8) (2021-04-08)

### Features

* lint file system for consistent names ([#379](#379)) ([2bfb5ef](2bfb5ef))
# [8.0.0-alpha.9](v8.0.0-alpha.8...v8.0.0-alpha.9) (2021-04-21)

### Bug Fixes

* allow eslint to print colors ([#384](#384)) ([c95a184](c95a184))
* fix: wrong hooks where installed by default

* fix: resolve d2style config from project over package
# [8.0.0-alpha.10](v8.0.0-alpha.9...v8.0.0-alpha.10) (2021-04-22)

### Bug Fixes

* ignore .d2 directory ([#386](#386)) ([6a473f2](6a473f2))
* wrong hooks where installed by default ([#385](#385)) ([3ac82f4](3ac82f4))
@varl
Copy link
Contributor

varl commented May 5, 2021

Disable pre push jest tests by default

This is done, I believe. We only add the commit-msg and pre-commit hooks by default.

@varl
Copy link
Contributor

varl commented May 5, 2021

Investigate ls-lint conflict between kebabcase and pointcase for test files and similarly named files

There are a few workarounds, but we can deal with those in a separate PR as ls-lint needs to be added manually to a project anyway.

@varl varl changed the title Merge alpha to master merge: alpha to master May 5, 2021
@varl varl changed the title merge: alpha to master chore: release alpha May 5, 2021
@ghost
Copy link
Author

ghost commented May 5, 2021

Disable pre push jest tests by default

This is done, I believe. We only add the commit-msg and pre-commit hooks by default.

Ah yeah you're right. 👍

@ghost
Copy link
Author

ghost commented May 5, 2021

There are a few workarounds, but we can deal with those in a separate PR as ls-lint needs to be added manually to a project anyway.

I checked it out thinking it would be a quick fix, but I couldn't really find a decent way to quickly address it. I'll create an issue for it: https://jira.dhis2.org/browse/CLI-41

@varl varl marked this pull request as ready for review May 5, 2021 10:23
@ghost ghost merged commit 717380b into master May 5, 2021
@ghost ghost deleted the alpha branch May 5, 2021 12:03
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 8.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants