source: imaps-frontend/node_modules/nano-css/preset/react.js@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 1.3 KB
RevLine 
[d565449]1'use strict';
2
3var h = require('react').createElement;
4var create = require('../index').create;
5var addonCache = require('../addon/cache').addon;
6var addonStable = require('../addon/stable').addon;
7var addonNesting = require('../addon/nesting').addon;
8var addonAtoms = require('../addon/atoms').addon;
9var addonSnake = require('../addon/snake').addon;
10var addonKeyframes = require('../addon/keyframes').addon;
11var addonRule = require('../addon/rule').addon;
12var addonSheet = require('../addon/sheet').addon;
13var addonJsx = require('../addon/jsx').addon;
14var addonStyle = require('../addon/style').addon;
15var addonStyled = require('../addon/styled').addon;
16var addonDecorator = require('../addon/decorator').addon;
17var addonSourcemaps = require('../addon/sourcemaps').addon;
18
19exports.preset = function (config) {
20 config = config || {};
21 config.h = config.h || h;
22
23 var nano = create(config);
24
25 addonCache(nano);
26 addonStable(nano);
27 addonNesting(nano);
28 addonAtoms(nano);
29 addonSnake(nano);
30 addonKeyframes(nano);
31 addonRule(nano);
32 addonSheet(nano);
33 addonJsx(nano);
34 addonStyle(nano);
35 addonStyled(nano);
36 addonDecorator(nano);
37
38 if (process.env.NODE_ENV !== 'production') {
39 addonSourcemaps(nano);
40 }
41
42 return nano;
43};
Note: See TracBrowser for help on using the repository browser.