101 lines
3.3 KiB
JSON
101 lines
3.3 KiB
JSON
{
|
|
"name": "@openfun/cunningham-react",
|
|
"private": false,
|
|
"version": "0.4.0",
|
|
"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",
|
|
"./icons": "./dist/icons.css",
|
|
"./sass/fonts": "./dist/sass/fonts.scss",
|
|
"./sass/icons": "./dist/sass/icons.scss"
|
|
},
|
|
"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 && yarn build-icons",
|
|
"build-fonts": "vite build -c vite.fonts.config.ts && rm -rf dist/fonts.js && mkdir -p dist/sass && cp src/fonts.scss dist/sass/",
|
|
"build-icons": "vite build -c vite.icons.config.ts && rm -rf dist/icons.js && mkdir -p dist/sass && cp src/icons.scss dist/sass/",
|
|
"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/material-icons": "4.5.4",
|
|
"@fontsource/roboto": "4.5.8",
|
|
"@openfun/cunningham-tokens": "*",
|
|
"@tanstack/react-table": "8.8.4",
|
|
"classnames": "2.3.2",
|
|
"react": "18.2.0",
|
|
"react-dom": "18.2.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=16.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "7.21.3",
|
|
"@babel/preset-typescript": "7.21.4",
|
|
"@babel/plugin-proposal-decorators": "7.21.0",
|
|
"@babel/plugin-proposal-export-default-from": "7.18.10",
|
|
"@faker-js/faker": "7.6.0",
|
|
"@openfun/cunningham-tokens": "*",
|
|
"@openfun/typescript-configs": "*",
|
|
"@storybook/addon-a11y": "6.5.16",
|
|
"@storybook/addon-actions": "6.5.16",
|
|
"@storybook/addon-essentials": "6.5.16",
|
|
"@storybook/addon-interactions": "6.5.16",
|
|
"@storybook/addon-links": "6.5.16",
|
|
"@storybook/builder-vite": "0.3.0",
|
|
"@storybook/preset-scss": "1.0.3",
|
|
"@storybook/react": "6.5.16",
|
|
"@storybook/storybook-deployer": "2.8.16",
|
|
"@storybook/testing-library": "0.0.13",
|
|
"@testing-library/dom": "9.2.0",
|
|
"@testing-library/jest-dom": "5.16.5",
|
|
"@testing-library/react": "14.0.0",
|
|
"@testing-library/user-event": "14.4.3",
|
|
"@types/jest": "29.5.0",
|
|
"@types/react": "18.0.31",
|
|
"@types/react-dom": "18.0.11",
|
|
"@vitejs/plugin-react": "3.1.0",
|
|
"@vitest/coverage-c8": "0.29.8",
|
|
"@vitest/ui": "0.29.8",
|
|
"babel-loader": "9.1.2",
|
|
"css-loader": "6.7.3",
|
|
"glob": "9.3.2",
|
|
"jsdom": "21.1.1",
|
|
"sass": "1.60.0",
|
|
"sass-loader": "13.2.2",
|
|
"style-loader": "3.3.2",
|
|
"typescript": "5.0.2",
|
|
"vite": "4.2.1",
|
|
"vite-plugin-dts": "2.1.0",
|
|
"vite-tsconfig-paths": "4.0.7",
|
|
"vitest": "0.29.8",
|
|
"vitest-fetch-mock": "0.2.2"
|
|
},
|
|
"volta": {
|
|
"node": "16.15.1",
|
|
"yarn": "1.22.19"
|
|
}
|
|
}
|