joshmarinacci / ElectronIDE

New web based Arduino IDE
BSD 3-Clause "New" or "Revised" License
246 stars 50 forks source link

boards? #3

Closed anthonywebb closed 10 years ago

anthonywebb commented 10 years ago

Hey Josh,

Wondering if it would be better to make the other project an actual NPM module that you could just include? This seems it would make the process of getting going much more straight forward.

BTW, in boards.js it looks like there is a directory there hard coded to your machine.

Thanks for you work on this, it is looking pretty good so far, excited to help.

joshmarinacci commented 10 years ago

I made the metadata project be just plain JSON because I want it to be usable for other projects. Someone might want to make a different non-Node IDE, or an Arduino search engine, or something entirely different. JSON keeps our options open, while still being easy to edit and consume in Electron.

Yes the import script has a hard coded path, but it's really only used once for that initial import of the boards.txt file. It's not run anymore.

anthonywebb commented 10 years ago

I guess I dont understand, you can simply include a package.json in the arduino-data project and turn it into an npm module. From there when you build it will pull down the data into node_modules so you can use it in ElectronIDE. Should not proclude anyone using the JSON from the arduino-data project in their own stuff.

joshmarinacci commented 10 years ago

Ah, true. Can you file a feature request for that?

anthonywebb commented 10 years ago

I added it here: https://github.com/joshmarinacci/arduino-data/issues/1