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

Ignore OS-specific files in other operating systems #6547

Conversation

bevacqua
Copy link
Contributor

Fixes #4460

.then(() => allPlatforms(platform => punlink(join(platform.buildDir, 'bin')))
.then(() => allPlatforms(platform => pncp(source, join(platform.buildDir, 'bin'))))
.then(() => allPlatforms(removeExtraneousShellScripts)))
.then(() => done)
Copy link
Contributor

Choose a reason for hiding this comment

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

Since you are doing all of these in sequence and you have a single error handler for everything, I recommend replacing the promise chaining and built in this.async behavior with native (transpiled) async/await.

@epixa epixa assigned bevacqua and unassigned epixa Mar 16, 2016
.catch(err => done(err));
run()
.then(() => done())
.catch(e => done(e));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let me know if there's a bluebird method for this (I couldn't find one). Not that used to converting callbacks into promises

@bevacqua bevacqua assigned epixa and unassigned bevacqua Mar 16, 2016
@epixa
Copy link
Contributor

epixa commented Mar 17, 2016

jenkins, test it

.then(() => done())
.catch(e => done(e));

async function run() {
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think you need to wrap this in a new function, you can just make the overall task function async:

grunt.registerTask('_build:osShellScripts', async function () {
  const done = this.async();
  // ...
  try {
    await allPlatforms(platform => punlink(join(platform.buildDir, 'bin')));
    await allPlatforms(platform => pncp(source, join(platform.buildDir, 'bin')));
    await allPlatforms(removeExtraneousShellScripts);
    done();
  } catch (e) {
    done(e);
  }
});

@epixa epixa assigned bevacqua and unassigned epixa Mar 17, 2016
@bevacqua
Copy link
Contributor Author

Not sure what this meant

jenkins, test it

@bevacqua bevacqua force-pushed the feature/release-distro-ignore-extraneous-files branch from 5c05699 to 79739ab Compare March 18, 2016 00:05
@bevacqua
Copy link
Contributor Author

There we go. Pulled all the functions outside, code looks pretty good now 🎉

I didn't know I could just make the exported function async, so thanks for pointing that out.

@epixa
Copy link
Contributor

epixa commented Mar 18, 2016

jenkins, test it triggers a new jenkins build.

@epixa
Copy link
Contributor

epixa commented Mar 18, 2016

And apparently it triggers a new build even when done inside a code block.

@epixa epixa assigned epixa and unassigned bevacqua Mar 18, 2016
@epixa
Copy link
Contributor

epixa commented Mar 18, 2016

This looks great! LGTM

@epixa epixa assigned bevacqua and unassigned epixa Mar 18, 2016
@bevacqua bevacqua assigned tsullivan and unassigned bevacqua Mar 18, 2016
@tsullivan tsullivan removed the review label Mar 18, 2016
@tsullivan
Copy link
Member

And apparently it triggers a new build even when done inside a code block.
LOL

LGTM!

@tsullivan tsullivan assigned bevacqua and unassigned tsullivan Mar 18, 2016
bevacqua added a commit that referenced this pull request Mar 18, 2016
…extraneous-files

Ignore OS-specific files in other operating systems
@bevacqua bevacqua merged commit 3491565 into elastic:master Mar 18, 2016
@bevacqua bevacqua deleted the feature/release-distro-ignore-extraneous-files branch March 18, 2016 16:35
@bevacqua bevacqua removed their assignment Mar 18, 2016
jbudz pushed a commit that referenced this pull request Jan 27, 2023
## Summary

`eui@73.0.0` ⏩ `eui@74.0.1`

---

## [`74.0.1`](https://github.com/elastic/eui/tree/v74.0.1)

**Bug fixes**

- Fixed `EuiModalHeaderTitle` type errors when passed `EuiTitle` props
([#6547](elastic/eui#6547))

## [`74.0.0`](https://github.com/elastic/eui/tree/v74.0.0)

- Added the `component` prop to `EuiModalHeaderTitle`, which allows
overriding the default `h1` tag
([#6530](elastic/eui#6530))
- Added the `titleProps` prop to `EuiConfirmModal`, which allows
overriding the default `h1` tag
([#6530](elastic/eui#6530))

**Bug fixes**

- Fixed slight row height jumping in `EuiBasicTable`s when actions with
tooltips became disabled
([#6538](elastic/eui#6538))

**Breaking changes**

- `EuiModalHeaderTitle` now **always** wraps its children in a `h1` tag
(previously attempted to conditionally detect whether its children were
raw strings or not). To change this tag type to, e.g. a more generic
`div`, use the new `component` prop.
([#6530](elastic/eui#6530))
- `EuiLink` now applies `rel="noreferrer"` to all domains, including
`elastic.co` ([#6535](elastic/eui#6535))
- `EuiBasicTable` no longer blocks mouse/keyboard interactions while
`loading` ([#6543](elastic/eui#6543))

**CSS-in-JS conversions**

- Converted `EuiBasicTable` to Emotion
([#6539](elastic/eui#6539))
- Added a new `RenderWithEuiTheme` render prop utility
([#6539](elastic/eui#6539))

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
kqualters-elastic pushed a commit to kqualters-elastic/kibana that referenced this pull request Feb 6, 2023
## Summary

`eui@73.0.0` ⏩ `eui@74.0.1`

---

## [`74.0.1`](https://github.com/elastic/eui/tree/v74.0.1)

**Bug fixes**

- Fixed `EuiModalHeaderTitle` type errors when passed `EuiTitle` props
([elastic#6547](elastic/eui#6547))

## [`74.0.0`](https://github.com/elastic/eui/tree/v74.0.0)

- Added the `component` prop to `EuiModalHeaderTitle`, which allows
overriding the default `h1` tag
([elastic#6530](elastic/eui#6530))
- Added the `titleProps` prop to `EuiConfirmModal`, which allows
overriding the default `h1` tag
([elastic#6530](elastic/eui#6530))

**Bug fixes**

- Fixed slight row height jumping in `EuiBasicTable`s when actions with
tooltips became disabled
([elastic#6538](elastic/eui#6538))

**Breaking changes**

- `EuiModalHeaderTitle` now **always** wraps its children in a `h1` tag
(previously attempted to conditionally detect whether its children were
raw strings or not). To change this tag type to, e.g. a more generic
`div`, use the new `component` prop.
([elastic#6530](elastic/eui#6530))
- `EuiLink` now applies `rel="noreferrer"` to all domains, including
`elastic.co` ([elastic#6535](elastic/eui#6535))
- `EuiBasicTable` no longer blocks mouse/keyboard interactions while
`loading` ([elastic#6543](elastic/eui#6543))

**CSS-in-JS conversions**

- Converted `EuiBasicTable` to Emotion
([elastic#6539](elastic/eui#6539))
- Added a new `RenderWithEuiTheme` render prop utility
([elastic#6539](elastic/eui#6539))

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
darnautov pushed a commit to darnautov/kibana that referenced this pull request Feb 7, 2023
## Summary

`eui@73.0.0` ⏩ `eui@74.0.1`

---

## [`74.0.1`](https://github.com/elastic/eui/tree/v74.0.1)

**Bug fixes**

- Fixed `EuiModalHeaderTitle` type errors when passed `EuiTitle` props
([elastic#6547](elastic/eui#6547))

## [`74.0.0`](https://github.com/elastic/eui/tree/v74.0.0)

- Added the `component` prop to `EuiModalHeaderTitle`, which allows
overriding the default `h1` tag
([elastic#6530](elastic/eui#6530))
- Added the `titleProps` prop to `EuiConfirmModal`, which allows
overriding the default `h1` tag
([elastic#6530](elastic/eui#6530))

**Bug fixes**

- Fixed slight row height jumping in `EuiBasicTable`s when actions with
tooltips became disabled
([elastic#6538](elastic/eui#6538))

**Breaking changes**

- `EuiModalHeaderTitle` now **always** wraps its children in a `h1` tag
(previously attempted to conditionally detect whether its children were
raw strings or not). To change this tag type to, e.g. a more generic
`div`, use the new `component` prop.
([elastic#6530](elastic/eui#6530))
- `EuiLink` now applies `rel="noreferrer"` to all domains, including
`elastic.co` ([elastic#6535](elastic/eui#6535))
- `EuiBasicTable` no longer blocks mouse/keyboard interactions while
`loading` ([elastic#6543](elastic/eui#6543))

**CSS-in-JS conversions**

- Converted `EuiBasicTable` to Emotion
([elastic#6539](elastic/eui#6539))
- Added a new `RenderWithEuiTheme` render prop utility
([elastic#6539](elastic/eui#6539))

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants