8cdc6b7730
First shot at introducing storybook, with stories for the keycloak theme pages already in the repo.
88 lines
2.2 KiB
JSON
Executable file
88 lines
2.2 KiB
JSON
Executable file
{
|
|
"name": "keycloakify-starter",
|
|
"homepage": "https://starter.keycloakify.dev",
|
|
"version": "3.0.0",
|
|
"description": "A starter/demo project for keycloakify",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/codegouvfr/keycloakify-starter.git"
|
|
},
|
|
"scripts": {
|
|
"start": "react-scripts start",
|
|
"build": "react-scripts build",
|
|
"build-keycloak-theme": "yarn build ; keycloakify",
|
|
"download-builtin-keycloak-theme": "download-builtin-keycloak-theme 15.0.2",
|
|
"storybook": "start-storybook -p 6006 -s public",
|
|
"build-storybook": "build-storybook -s public"
|
|
},
|
|
"keycloakify": {
|
|
"extraPages": [
|
|
"my-extra-page-1.ftl",
|
|
"my-extra-page-2.ftl"
|
|
]
|
|
},
|
|
"author": "u/garronej",
|
|
"license": "MIT",
|
|
"keywords": [],
|
|
"dependencies": {
|
|
"evt": "^2.4.15",
|
|
"jwt-decode": "^3.1.2",
|
|
"keycloak-js": "^21.0.1",
|
|
"keycloakify": "^6.12.4",
|
|
"powerhooks": "^0.26.2",
|
|
"react": "18.1.0",
|
|
"react-dom": "18.1.0",
|
|
"tsafe": "^1.4.3"
|
|
},
|
|
"devDependencies": {
|
|
"@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-webpack5": "^6.5.16",
|
|
"@storybook/manager-webpack5": "^6.5.16",
|
|
"@storybook/node-logger": "^6.5.16",
|
|
"@storybook/preset-create-react-app": "^4.1.2",
|
|
"@storybook/react": "^6.5.16",
|
|
"@storybook/testing-library": "^0.0.13",
|
|
"@types/node": "^15.3.1",
|
|
"@types/react": "18.0.9",
|
|
"@types/react-dom": "18.0.4",
|
|
"react-scripts": "5.0.0",
|
|
"typescript": "~4.8.0"
|
|
},
|
|
"eslintConfig": {
|
|
"extends": [
|
|
"react-app",
|
|
"react-app/jest"
|
|
],
|
|
"rules": {
|
|
"react-hooks/exhaustive-deps": "off",
|
|
"@typescript-eslint/no-redeclare": "off",
|
|
"no-labels": "off"
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": [
|
|
"**/*.stories.*"
|
|
],
|
|
"rules": {
|
|
"import/no-anonymous-default-export": "off"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.2%",
|
|
"not dead",
|
|
"not op_mini all"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
}
|
|
}
|