-
- Downloads
Add Jest for testing
Showing
- .eslintrc 3 additions, 1 deletion.eslintrc
- .gitignore 2 additions, 2 deletions.gitignore
- babel.config.js 4 additions, 4 deletionsbabel.config.js
- components/Plot.jsx 0 additions, 0 deletionscomponents/Plot.jsx
- components/Theme.jsx 0 additions, 0 deletionscomponents/Theme.jsx
- jest.config.js 5 additions, 0 deletionsjest.config.js
- lib/createPageContext.js 17 additions, 0 deletionslib/createPageContext.js
- lib/getPageContext.js 18 additions, 0 deletionslib/getPageContext.js
- lib/withRoot.jsx 0 additions, 0 deletionslib/withRoot.jsx
- next.config.js 0 additions, 0 deletionsnext.config.js
- package-lock.json 3402 additions, 291 deletionspackage-lock.json
- package.json 8 additions, 4 deletionspackage.json
- pages/_document.jsx 0 additions, 0 deletionspages/_document.jsx
- pages/index.jsx 0 additions, 0 deletionspages/index.jsx
- server.js 1 addition, 1 deletionserver.js
- styles/index.scss 0 additions, 0 deletionsstyles/index.scss
- styles/theme.js 9 additions, 0 deletionsstyles/theme.js
- tests/lib/getPageContext.test.js 8 additions, 0 deletionstests/lib/getPageContext.test.js
File moved
File moved
jest.config.js
0 → 100644
app/lib/getPageContext.js
→
lib/createPageContext.js
100755 → 100644
lib/getPageContext.js
0 → 100755
File moved
File moved
This diff is collapsed.
... | ... | @@ -11,12 +11,13 @@ |
"keywords": [], | ||
"license": "AGPL 3", | ||
"scripts": { | ||
"build": "next build app", | ||
"start": "npm run build && env NODE_ENV=production node server.js", | ||
"dev": "nodemon --ignore app/ server.js", | ||
"build": "next build", | ||
"dev": "nodemon --watch server.js server.js", | ||
"prod": "npm run build && env NODE_ENV=production node server.js", | ||
"style:check": "eslint -c .eslintrc --ext .js,.jsx --ignore-path .gitignore .", | ||
"style:format": "npm run style:check -- --fix", | ||
"style:rules": "eslint --print-config .eslintrc" | ||
"style:rules": "eslint --print-config .eslintrc", | ||
"test": "jest -c jest.config.js" | ||
}, | ||
"dependencies": { | ||
"@material-ui/core": "^3.9.3", | ||
... | ... | @@ -42,6 +43,7 @@ |
"@babel/plugin-proposal-pipeline-operator": "^7.3.2", | ||
"@babel/preset-flow": "^7.0.0", | ||
"babel-eslint": "^10.0.1", | ||
"babel-jest": "^24.8.0", | ||
"babel-plugin-flow-react-proptypes": "^25.1.0", | ||
"babel-plugin-module-resolver": "^3.2.0", | ||
"babel-plugin-wrap-in-js": "^1.1.1", | ||
... | ... | @@ -50,8 +52,10 @@ |
"eslint-plugin-flowtype": "^3.7.0", | ||
"eslint-plugin-fp": "^2.3.0", | ||
"eslint-plugin-import": "^2.17.2", | ||
"eslint-plugin-jest": "^22.5.1", | ||
"eslint-plugin-jsx-a11y": "^6.2.1", | ||
"eslint-plugin-react": "^7.13.0", | ||
"jest": "^24.8.0", | ||
"nodemon": "^1.19.0" | ||
} | ||
} |
File moved
File moved
File moved
styles/theme.js
0 → 100644
tests/lib/getPageContext.test.js
0 → 100644
Please register or sign in to comment