-
- Downloads
More basic project setup stuff
Showing
- .eslintrc 31 additions, 0 deletions.eslintrc
- __tests__/.eslintrc 5 additions, 0 deletions__tests__/.eslintrc
- __tests__/miradorAnnotationPlugin.test.js 22 additions, 0 deletions__tests__/miradorAnnotationPlugin.test.js
- babel.config.js 13 additions, 0 deletionsbabel.config.js
- jest.config.js 17 additions, 0 deletionsjest.config.js
- nwb.config.js 18 additions, 3 deletionsnwb.config.js
- package.json 20 additions, 3 deletionspackage.json
- setupJest.js 4 additions, 0 deletionssetupJest.js
- src/index.js 1 addition, 1 deletionsrc/index.js
- src/plugins/miradorAnnotationPlugin.js 8 additions, 6 deletionssrc/plugins/miradorAnnotationPlugin.js
- tests/.eslintrc 0 additions, 5 deletionstests/.eslintrc
- tests/index.test.js 0 additions, 23 deletionstests/index.test.js
.eslintrc
0 → 100644
__tests__/.eslintrc
0 → 100644
__tests__/miradorAnnotationPlugin.test.js
0 → 100644
babel.config.js
0 → 100644
jest.config.js
0 → 100644
... | @@ -13,11 +13,12 @@ | ... | @@ -13,11 +13,12 @@ |
"scripts": { | "scripts": { | ||
"build": "nwb build-react-component", | "build": "nwb build-react-component", | ||
"clean": "nwb clean-module && nwb clean-demo", | "clean": "nwb clean-module && nwb clean-demo", | ||
"lint": "eslint ./src ./__tests__", | |||
"prepublishOnly": "npm run build", | "prepublishOnly": "npm run build", | ||
"start": "nwb serve-react-demo", | "start": "nwb serve-react-demo", | ||
"test": "nwb test-react", | "test": "npm run lint && jest", | ||
"test:coverage": "nwb test-react --coverage", | "test:coverage": "jest --coverage", | ||
"test:watch": "nwb test-react --server" | "test:watch": "jest --watch" | ||
}, | }, | ||
"dependencies": {}, | "dependencies": {}, | ||
"peerDependencies": { | "peerDependencies": { | ||
... | @@ -25,6 +26,22 @@ | ... | @@ -25,6 +26,22 @@ |
"react": "16.x" | "react": "16.x" | ||
}, | }, | ||
"devDependencies": { | "devDependencies": { | ||
"@babel/core": "^7.9.6", | |||
"@babel/preset-env": "^7.9.6", | |||
"@babel/preset-react": "^7.9.4", | |||
"babel-eslint": "^10.1.0", | |||
"enzyme": "^3.11.0", | |||
"enzyme-adapter-react-16": "^1.15.2", | |||
"eslint": "^6.8.0", | |||
"eslint-config-airbnb": "^18.1.0", | |||
"eslint-config-react-app": "^5.2.1", | |||
"eslint-plugin-flowtype": "^4.7.0", | |||
"eslint-plugin-import": "^2.20.2", | |||
"eslint-plugin-jest": "^23.9.0", | |||
"eslint-plugin-jsx-a11y": "^6.2.3", | |||
"eslint-plugin-react": "^7.19.0", | |||
"eslint-plugin-react-hooks": "^4.0.0", | |||
"jest": "^26.0.1", | |||
"mirador": "^3.0.0-beta.8", | "mirador": "^3.0.0-beta.8", | ||
"nwb": "0.24.x", | "nwb": "0.24.x", | ||
"react": "^16.13.1", | "react": "^16.13.1", | ||
... | ... |
setupJest.js
0 → 100644
tests/.eslintrc
deleted
100644 → 0
tests/index.test.js
deleted
100644 → 0
Please register or sign in to comment