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

Fixes #983 - Make sure code is correctly formatted before publishing #984

Merged
merged 1 commit into from
Jan 24, 2019
Merged

Fixes #983 - Make sure code is correctly formatted before publishing #984

merged 1 commit into from
Jan 24, 2019

Conversation

wincent
Copy link
Contributor

@wincent wincent commented Jan 23, 2019

Add a "prepublishOnly" task that errors out if we try to publish code that isn't formatted with Prettier. Also runs the tests for obvious reasons.

Once we have linting back up and running we can fail even faster with respect to formatting and warn or error at lint-time.

This commit includes a fix for one incorrectly formatted file. There are also a couple of others that need re-formatting:

  • scripts/build/gulp/tasks/build.js
  • scripts/build/gulp/tasks/css.js

but I am leaving those so as to avoid an unnecessary conflict with #982.

Add a "prepublishOnly" task that errors out if we try to publish code
that isn't formatted with Prettier. Also runs the tests for obvious
reasons.

Once we have linting back up and running we can fail even faster with
respect to formatting and warn or error at lint-time.

This commit includes a fix for one incorrectly formatted file. There are
also a couple of others that need re-formatting:

- scripts/build/gulp/tasks/build.js
- scripts/build/gulp/tasks/css.js

but I am leaving those so as to avoid an unnecessary conflict with #982.
@wincent wincent requested a review from julien January 23, 2019 16:10
@wincent wincent merged commit f836538 into liferay:2.x-develop Jan 24, 2019
@wincent wincent deleted the prepublish branch January 24, 2019 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants