gulp React Nexus Style
gulp wrapper for react-nexus-style
.
Its takes components source files which export component definitions, and gives CSS files.
Usage
In a component file (eg. MyComponent.jsx
):
var MyComponent = React;moduleexports = MyComponent;
In your gulpfile.js
:
var style = ;var react = ; gulp;
You can combine this with any JS preprocessor or CSS postprocessor, for example if you use 6to5
for JS, and autoprefixer-core
and csswring
for CSS (via postcss
):
gulp;
In the real world, you probably want to only run your JS source transformation once per build and cache the results, but its up to you to design your gulpfile accordingly :)