Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Building a Personal Component Library

I am looking to build my own component library. I am doing this mostly for the experience in making modular component library

I want to use the following:

  • Polymerjs
  • NodeJS
  • CSS/Sass
  • Gulp
  • Bower

I'm having trouble trying to figure out how to architect this out. Anyone have any ideas? Open to any feedback.

Hi Mitul,

If you are using Polymer.js and Gulp, perhaps you may want to consider using Atom-Shell.

Atom-Shell is a desktop wrapper for your HTML/JS/CSS based applications, offering a seamless way to inject Node.js code right into your application. Technically it’s Chromium Embedded Framework with a bridge to Node.js. This means, as a very base-level example, I can do direct file-manipulation using Node’s β€œfs” module. It’s as easy as requiring the package in your front-end code and using it, just the same way as you would in your NodeJS application. You can mix browser based code with NodeJS code, and obviously it doesn’t stop at file manipulation. In theory, most everything you can do in Node can now be done in Atom-Shell. In this way, it’s similar to Node-Webkit.

For a little tutorial on how it works check out this page: http://www.benfarrell.com/2014/07/05/a-polymer-gulp-atom-shell-workflow/