Skip to content
This repository was archived by the owner on Aug 27, 2020. It is now read-only.

Commit d2b7459

Browse files
committed
[WIP] run next@7, remove storybook(dependency error), remove unused packages,
fixes #16
1 parent cb083c6 commit d2b7459

File tree

6 files changed

+1057
-4125
lines changed

6 files changed

+1057
-4125
lines changed

.babelrc.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

babel.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
module.exports = (api) => {
22
api.cache(true)
33
return {
4-
presets: [],
4+
presets: [
5+
'next/babel',
6+
'@zeit/next-typescript/babel'
7+
],
58
plugins: [
69
'@babel/proposal-class-properties',
710
'@babel/proposal-object-rest-spread',
11+
['transform-define', {
12+
'process.env.NODE_ENV': process.env.NODE_ENV
13+
}]
814
]
915
}
1016
}

next.config.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
const path = require('path')
21
const withTypescript = require('@zeit/next-typescript')
32
const withCSS = require('@zeit/next-css')
4-
const {exportPathMap} = require('nextjs-export-path-map')
53
const {BundleAnalyzerPlugin} = require('webpack-bundle-analyzer')
64

75
module.exports = withTypescript(
@@ -17,6 +15,5 @@ module.exports = withTypescript(
1715
return config
1816
},
1917
cssModules: true,
20-
exportPathMap: exportPathMap.bind(null, path.join(__dirname, 'pages')),
2118
})
2219
)

package.json

Lines changed: 17 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "next.js-typescript-starter-kit",
3-
"version": "6.1.1",
3+
"version": "7.0.1",
44
"main": "index.js",
55
"repository": "https://github.com/deptno/next.js-typescript-starter-kit",
66
"author": "Bonggyun Lee <deptno@gmail.com>",
@@ -15,14 +15,12 @@
1515
"test": "jest",
1616
"test:watch": "jest --watch",
1717
"test:coverage": "jest --coverage",
18-
"storybook": "start-storybook -p 6006",
19-
"build-storybook": "build-storybook",
2018
"ts:check": "tsc --noEmit"
2119
},
2220
"dependencies": {
23-
"classnames": "^2.2.5",
24-
"moment": "^2.22.1",
25-
"next": "^7.0.0",
21+
"classnames": "^2.2.6",
22+
"moment": "^2.22.2",
23+
"next": "^7.0.1",
2624
"react": "^16.5.2",
2725
"react-dom": "^16.5.2",
2826
"react-ga": "^2.5.3",
@@ -33,41 +31,25 @@
3331
"redux-thunk": "^2.3.0"
3432
},
3533
"devDependencies": {
36-
"@storybook/addon-actions": "^3.4.7",
37-
"@storybook/addon-info": "^3.4.7",
38-
"@storybook/addon-links": "^3.4.7",
39-
"@storybook/addons": "^3.4.7",
40-
"@storybook/react": "^3.4.7",
41-
"@types/classnames": "^2.2.3",
34+
"@types/classnames": "^2.2.6",
4235
"@types/enzyme": "^3.1.10",
4336
"@types/enzyme-adapter-react-16": "^1.0.2",
44-
"@types/jest": "^22.2.3",
37+
"@types/jest": "^23.3.3",
4538
"@types/node": "^8.10.14",
4639
"@types/react": "^16.3.14",
4740
"@types/react-redux": "^6.0.0",
48-
"@zeit/next-css": "^0.2.0",
49-
"@zeit/next-typescript": "^1.1.0",
50-
"awesome-typescript-loader": "4",
51-
"babel-loader": "^7.1.4",
41+
"@zeit/next-css": "^1.0.1",
42+
"@zeit/next-typescript": "^1.1.1",
43+
"babel-loader": "^8.0.4",
5244
"babel-plugin-transform-define": "^1.3.0",
53-
"babel-upgrade": "^0.0.23",
54-
"cssnano": "^3.10.0",
55-
"enzyme": "^3.3.0",
56-
"enzyme-adapter-react-16": "^1.1.1",
57-
"jest": "^22.4.3",
58-
"nextjs-export-path-map": "^0.1.2",
59-
"postcss": "^6.0.23",
60-
"postcss-browser-reporter": "^0.5.0",
61-
"postcss-cssnext": "^3.1.0",
62-
"postcss-import": "^11.1.0",
63-
"postcss-loader": "^2.1.5",
64-
"postcss-nested": "^3.0.0",
65-
"postcss-reporter": "^5.0.0",
66-
"postcss-url": "^7.3.2",
67-
"react-docgen-typescript-webpack-plugin": "^1.1.0",
68-
"ts-jest": "^22.4.6",
69-
"typescript": "^3.0.1",
70-
"webpack-bundle-analyzer": "^2.11.2"
45+
"enzyme": "^3.7.0",
46+
"enzyme-adapter-react-16": "^1.6.0",
47+
"jest": "^23.6.0",
48+
"postcss": "^7.0.5",
49+
"postcss-preset-env": "^6.0.10",
50+
"ts-jest": "^23.10.3",
51+
"typescript": "^3.1.1",
52+
"webpack-bundle-analyzer": "^3.0.2"
7153
},
7254
"jest": {
7355
"moduleFileExtensions": [

postcss.config.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
module.exports = {
22
plugins: [
3-
require('postcss-import'),
4-
require('postcss-url'),
5-
require('postcss-cssnext'),
6-
require('postcss-nested'),
7-
require('postcss-browser-reporter'),
8-
require('cssnano')({autoprefixer: false})
3+
require('postcss-preset-env')()
94
]
105
}

0 commit comments

Comments
 (0)