(demo) add app demo

This demo is useful to test in the real usage of the design system as a real
user that will generate its own customized design tokens, implements the design
system's components, etc ...
This commit is contained in:
Nathan Vasse
2022-12-01 12:05:50 +01:00
committed by NathanVss
parent 4beff43ebe
commit 62c003780b
13 changed files with 145 additions and 0 deletions

29
apps/demo/package.json Normal file
View File

@@ -0,0 +1,29 @@
{
"name": "cunningham-demo",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"lint": "eslint . 'src/**/*.{ts,tsx}'",
"dev": "vite",
"build-theme": "cunningham -o src",
"build": "tsc && vite build",
"preview": "vite preview"
},
"dependencies": {
"@openfun/cunningham-react": "*",
"@openfun/cunningham-tokens": "*",
"@openfun/typescript-configs": "*",
"@types/react": "18.0.25",
"@types/react-dom": "18.0.9",
"@vitejs/plugin-react": "2.2.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"sass": "1.56.1",
"typescript": "4.9.3",
"vite": "3.2.4"
},
"engines": {
"node": ">=16.0.0"
}
}