diff --git a/demo/.gitignore b/demo/.gitignore index 80ec582..4d29575 100644 --- a/demo/.gitignore +++ b/demo/.gitignore @@ -1,11 +1,23 @@ -node_modules -dist +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# production +/build + +# misc .DS_Store -bundle-stats.html -.vscode -__diff_output__ -lib/ -es/ -sandbox/node_modules -*.log -test-results.json +.env.local +.env.development.local +.env.test.local +.env.production.local + +npm-debug.log* +yarn-debug.log* +yarn-error.log* diff --git a/demo/package.json b/demo/package.json old mode 100755 new mode 100644 index 33fb077..ba87dc8 --- a/demo/package.json +++ b/demo/package.json @@ -1,29 +1,40 @@ { "name": "prism-react-renderer-example", - "version": "1.0.0", - "description": "", - "keywords": [], - "main": "src/index.js", + "version": "1.1.0", + "private": true, "dependencies": { + "@testing-library/jest-dom": "^5.14.1", + "@testing-library/react": "^12.0.0", + "@testing-library/user-event": "^13.2.1", "prism-react-renderer": "file:../", - "react": "16.8.3", - "react-dom": "16.8.3", - "react-scripts": "2.1.5", - "styled-components": "4.1.3" - }, - "devDependencies": { - "cross-env": "^5.2.0" + "react": "^17.0.2", + "react-dom": "^17.0.2", + "react-scripts": "5.0.0", + "styled-components": "^5.3.3", + "web-vitals": "^2.1.0" }, "scripts": { - "start": "cross-env SKIP_PREFLIGHT_CHECK=true react-scripts start", + "start": "react-scripts start", "build": "react-scripts build", - "test": "react-scripts test --env=jsdom", + "test": "react-scripts test", "eject": "react-scripts eject" }, - "browserslist": [ - ">0.2%", - "not dead", - "not ie <= 11", - "not op_mini all" - ] + "eslintConfig": { + "extends": [ + "react-app", + "react-app/jest" + ] + }, + "browserslist": { + "production": [ + ">0.2%", + "not dead", + "not op_mini all" + ], + "development": [ + "last 1 chrome version", + "last 1 firefox version", + "last 1 safari version" + ] + } } diff --git a/demo/public/favicon.ico b/demo/public/favicon.ico new file mode 100644 index 0000000..a11777c Binary files /dev/null and b/demo/public/favicon.ico differ diff --git a/demo/public/index.html b/demo/public/index.html old mode 100755 new mode 100644 index 42ae2d2..aa069f2 --- a/demo/public/index.html +++ b/demo/public/index.html @@ -1,17 +1,21 @@ - -
- - - - - - - -