Giter Club home page Giter Club logo

babel-preset-firecloud's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

andycmaj

babel-preset-firecloud's Issues

investigate using @babel/[email protected]

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 (<anonymous>)
    at /Users/andrei/git/firecloud/schemata-firecloud/node_modules/json-schema-to-typescript/dist/src/cli.js:70:33
    at step (/Users/andrei/git/firecloud/schemata-firecloud/node_modules/json-schema-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/json-schema-to-typescript/dist/src/cli.js:5:58)

consistent exports/underscore-private

regardless of the state of #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

export-all conflicts with istanbul

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.

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.