Giter VIP home page Giter VIP logo

babel-preset-y's Introduction

babel-preset-y Build Status

The Babel preset used within Y Software AB.

In your project's .babelrc.js

module.exports = {
  presets: [
    ['y', {
      // debug: false,
      // loose: false,
      // spec: false,
      // useBuiltIns: true,
      // 'preset|plugin': {...options}
    }]
  ]
};

Optionally, you can run node_modules/babel-preset-y/npm-install-peer-dependencies in order to install the required peer dependencies.

NOTE If you're using an earlier version than Babel 7.0, you can upgrade your .babelrc to be dynamic and use .babelrc.js by setting it to:

{
  "preset": [
    "./.babelrc.js"
  ]
}

See https://fatfisz.com/blog/using-babelrc-js-today .

Options

Pass debug, loose, spec or useBuiltIns to configure presets/plugins, as per the semantics defined by babel-preset-env.

Included presets/plugins can be

  • further configured by sending options to each of them
  • disabled by sending {"disabled": true} as options

Y plugins

babel-plugin-y-export-all (default: enabled)

README.babel-plugin-y-export-all.md

To disable in .babelrc.js:

module.exports = {
  presets: [
    ['y', {
      'babel-plugin-y-export-all': {
        disabled: true
      }
    }]
  ]
};

babel-plugin-y-src-arg (default: config-needed)

README.babel-plugin-y-src-arg.md

To disable in .babelrc.js:

module.exports = {
  presets: [
    ['y', {
      'babel-plugin-y-src-arg': {
        disabled: true
      }
    }]
  ]
};

Notable plugins (not included)

  1. https://github.com/kmagiera/babel-watch
  2. https://github.com/furstenheim/babel-plugin-meaningful-logs
  3. https://github.com/kentcdodds/babel-plugin-preval

Misc plugins

  1. https://github.com/codemix/flow-runtime/tree/master/packages/babel-plugin-flow-runtime
  2. https://github.com/vitalets/babel-plugin-runtyper
  3. https://github.com/loganfsmyth/babel-plugin-transform-builtin-extend
  4. https://github.com/miraks/babel-plugin-implicit-return
  5. https://github.com/andreineculau/babel-plugin-thin-arrows

License

UNLICENSE

babel-preset-y's People

Watchers

 avatar  avatar  avatar

babel-preset-y's Issues

consider auto-await

text dump at https://raw.githubusercontent.com/rokmoln/zz-issues/master/tobiipro/babel-preset-firecloud/12.txt
consider auto-await #12

Closed
[57]andreineculau opened this issue Feb 25, 2019 · 6 comments
Closed

[58]consider auto-await #12

[59]andreineculau opened this issue Feb 25, 2019 · 6 comments

Comments

[60]@andreineculau
Copy link (BUTTON) Quote reply
Member

[61]@andreineculau [62]andreineculau commented [63]Feb 25, 2019

see [64]https://github.com/ziolko/babel-plugin-auto-await
[65]@IanSavchenko

This comment has been minimized.

[66]Sign in to view
Copy link (BUTTON) Quote reply
Contributor

[67]@IanSavchenko [68]IanSavchenko commented [69]Feb 26, 2019

I'm against this. This plugin will make work a code which is not
supposed to work and will hide mistakes. Even with all the different
magic, we have in our babel plugins, our code should be a valid JS and
should behave as expected without them.
[70]@andreineculau

This comment has been minimized.

[71]Sign in to view
Copy link (BUTTON) Quote reply
Member Author

[72]@andreineculau [73]andreineculau commented [74]Feb 26, 2019

I'm not pushing for it, quite the contrary. But it is a nice find
regardless, and if JS would have this pattern built-in (not too mention
have the async stacktraces working!), it is my honest opinion that it
would have made for simpler comprehension and simpler code.

I see an important drawback alone in the fact that you cannot make use
of static type analysis.

PS: 1. code is valid JS (it simply removes the need for you to type
await before every function 2. should behave as expected without them.
= so you'd like to have it as a rule that this repo would not do
anything beyond upcoming JS syntax/behaviour, right? I'm down with that
200%
[75]@IanSavchenko

This comment has been minimized.

[76]Sign in to view
Copy link (BUTTON) Quote reply
Contributor

[77]@IanSavchenko [78]IanSavchenko commented [79]Feb 26, 2019

1. code is valid JS (it simply removes the need for you to type await
   before every function

The same code without awaits behaves completely differently. Ofc, it's
a valid JS, but it's not a working JS.

 so you'd like to have it as a rule that this repo would not do
 anything beyond upcoming JS syntax/behaviour, right? I'm down with
 that 200%

I'm ok with some experiments, but they have to be obvious, not implicit
or have a double meaning.
(THUMBS_UP react) 👍 1
[80]@tobiiasl

This comment has been minimized.

[81]Sign in to view
Copy link (BUTTON) Quote reply

[82]@tobiiasl [83]tobiiasl commented [84]Mar 14, 2019 •

edited

I would prefer an eslint rule that warns me when there is no await for
an async function. Perhaps babel can do that? At least for
simple/obvious cases.

Relevant: "New rule: enforce async/await consistency"
[85]eslint/eslint#9787
[86]@tobiiasl

This comment has been minimized.

[87]Sign in to view
Copy link (BUTTON) Quote reply

[88]@tobiiasl [89]tobiiasl commented [90]Mar 14, 2019

Perhaps this tslint rule can help out:
[91]https://palantir.github.io/tslint/rules/no-floating-promises/
[92]@tobiiasl

This comment has been minimized.

[93]Sign in to view
Copy link (BUTTON) Quote reply

[94]@tobiiasl [95]tobiiasl commented [96]Mar 15, 2019

Perhaps this is a good course of actions to avoid that devs forget to
add await before calls to functions returning promises.
1. Code style agreement that all functions returning a promise should
be prefixed with async_.
2. Implement eslint rule that enforces that all async functions are
prefixed with async_.
3. Implement eslint rule that all functions that are await:ed for are
prefixed with async.
4. Start using TypeScript which makes function return type obvious.
5. Implement eslint rule that enforces functions returning a promise
to be prefixed with async_.
6. Enforce the no-floating-promises tslint rule.

[97]@andreineculau [98]andreineculau closed this [99]May 14, 2019

use __filename in src-arg plugin. fix #10

text dump at https://raw.githubusercontent.com/rokmoln/zz-issues/master/tobiipro/babel-preset-firecloud/11.txt
use __filename in src-arg plugin. fix #10 #11

f/anu-filename-src

master f/anu-filename-src
@andreineculau
[45]andreineculau opened this pull request
about 1 year ago

Labels
[46]enhancement
* Fixes:
* Breaking change: [ ]
__________________________________________________________________

[47]andreineculau added a commit [48]about 1 year ago
[49]@andreineculau [50]use __filename in src-arg plugin. [51]fix
[52]#10

andreineculau added the [53]enhancement label [54]about 1 year ago

andreineculau self-assigned this [55]about 1 year ago

andreineculau requested a review from IanSavchenko [56]about 1 year ago

andreineculau referenced this pull request from commit [57]bae52ee
[58]about 1 year ago

andreineculau merged commit bae52ee into master [59]about 1 year ago

andreineculau deleted the f/anu-filename-src branch [60]about 1 year
ago

set the same semver-range when installing peer deps.

text dump at https://raw.githubusercontent.com/rokmoln/zz-issues/master/tobiipro/babel-preset-firecloud/9.txt
set the same semver-range when installing peer deps. #9

f/anu-fix-semver-range

master f/anu-fix-semver-range
@andreineculau
[45]andreineculau opened this pull request
about 1 year ago

Labels
[46]bug

ref [47]tobiipro/eslint-config-firecloud#19

[48]andreineculau added a commit [49]about 1 year ago
[50]@andreineculau [51]set the same semver-range when installing peer
deps. ref [52]tobiipro/esl…

andreineculau added the [53]bug label [54]about 1 year ago

andreineculau self-assigned this [55]about 1 year ago

andreineculau requested a review from IanSavchenko [56]about 1 year ago

@IanSavchenko
[57]IanSavchenko reviewed [58]about 1 year ago
[59]npm-install-peer-dependencies
@@ -55,6 +55,10 @@ node -e "
continue
}

cat <<< "$(jq ".devDependencies += {"${NAME}": "${VSN}"}" <

package.json)" > package.json
cat <<< "$(npx json "this.devDependencies = this.devDependencies || {}"
< package.json)" > package.json
[60]@IanSavchenko [61]IanSavchenko • [62]about 1 year ago
Copy link

I can guess what it does, but you gonna need to explain to me how it
actually works 😄
[63]@andreineculau [64]andreineculau • [65]about 1 year ago
Copy link

here goes some "bashsplaining" 😂

if you simplify the command : cat <<< "$(foo < bar)" > bar, you have
* > bar - write stdout to file
* < bar - read stdin from file
* cat - is cat
* <<< "" - is a oneline heredoc into stdin

in plain english:
* output to stdout (via cat) the contents of the heredoc, and the
heredoc is actually a command, and then into bar
* the key is the heredoc, because it doesn't stream, thus you buffer
the command output, and only after you process the entire
package.json, you start writing back to package.json

❤️ 1
IanSavchenko reacted with heart emoji
[66]@IanSavchenko [67]IanSavchenko • [68]about 1 year ago
Copy link

Thank you a lot!
👍 1
andreineculau reacted with thumbs up emoji
[69]@andreineculau [70]andreineculau • [71]about 1 year ago
Copy link

actually json has an in-place flag. jq has a beard and knows better.
went for the less cryptic in-place version

[72]tobiipro/eslint-config-firecloud@12310e5

@IanSavchenko
[73]IanSavchenko approved these changes [74]about 1 year ago

andreineculau referenced this pull request from commit [75]6856ff4
[76]about 1 year ago

andreineculau merged commit 6856ff4 into master [77]about 1 year ago

andreineculau deleted the f/anu-fix-semver-range branch [78]about 1
year ago

support __filename in src-arg plugin

text dump at https://raw.githubusercontent.com/rokmoln/zz-issues/master/tobiipro/babel-preset-firecloud/10.txt
support __filename in src-arg plugin #10

Closed
[57]andreineculau opened this issue Feb 24, 2019 · 1 comment
Closed

[58]support __filename in src-arg plugin #10

[59]andreineculau opened this issue Feb 24, 2019 · 1 comment
Labels
[60]enhancement

Comments

[61]@andreineculau
Copy link (BUTTON) Quote reply
Member

[62]@andreineculau [63]andreineculau commented [64]Feb 24, 2019

__filename is available in node and webpack, and it would provide an
absolute path, instead of a scoped one
[65]@andreineculau [66]andreineculau added the [67]enhancement label
[68]Feb 24, 2019
[69]@andreineculau

This comment has been minimized.

[70]Sign in to view
Copy link (BUTTON) Quote reply
Member Author

[71]@andreineculau [72]andreineculau commented [73]Feb 24, 2019 •

edited

actually maybe it should switch to supporting only __filename, if it
exists - as it will be less confusing, and always right
[74]andreineculau added a commit that referenced this issue [75]Feb 24,
2019
[76]@andreineculau
[77]use __filename in src-arg plugin. [78]fix [79]#10
Verified
This commit was signed with a verified signature.
[80]andreineculau Andrei Neculau
GPG key ID: 79FA7EE650BF9A61 [81]Learn about signing commits
[82]ce50b6b
[83]andreineculau added a commit that referenced this issue [84]Feb 25,
2019
[85]@andreineculau
[86]use __filename in src-arg plugin. [87]fix [88]#10 (BUTTON) …
Verified
This commit was signed with a verified signature.
[89]andreineculau Andrei Neculau
GPG key ID: 79FA7EE650BF9A61 [90]Learn about signing commits
[91]5bc88ee

Conflicts:

plugins/babel-plugin-firecloud-src-arg.js

[92]@andreineculau [93]andreineculau closed this in [94]5071fa3 [95]Feb
25, 2019
[96]andreineculau added a commit that referenced this issue [97]Feb 25,
2019
[98]@andreineculau
[99]Merge pull request [100]#11 [101]from tobiipro/f/anu-filename-src
(BUTTON) …
Verified
This commit was created on GitHub.com and signed with a verified
signature using GitHub’s key.
GPG key ID: 4AEE18F83AFDEB23 [102]Learn about signing commits
[103]bae52ee
use __filename in src-arg plugin. fix [104]#10

[105]andreineculau added a commit that referenced this issue [106]Feb
25, 2019
[107]@andreineculau
[108]use __filename in src-arg plugin. [109]fix [110]#10 (BUTTON) …
Verified
This commit was signed with a verified signature.
[111]andreineculau Andrei Neculau
GPG key ID: 79FA7EE650BF9A61 [112]Learn about signing commits
[113]8d7b873

Conflicts:

plugins/babel-plugin-firecloud-src-arg.js

export-all conflicts with istanbul

text dump at https://raw.githubusercontent.com/rokmoln/zz-issues/master/tobiipro/babel-preset-firecloud/5.txt
export-all conflicts with istanbul #5

Closed
[57]IanSavchenko opened this issue Apr 7, 2018 · 6 comments
Closed

[58]export-all conflicts with istanbul #5

[59]IanSavchenko opened this issue Apr 7, 2018 · 6 comments
Assignees
[60]@IanSavchenko

Comments

[61]@IanSavchenko
Copy link (BUTTON) Quote reply
Contributor

[62]@IanSavchenko [63]IanSavchenko commented [64]Apr 7, 2018

Jest mocks do not allow accessing vars from the outer scope, which
exports is. Also, other weird errors occur, which I don't really want
to dig into. Already wasted too much time on this...

One of the most simple and clean solutions IMO is to use different envs
for dev and test in .babelrc. I managed to get it working pretty easy,
since jest sets NODE_ENV=test and this one is used by Babel to pick
config. We have this variable in our makefile, but it's not exported,
so gets redefined by jest. Another level of control is to use BABEL_ENV
variable, which has higher priority.

Let's discuss in the office how we want to tweak these vars to make it
work properly.
[65]@IanSavchenko [66]IanSavchenko self-assigned this [67]Apr 7, 2018
[68]@andreineculau

This comment has been minimized.

[69]Sign in to view
Copy link (BUTTON) Quote reply
Member

[70]@andreineculau [71]andreineculau commented [72]Apr 8, 2018

 Jest mocks do not allow accessing vars from the outer scope, which
 exports is.

please expand on the problem. give an example
[73]@andreineculau

This comment has been minimized.

[74]Sign in to view
Copy link (BUTTON) Quote reply
Member

[75]@andreineculau [76]andreineculau commented [77]Apr 8, 2018

I understand only partially what you're experiencing
* trigger
[78]https://github.com/facebook/jest/tree/6ee2a14b83393c9e3e3408beb
5c4848489f04cf6/packages/babel-plugin-jest-hoist
* and you presumably mock an entire module e.g. aws-sdk while
referencing a shared top-level function, which babel rewrites as
exports.
* which can be fixed by the documented doMock function
[79]facebook/jest#2567 (comment)

Footnotes:
1. The problem is not in the transpilation of the src folder but the
test folder, so adding a .babelrc inside the test disabling
export-all should work
2. I don't even know how come you trigger the export-all plugin inside
a jest test module (which should have no export statements)

[80]@IanSavchenko

This comment has been minimized.

[81]Sign in to view
Copy link (BUTTON) Quote reply
Contributor Author

[82]@IanSavchenko [83]IanSavchenko commented [84]Apr 9, 2018

Okay, so it went a bit deeper than I thought...
Will reply to your quotes first.

 trigger
 [85]https://github.com/facebook/jest/tree/6ee2a14b83393c9e3e3408beb5
 c4848489f04cf6/packages/babel-plugin-jest-hoist

 and you presumably mock an entire module e.g. aws-sdk while
 referencing a shared top-level function, which babel rewrites as
 exports.

 which can be fixed by the documented doMock function
 [86]facebook/jest#2567 (comment)

This can help sometimes when you don't need the hoisting mock behavior,
but sometimes you need hoisting (you import tested module and it
imports a mocked dependency). Cool thing is that jest allows to have
vars prefixed with mock to be referenced in mocks. This kind of implies
that you know what you are doing. So on our side in export-all we could
add an option for this like ignorePrefix.

 The problem is not in the transpilation of the src folder but the
 test folder, so adding a .babelrc inside the test disabling
 export-all should work

This works, but only for files in the test folder. Files in src folder
will be transpiled with root .babelrc. With suggested workaround above,
we could even keep one plugin config (root) across src and test.
(Spoiler: further, you will see why it's not enough...)

 I don't even know how come you trigger the export-all plugin inside
 a jest test module (which should have no export statements)

This exception we have only for linter rules, remember? For babel
plugin, I don't think we should do this, because you never know if the
state of AST tree and ExportDeclaration nodes in it are coming from the
source code or were generated by another plugin. Probably, it is
possible to know by analyzing original source code as string (you have
this info in plugin), but I think it's brittle.

BUT... I was wrong when stated the problem in the title. The original
problem (95% of all errors) is with coverage plugin Istanbul and that
it ruins the AST somehow. I checked the code and they don't appear to
be doing anything wrong, but somehow when the execution comes to our
plugin, the tree is not correct and this causes same error as here
[87]istanbuljs/babel-plugin-istanbul#116. Instead of fixing a bug here,
people actually suggest disabling faulting plugin in test env. Sad.

I really-really don't want to spend any more time on this problem, even
though it's so fun to dig in jest/babel/istanbul 😂 Let's sit in the
office when we are both in good health after sickness and decide
something.
[88]@andreineculau

This comment has been minimized.

[89]Sign in to view
Copy link (BUTTON) Quote reply
Member

[90]@andreineculau [91]andreineculau commented [92]Apr 9, 2018

🖖 i definitely don't want anyone to spend time like this

We settle it tmrw, even if we have a remote session
[93]@andreineculau

This comment has been minimized.

[94]Sign in to view
Copy link (BUTTON) Quote reply
Member

[95]@andreineculau [96]andreineculau commented [97]Apr 9, 2018

I have now read your comment in peace. Let's just say bye-bye to this
coverage crap, I say, but we talk tmrw.
[98]@andreineculau [99]andreineculau added this to To do in [100]Public
(Open Source) [101]May 20, 2019
[102]@andreineculau

This comment has been minimized.

[103]Sign in to view
Copy link (BUTTON) Quote reply
Member

[104]@andreineculau [105]andreineculau commented [106]Jul 12, 2019

closing as it's a istanbul coverage issue
[107]@andreineculau [108]andreineculau closed this [109]Jul 12, 2019
[110]Public (Open Source) automation moved this from To do to Done
[111]Jul 12, 2019
[112]@andreineculau [113]andreineculau changed the title [DEL:
export-all conflicts with jest mocks :DEL] [INS: export-all conflicts
with istanbul :INS] [114]Jul 12, 2019
[115]@ankitmth [116]ankitmth removed this from Done in [117]Public
(Open Source) [118]Feb 19, 2020

upgrade to babel7 + deps

text dump at https://raw.githubusercontent.com/rokmoln/zz-issues/master/tobiipro/babel-preset-firecloud/8.txt
upgrade to babel7 + deps #8

f/anu-babel7

master f/anu-babel7
@andreineculau
[45]andreineculau opened this pull request about 1 year ago • edited
about 1 year ago

Labels
[46]enhancement

[47]https://babeljs.io/docs/en/v7-migration

smth to consider: bump "minor" (our major) version when releasing this,
despite not seeing any backward incompat issues

TODO:
* [X] wait for [48]tobiipro/eslint-config-firecloud#15 to be release
* [X] update package.json reference for eslint-config-firecloud

andreineculau requested a review from IanSavchenko [49]about 1 year ago

andreineculau added the [50]enhancement label [51]about 1 year ago

@IanSavchenko
[52]IanSavchenko approved these changes [53]about 1 year ago

[54]andreineculau added some commits [55]about 1 year ago
[56]@andreineculau [57]babel7
[58]@andreineculau [59]remove backward compat

andreineculau force pushed changes to this branch [60]about 1 year ago

andreineculau referenced this pull request from commit [61]bb5e3ca
[62]about 1 year ago

andreineculau merged commit bb5e3ca into master [63]about 1 year ago

andreineculau referenced this pull request from commit [64]cc47491
[65]about 1 year ago

andreineculau deleted the f/anu-babel7 branch [66]about 1 year ago

lint babel-preset-firecloud with eslint-config-firecloud

text dump at https://raw.githubusercontent.com/rokmoln/zz-issues/master/tobiipro/babel-preset-firecloud/4.txt
lint babel-preset-firecloud with eslint-config-firecloud #4

f/anu-eslint-me

master f/anu-eslint-me
@andreineculau
[45]andreineculau opened this pull request
almost 2 years ago
No description given.

andreineculau requested a review from IanSavchenko [46]almost 2 years
ago

andreineculau force pushed changes to the base branch [47]almost 2
years ago

[48]andreineculau added some commits [49]almost 2 years ago
[50]@andreineculau [51]eslint me
[52]@andreineculau [53]lint

andreineculau force pushed changes to this branch [54]almost 2 years
ago

@IanSavchenko
[55]IanSavchenko approved these changes [56]almost 2 years ago

andreineculau referenced this pull request from commit [57]b19b84c
[58]almost 2 years ago

andreineculau merged commit b19b84c into master [59]almost 2 years ago

maybe enable babel-plugin-firecloud-src-arg by default

text dump at https://raw.githubusercontent.com/rokmoln/zz-issues/master/tobiipro/babel-preset-firecloud/1.txt
maybe enable babel-plugin-firecloud-src-arg by default #1

Closed
[57]andreineculau opened this issue Feb 23, 2018 · 0 comments
Closed

[58]maybe enable babel-plugin-firecloud-src-arg by default #1

[59]andreineculau opened this issue Feb 23, 2018 · 0 comments
Labels
[60]question

Comments

[61]@andreineculau
Copy link (BUTTON) Quote reply
Member

[62]@andreineculau [63]andreineculau commented [64]Feb 23, 2018

in its current form
[65]https://github.com/tobiipro/babel-preset-firecloud/blob/7d4447cd3bf
4aad4857c346a8c794f72be0485ca/plugins/babel-plugin-firecloud-src-arg.js
this plugin can work even when no srcFuns are given in the config.

One could argue though that you anyway have to provide srcFuns in order
to make this plugin useful, so it's not a big deal to provide also
disabled: false.
[66]@andreineculau [67]andreineculau added the [68]question label
[69]Feb 23, 2018
[70]@andreineculau [71]andreineculau closed this in [72]adfce97 [73]Mar
23, 2018

export-all should not mark `export` variables that have 'require' call in

text dump at https://raw.githubusercontent.com/rokmoln/zz-issues/master/tobiipro/babel-preset-firecloud/6.txt
export-all should not mark `export` variables that have 'require' call in
right-hand-value #6

Closed
[57]IanSavchenko opened this issue Oct 5, 2018 · 0 comments
Closed

[58]export-all should not mark export variables that have 'require' call in
right-hand-value #6

[59]IanSavchenko opened this issue Oct 5, 2018 · 0 comments
Assignees
[60]@IanSavchenko
Labels
[61]bug

Comments

[62]@IanSavchenko
Copy link (BUTTON) Quote reply
Contributor

[63]@IanSavchenko [64]IanSavchenko commented [65]Oct 5, 2018

Case like let _ = require('lodash-firecloud');
Otherwise, we can get in the end exports._.merge(...
[66]@IanSavchenko [67]IanSavchenko added the [68]bug label [69]Oct 5,
2018
[70]@IanSavchenko [71]IanSavchenko self-assigned this [72]Oct 5, 2018
[73]@IanSavchenko [74]IanSavchenko closed this in [75]e06cee3 [76]Oct
8, 2018

investigate using @babel/[email protected]

text dump at https://raw.githubusercontent.com/rokmoln/zz-issues/master/tobiipro/babel-preset-firecloud/14.txt
investigate using @babel/[email protected] #14

Closed
[57]andreineculau opened this issue Mar 20, 2019 · 1 comment
Closed

[58]investigate using @babel/[email protected] #14

[59]andreineculau opened this issue Mar 20, 2019 · 1 comment
Labels
[60]enhancement

Comments

[61]@andreineculau
Copy link (BUTTON) Quote reply
Member

[62]@andreineculau [63]andreineculau commented [64]Mar 20, 2019

test by building schemata-firecloud, which with @babel/[email protected]
fails with
09:32:23 [INFO] Generating dts/atex-beacon-in-view-event-v1-json.d.ts...
error SyntaxError: Unexpected token W in JSON at position 1
at JSON.parse ()
at /Users/andrei/git/firecloud/schemata-firecloud/node_modules/json-schema-t
o-typescript/dist/src/cli.js:70:33
at step (/Users/andrei/git/firecloud/schemata-firecloud/node_modules/json-sc
hema-to-typescript/dist/src/cli.js:33:23)
at Object.next (/Users/andrei/git/firecloud/schemata-firecloud/node_modules/
json-schema-to-typescript/dist/src/cli.js:14:53)
at fulfilled (/Users/andrei/git/firecloud/schemata-firecloud/node_modules/js
on-schema-to-typescript/dist/src/cli.js:5:58)

[65]@andreineculau [66]andreineculau added the [67]enhancement label
[68]Mar 20, 2019
[69]@andreineculau

This comment has been minimized.

[70]Sign in to view
Copy link (BUTTON) Quote reply
Member Author

[71]@andreineculau [72]andreineculau commented [73]May 14, 2019

upstream issue: [74]babel/babel#9977
[75]@andreineculau [76]andreineculau closed this in [77]015e752 [78]May
14, 2019
[79]andreineculau added a commit that referenced this issue [80]May 14,
2019
[81]@andreineculau
[82]fixup! specify corejs version to silence warning. [83]fixes [84]#14
Verified
This commit was signed with a verified signature.
[85]andreineculau Andrei Neculau
GPG key ID: 79FA7EE650BF9A61 [86]Learn about signing commits
[87]305b1a8

upgrade to babel7 + deps

text dump at https://raw.githubusercontent.com/rokmoln/zz-issues/master/tobiipro/babel-preset-firecloud/7.txt
upgrade to babel7 + deps #7

f/anu-babel7

master f/anu-babel7
@andreineculau
[45]andreineculau opened this pull request over 1 year ago • edited
over 1 year ago

Labels
[46]enhancement

[47]https://babeljs.io/docs/en/v7-migration

smth to consider: bump "minor" (our major) version when releasing this,
despite not seeing any backward incompat issues

TODO:
* [ ] wait for [48]tobiipro/eslint-config-firecloud#15 to be release
* [ ] update package.json reference for eslint-config-firecloud

andreineculau requested a review from IanSavchenko [49]over 1 year ago

andreineculau added the [50]enhancement label [51]over 1 year ago

andreineculau force pushed changes to this branch [52]over 1 year ago

[53]andreineculau added a commit [54]over 1 year ago
[55]@andreineculau [56]babel7

andreineculau force pushed changes to this branch [57]over 1 year ago

andreineculau removed their request for review from IanSavchenko
[58]about 1 year ago

Copy link
@andreineculau
[59]andreineculau
commented [60]about 1 year ago

needs more work

andreineculau closed this pull request [61]about 1 year ago

add await-trace plugin for async stacktraces

text dump at https://raw.githubusercontent.com/rokmoln/zz-issues/master/tobiipro/babel-preset-firecloud/13.txt
add await-trace plugin for async stacktraces #13

f/anu-await-trace

master f/anu-await-trace
@andreineculau
[45]andreineculau opened this pull request about 1 year ago • edited
about 1 year ago

Labels
[46]enhancement

Linked issues
[47]note: native async code has short stacktraces
* Fixes: [48]tobiipro/aws-util-firecloud#23
* Breaking change: [ ]
__________________________________________________________________

andreineculau added the [49]enhancement label [50]about 1 year ago

andreineculau self-assigned this [51]about 1 year ago

andreineculau requested a review from IanSavchenko [52]about 1 year ago

Copy link
@andreineculau
[53]andreineculau
commented [54]about 1 year ago

before:
await ctx.log.trackTime({ _babelSrc: { file: typeof __filename === "undefined"
? "src/lambda/index.js" : __filename, babelFile: "src/lambda/index.js", line: 2
8, column: 9 } },
'Merging env ctx...',
async function () {
await (0, _envCtx.merge)({ e, ctx, pkg });
});

after
try {

await ctx.log.trackTime({ _babelSrc: { file: typeof __filename === "undefine

d" ? "src/lambda/index.js" : __filename, babelFile: "src/lambda/index.js", line:
28, column: 9 } }, { _babelSrc: { file: typeof __filename === "undefined" ? >
'Merging env ctx...',
async function () {try {
await (0, _envCtx.merge)({ e, ctx, pkg });} catch (_awaitTraceErr3) {let
newErr = Error();_awaitTraceErr3.stack += newErr.stack;throw _awaitTraceErr3;}
});} catch (_awaitTraceErr2) {let newErr = Error();_awaitTraceErr2.stack +=
newErr.stack;throw _awaitTraceErr2;}

Copy link
@IanSavchenko
[55]IanSavchenko
commented [56]about 1 year ago

No tests in the original code?

I guess we can try it out in our code that is running in node.

andreineculau force pushed changes to this branch [57]about 1 year ago

andreineculau force pushed changes to this branch [58]about 1 year ago

andreineculau force pushed changes to this branch [59]about 1 year ago

andreineculau modified this pull request [60]10 months ago

andreineculau force pushed changes to this branch [61]10 months ago

andreineculau force pushed changes to this branch [62]10 months ago

[63]andreineculau added a commit [64]10 months ago
[65]@andreineculau [66]add await-trace plugin for async stacktraces

andreineculau force pushed changes to this branch [67]10 months ago

Copy link
@andreineculau
[68]andreineculau
commented [69]10 months ago

since nodejs 12 is not around the corner, let's see what this gives us

andreineculau referenced this pull request from commit [70]07c4f95
[71]10 months ago

andreineculau merged commit 07c4f95 into master [72]10 months ago

andreineculau deleted the f/anu-await-trace branch [73]10 months ago

consistent exports/underscore-private

text dump at https://raw.githubusercontent.com/rokmoln/zz-issues/master/tobiipro/babel-preset-firecloud/3.txt
consistent exports/underscore-private #3

Closed
[57]andreineculau opened this issue Mar 15, 2018 · 1 comment
Closed

[58]consistent exports/underscore-private #3

[59]andreineculau opened this issue Mar 15, 2018 · 1 comment
Labels
[60]enhancement

Comments

[61]@andreineculau
Copy link (BUTTON) Quote reply
Member

[62]@andreineculau [63]andreineculau commented [64]Mar 15, 2018

regardless of the state of [65]#2 , we should be consistent with
* exporting or not non-api vars in a module
* marking non-api vars with an underscore prefix or not

PS: this is a TODO for all the repos we now have on github, not a real
issue for this repo
[66]@andreineculau [67]andreineculau added the [68]enhancement label
[69]Mar 15, 2018
[70]@andreineculau

This comment has been minimized.

[71]Sign in to view
Copy link (BUTTON) Quote reply
Member Author

[72]@andreineculau [73]andreineculau commented [74]Mar 23, 2018 •

edited

tracked in [75]tobiipro/eslint-config-firecloud#6
[76]@andreineculau [77]andreineculau closed this [78]Mar 23, 2018

babel-plugin-firecloud-export-all and sourcemaps don't play well in chrome

text dump at https://raw.githubusercontent.com/rokmoln/zz-issues/master/tobiipro/babel-preset-firecloud/2.txt
babel-plugin-firecloud-export-all and sourcemaps don't play well in chrome #2

Closed
[57]andreineculau opened this issue Feb 23, 2018 · 1 comment
Closed

[58]babel-plugin-firecloud-export-all and sourcemaps don't play well in
chrome #2

[59]andreineculau opened this issue Feb 23, 2018 · 1 comment
Labels
[60]bug [61]help wanted [62]invalid

Comments

[63]@andreineculau
Copy link (BUTTON) Quote reply
Member

[64]@andreineculau [65]andreineculau commented [66]Feb 23, 2018

 NOTE A negative side-effect. While debugging, Chrome won't be able
 to get the value of an exported variable, because the source map
 will reference exports.something, while you still hover something.

[67]@andreineculau [68]andreineculau added [69]bug [70]help wanted
labels [71]Feb 23, 2018
[72]@andreineculau [73]andreineculau mentioned this issue [74]Mar 15,
2018
[75]consistent exports/underscore-private #3
Closed
[76]andreineculau added a commit that referenced this issue [77]Mar 23,
2018
[78]@andreineculau
[79]enable export-all. known negative side-effect tracked in [80]#2
Unverified
This user has not uploaded their public key yet.
GPG key ID: 3570C6DE977687AA [81]Learn about signing commits
[82]549d0df
[83]@andreineculau [84]andreineculau mentioned this issue [85]Mar 25,
2018
[86]rule: check not-exported variables are prefixed with _ #6
Closed
[87]@andreineculau [88]andreineculau added this to To do in [89]Public
(Open Source) [90]May 20, 2019
[91]@andreineculau [92]andreineculau changed the title [DEL: fix
babel-plugin-firecloud-export-all :DEL] [INS:
babel-plugin-firecloud-export-all and sourcemaps don't play well in
chrome :INS] [93]Jul 12, 2019
[94]@andreineculau [95]andreineculau added the [96]invalid label
[97]Jul 12, 2019
[98]@andreineculau

This comment has been minimized.

[99]Sign in to view
Copy link (BUTTON) Quote reply
Member Author

[100]@andreineculau [101]andreineculau commented [102]Jul 12, 2019

dunno if I'm doing smth wrong, but I cannot reproduce this now. marking
as invalid and closing
[103]@andreineculau [104]andreineculau closed this [105]Jul 12, 2019
[106]Public (Open Source) automation moved this from To do to Done
[107]Jul 12, 2019
[108]@ankitmth [109]ankitmth removed this from Done in [110]Public
(Open Source) [111]Feb 19, 2020

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.