Skip to content

Commit da3658a

Browse files
committed
Added nextjs demo
1 parent 08afb7e commit da3658a

15 files changed

+7216
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ npm-debug.log*
2121
yarn-debug.log*
2222
yarn-error.log*
2323
**/.rpt2_cache
24+
**/.next

demo/src/docs/VersionHistory.tsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,26 @@ export const VersionHistory = () => {
55
<>
66
<h2 id="changes">Version history</h2>
77

8+
<div>
9+
<h3>0.1.14</h3>
10+
<ul>
11+
<li>
12+
Migrated from Webpack to Rollup for building component library
13+
</li>
14+
<li>
15+
Created ES module bundles in /dist/es
16+
</li>
17+
<li>
18+
Fixed window undefined error when rendering spaces via Next.js
19+
</li>
20+
<li>
21+
Created server bundle (/dist/server) for using with Node.js server
22+
side apps when utilising SSR, e.g. Next.js and seperated
23+
styling from server bundle (/dist/server.css). This is currently
24+
experimental.
25+
</li>
26+
</ul>
27+
</div>
828
<div>
929
<h3>0.1.13</h3>
1030
<ul>

nextjsdemo/.babelrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const config = {
2+
presets: ['next/babel', '@zeit/next-typescript/babel']
3+
};
4+
5+
module.exports = config;

nextjsdemo/.eslintrc.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
module.exports = {
2+
extends: ['airbnb'],
3+
env: {
4+
browser: true,
5+
},
6+
parser: 'babel-eslint',
7+
rules: {
8+
indent: 0,
9+
'no-tabs': 0,
10+
'eol-last': ['error', 'always'],
11+
'no-underscore-dangle': 0,
12+
'no-unused-vars': 0,
13+
'react/jsx-indent': 0,
14+
'react/jsx-indent-props': 0,
15+
'react/jsx-filename-extension': 0,
16+
'react/forbid-prop-types': 0,
17+
'react/require-default-props': 0,
18+
},
19+
};

nextjsdemo/.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"editor.formatOnSave": true,
3+
"prettier.eslintIntegration": true
4+
}

nextjsdemo/next-env.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/// <reference types="next" />
2+
/// <reference types="next/types/global" />

nextjsdemo/next.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// next.config.js
2+
const withCSS = require('@zeit/next-css')
3+
module.exports = withCSS({
4+
/* config options here */
5+
})

0 commit comments

Comments
 (0)