main
Last change
on this file 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
|
Line | |
---|
1 | 'use strict';
|
---|
2 |
|
---|
3 | var h = require('react').createElement;
|
---|
4 | var create = require('../index').create;
|
---|
5 | var addonCache = require('../addon/cache').addon;
|
---|
6 | var addonStable = require('../addon/stable').addon;
|
---|
7 | var addonNesting = require('../addon/nesting').addon;
|
---|
8 | var addonAtoms = require('../addon/atoms').addon;
|
---|
9 | var addonSnake = require('../addon/snake').addon;
|
---|
10 | var addonKeyframes = require('../addon/keyframes').addon;
|
---|
11 | var addonRule = require('../addon/rule').addon;
|
---|
12 | var addonSheet = require('../addon/sheet').addon;
|
---|
13 | var addonJsx = require('../addon/jsx').addon;
|
---|
14 | var addonStyle = require('../addon/style').addon;
|
---|
15 | var addonStyled = require('../addon/styled').addon;
|
---|
16 | var addonDecorator = require('../addon/decorator').addon;
|
---|
17 | var addonSourcemaps = require('../addon/sourcemaps').addon;
|
---|
18 |
|
---|
19 | exports.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.