envato-archive / guide

Document your application with a living component library and styleguide
https://rubygems.org/gems/guide
MIT License
8 stars 3 forks source link

add command to run postcss cssnext #65

Closed fraserxu closed 8 years ago

fraserxu commented 8 years ago

This pull request use css-next to build css into app/assets/stylesheets/guide/application.css

Here's a list of plugin I have:

{
  "use": [
    "postcss-import",
    "postcss-url",
    "postcss-cssnext",
    "postcss-browser-reporter",
    "postcss-reporter"
  ]
}

Note that autoprefixer and cssnano(compressor) are part of postcss-cssnext so no need to include it here.

To start all the front-end build task, just run npm run watch, and npm run build to build all the assets for production.

jordanlewiz commented 8 years ago

👍 great stuff!! Could you also please add some detailed instructions to the wiki https://github.com/envato/guide/wiki/Developing thanks

fraserxu commented 8 years ago

Sure thing @jordanlewiz I'll add more documentation when the setup is done. Meanwhile, does @thefoxis has access to this repo? :D