Skip to content

Commit fd1aa67

Browse files
committed
v0.2.3 - Server functionality added
2 parents d1c0b86 + 80d40d2 commit fd1aa67

27 files changed

+1335
-35
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,16 @@ only need to call `adopt-dev-deps` again if you update
6565
### <a name="utilities">Utilities</a>
6666
- [**Global Styles**](docs/global-styles.md) &mdash; Global styles necessary for
6767
a generic application;
68+
- [**Isomorphy**](docs/isomorphy-utils.md) &mdash; Collection of helpers to deal
69+
with isomorphic aspects of the code;
70+
- [**Jest utils**](docs/jest-utils.md) &mdash; Collection of helpers to be used
71+
in Jest tests code;
6872
- [**SCSS Mixins**](docs/scss-mixins.md) &mdash; Collection of useful style
6973
mixins;
70-
- [**Jest utils**](docs/jest-utils.md) &mdash; Collection of helpers to be used
71-
in Jest tests code.
74+
- [**Server**](docs/server.md) &mdash; Easy creation and launch of web-server
75+
with standard configuration, that serves a ReactJS application with or without
76+
server-side rendering, supports development tools (Hop Module Reloading), and
77+
can be further configured for the needs of specific projects.
7278

7379
### <a name="development">Development</a>
7480
For convenient development you can link this package into your host package:

__tests__/__snapshots__/index.js.snap

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`Exports expected stuff 1`] = `
4+
Object {
5+
"Avatar": [Function],
6+
"Button": [Function],
7+
"Link": [Function],
8+
"NavLink": [Function],
9+
"ScalableRect": [Function],
10+
"utils": Object {
11+
"isomorphy": Object {
12+
"buildTimestamp": [Function],
13+
"isClientSide": [Function],
14+
"isDevBuild": [Function],
15+
"isProdBuild": [Function],
16+
"isServerSide": [Function],
17+
},
18+
},
19+
}
20+
`;

__tests__/index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
import * as exports from '../src';
22

33
test('Exports expected stuff', () => {
4-
expect(exports).toHaveProperty('Avatar');
5-
expect(exports).toHaveProperty('Button');
6-
expect(exports).toHaveProperty('Link');
7-
expect(exports).toHaveProperty('NavLink');
8-
expect(exports).toHaveProperty('ScalableRect');
4+
expect(exports).toMatchSnapshot();
95
});

__tests__/shared/Avatar.jsx renamed to __tests__/shared/components/Avatar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Avatar from 'components/Avatar';
22
import React from 'react';
3-
import { snapshot } from '../../jest-utils';
3+
import { snapshot } from 'utils/jest';
44

55
const testTheme = {
66
avatar: 'avatarClassName',
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)