Git Product home page Git Product logo

Comments (5)

eric-burel avatar eric-burel commented on May 23, 2024

This repo is veeeeery experimental. It is limited to our first experiment with packages that contains both client and server code, which is a Meteor specificity that do not really exist in the Meteor ecosystem.

You should checkout https://github.com/VulcanJS/vulcan-npm, that's where the logic will live.

Basically you will have:

  • the NPM package, corresponding to current Vulcan packages
  • A Meteor starter (Vulcan Starter + bindings between NPM packages and Meteor + some existing packages that only makes sense for Meteor)
  • A Next js starter

The multi-env idea will probably dropped, as it's doomed to failure (text editor can't differentiate environment so that messes up autocompletion). I'll also refactor this whole repo to include a more complete setup.

from vulcan-next.

eric-burel avatar eric-burel commented on May 23, 2024

Ok Multi-env is actually included here. @comus did a test with a webpack setup that allows us to develop the NPM package directly here, in the Next startup, without needing to use npm link for a second NPM repo.

https://github.com/VulcanJS/vulcan-next-starter/tree/devel/packages/%40vulcan/multi-env-demo

Maybe the repo is just broken, sorry. I'll work on that in the months to come, I am currently gathering more knowledge on Next beforehand.

from vulcan-next.

eric-burel avatar eric-burel commented on May 23, 2024

Webpack should transform "@vulcan" into "./packages/vulcan"

from vulcan-next.

eric-burel avatar eric-burel commented on May 23, 2024

At this point what can help us the most is working on Vulcan itself, mostly on code quality eg bringing in more unit tests as it will allow me to check if I break stuffs when transitionning, or just fixing bugs.
Or simply getting hands on Next build system, because it is not that easy to setup with TypeScript. I'll try to open more precise issue in the future for potential contribs.

from vulcan-next.

eric-burel avatar eric-burel commented on May 23, 2024

Found back what the idea was. Basically we wanted to support isomorphism, like in Meteor. When importing meteor/foobar, meteor automatically translate that to meteor/foobar/client resp. server depending on the environment.

This approach is doomed to fail. I've tried to reproduce it in Next but dropped the idea.

from vulcan-next.

Related Issues (20)

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.