Jump to content

Local dev work on Babylon


brochington
 Share

Recommended Posts

Hello! 

So I would like to check out the inner workings of Babylon a bit, hopefully learn a bunch about how everything under the hood is working. 

I've been able to setup a local dev environment, which includes getting the project to compile inside of VS Code. I am having a bit of a problem with using my local Babylon bundle in a sample project. I am a web developer by day, and am used to being able to `npm link` a library for local dev. However, a `package.json` file doesn't seem to be in the `/dist` directory after compilation. 

I basically have two questions: 

1) Is it possible to get the `npm link` method working? I'm not sure what exactly should be in this particular `package.json`

2) How are others doing local development of Babylon? 

Link to comment
Share on other sites

@Deltakosh

Thank you, it was extremely helpful, and is what I used to get the project compiling. The part about getting VS Code up and running was especially helpful.

I could see that my question about get "npm link" working might be confusing if a developer's workflow doesn't use it. How do you and other devs add features? My instinct, and the way I've done it in the past, is to to link the library into a test project. That way I can work in an almost TDD style and create what I think should work, then check in on the Library and update it accordingly. If I'm looking at this the wrong way, then please feel free to set me straight =)

Again, that tutorial was great, very happy it was written.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...