Coder Social home page Coder Social logo

firebase-react-app's People

Watchers

 avatar  avatar

firebase-react-app's Issues

add `engines` handling to functions transformation

Cloud functions finally provide a way to use node v8.
More in firebase docs under a section named "Set runtime options".
For this, you need to specify engines object in functions/package.json file like this.

"engines": {"node": "8"}

My suggestion is to check root's package.json for engines.node and use it to gen code.

  • make a new constant with engines
  • consume it in babel config for targeted node env.
  • consume it in functions/package.json generation

implement SSR in dev with HMR

From my previous background, I know that you can't do HMR from inside firebase emulator due to that fact that emulator kills and restarts process upon file change.
So I came out only with only one suitable solution:

Build web server made of express + WDM + WHM and some default render middleware with an option to use User's defined render middleware. User should declare a path to a file with default export of render function.

  • dev server
  • proxy for firebase cloud functions
  • SSR middleware
  • optional user-defined middleware
  • documentation

ports option

for both webpack-dev-server and firebase emulator add options to provide ports

files from __tests__ also transpiled

Need to expand the list of ignored globs.

  • __tests__
  • tests
  • spec
  • __spec__
  • __mocks__
  • __snapshots__

P.S. check if I have this functionality at all 😂

—no-server-source-maps

Add optional flag for build command which will allow transpile without sourcemaps and will exclude source-maps-support from functions package.json

handling static files

  • serve from dev server.
  • copy into dist dir during the dev process.
  • copy into dist dir during the build process.
  • unlink handling

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.