defunctzombie / npm-css

Require css from npm
MIT License
128 stars 8 forks source link

Why? #2

Closed jeffscottward closed 11 years ago

jeffscottward commented 11 years ago

I don't mean to be harsh and applaud any effort to create tools for our community! but what is this for? A self teaching project?

Stylus is built for this already and can you use the old CSS syntax if you wish.

defunctzombie commented 11 years ago

Stylus is not built for this. Stylus does not read anything from installed node modules. Yes, stylus does including local css files, but it does not understand the "style" field in package.json (see https://github.com/shtylman/typeahead). If you want to use that widget, you just npm install it and can now use the js through regular requires and use the css just by requiring it.

Once I create a nice how-to guide about widgets and using them with your project things will be more clear. This is just one tool in a larger idea :)

Raynos commented 11 years ago

@jeffscottward node.js has require and npm install module and require("module")

css now has /* @require "module" */ which can be used along with npm install module to use npm to manage and version css files.

The focus of this is minimalism and doing only one thing.

jeffscottward commented 11 years ago

Oh wow! This is great! haha. Took me a second. I come from the design side and was considering it as standalone with codekit/live-reaload or stylus -watch.