Files
cunningham/packages/react/package.json
jbpenrath 0274534234 (react) install storybook-a11y-addon
We need to ensure that our components are accessible. In order to ease
this task, we decide to install this package to display an a11y report
for each component into the storybook interface. In this way, developer
can check if the component it is developing violates or miss so a11y
rules.
2023-02-28 10:29:23 +01:00

83 lines
2.5 KiB
JSON

{
"name": "@openfun/cunningham-react",
"private": false,
"version": "0.1.1",
"publishConfig": {
"access": "public"
},
"type": "module",
"license": "MIT",
"module": "./dist/index.js",
"main": "./dist/index.cjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
},
"./style": "./dist/style.css",
"./fonts": "./dist/fonts.css"
},
"files": [
"dist/"
],
"scripts": {
"lint": "eslint . 'src/**/*.{ts,tsx}'",
"dev": "yarn storybook & nodemon --watch src --ext '*' --ignore src/cunningham-tokens.ts --ignore src/cunningham-tokens.js --ignore src/cunningham-tokens.css --exec npm run build",
"build": "tsc && yarn build-theme && vite build && yarn build-fonts",
"build-fonts": "vite build -c vite.fonts.config.ts && rm -rf dist/fonts.js",
"build-theme": "cunningham -o src -g css,ts,js",
"preview": "vite preview",
"test": "FORCE_COLOR=1 vitest run",
"test-watch": "vitest",
"coverage": "vitest run --coverage",
"storybook": "start-storybook -p 6006",
"deploy-storybook": "storybook-to-ghpages"
},
"dependencies": {
"@fontsource/roboto": "4.5.8",
"@openfun/cunningham-tokens": "*",
"react": "18.2.0",
"react-dom": "18.2.0"
},
"engines": {
"node": ">=16.0.0"
},
"devDependencies": {
"@babel/core": "7.20.7",
"@openfun/cunningham-tokens": "*",
"@openfun/typescript-configs": "*",
"@storybook/addon-a11y": "6.5.16",
"@storybook/addon-actions": "6.5.15",
"@storybook/addon-essentials": "6.5.15",
"@storybook/addon-interactions": "6.5.15",
"@storybook/addon-links": "6.5.15",
"@storybook/builder-vite": "0.2.6",
"@storybook/preset-scss": "1.0.3",
"@storybook/react": "6.5.15",
"@storybook/storybook-deployer": "^2.8.16",
"@storybook/testing-library": "0.0.13",
"@testing-library/dom": "8.19.1",
"@testing-library/react": "13.4.0",
"@testing-library/user-event": "14.4.3",
"@types/react": "18.0.26",
"@types/react-dom": "18.0.10",
"@vitejs/plugin-react": "3.0.0",
"@vitest/coverage-c8": "0.26.3",
"@vitest/ui": "0.26.2",
"babel-loader": "9.1.0",
"css-loader": "6.7.3",
"glob": "8.0.3",
"jsdom": "20.0.3",
"sass": "1.57.1",
"sass-loader": "13.2.0",
"style-loader": "3.3.1",
"typescript": "4.9.4",
"vite": "4.0.3",
"vite-plugin-dts": "1.7.1",
"vite-tsconfig-paths": "4.0.3",
"vitest": "0.26.2"
}
}