154 lines
6.6 KiB
JSON
154 lines
6.6 KiB
JSON
{
|
|
"name": "site",
|
|
"license": "MIT",
|
|
"version": "2.0.0",
|
|
"description": "Code source du site mon-entreprise",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/betagouv/mon-entreprise.git",
|
|
"directory": "site"
|
|
},
|
|
"private": true,
|
|
"engines": {
|
|
"node": "^16"
|
|
},
|
|
"type": "module",
|
|
"browserslist": [
|
|
"> 1% in FR",
|
|
"not ie < 11"
|
|
],
|
|
"scripts": {
|
|
"build:yaml-to-dts": "ts-node-esm scripts/build-yaml-to-dts.ts",
|
|
"postinstall": "node scripts/prepare.js",
|
|
"start": "vite dev",
|
|
"start:axe-debugging": "VITE_AXE_CORE_ENABLED=true vite dev",
|
|
"start:netlify": "sed 's|:SITE_EN|/infrance|g' netlify.base.toml | sed 's|:SITE_FR|/mon-entreprise|g' | sed 's|:API_URL|http://localhost:3004|g' | sed 's|\\[\\[redirects\\]\\]|\\[\\[redirects\\]\\]\\n force = true|g' > netlify.toml && HMR_CLIENT_PORT=8888 netlify dev",
|
|
"build": "NODE_OPTIONS='--max-old-space-size=6144'; yarn build:sitemap && vite build && yarn build:iframe-script",
|
|
"build:ssr": "NODE_OPTIONS='--max-old-space-size=4096'; vite build --ssr ./source/entry-server.tsx --outDir ./dist/ssr --emptyOutDir && echo '{\"type\": \"module\"}' > dist/package.json",
|
|
"build:prerender": "ts-node-esm prerender.ts",
|
|
"build:iframe-script": "NODE_OPTIONS='--max-old-space-size=4096'; vite build --config vite-iframe-script.config.ts",
|
|
"build:sitemap": "ts-node-esm scripts/build-sitemap.ts",
|
|
"build:preview": "VITE_FR_BASE_URL=http://localhost:8888; VITE_EN_BASE_URL=http://localhost:8889; yarn build && yarn build:ssr && cp ./netlify.base.toml ./netlify.preview.toml && yarn build:prerender --dev --netlify-toml-path ./netlify.preview.toml",
|
|
"preview:mon-entreprise": "sed 's|:SITE_EN|_|g' netlify.preview.toml | sed 's|:SITE_FR||g' | sed 's|:API_URL|http://localhost:3004|g' > dist/netlify.toml && cd dist && netlify dev -d ./ -p 8888",
|
|
"preview:infrance": " sed 's|:SITE_EN||g' netlify.preview.toml | sed 's|:SITE_FR|_|g' | sed 's|:API_URL|http://localhost:3004|g' > dist/netlify.toml && cd dist && netlify dev -d ./ -p 8889",
|
|
"typecheck:watch": "tsc --skipLibCheck --noEmit --watch",
|
|
"test": "vitest",
|
|
"test:dev-e2e:mon-entreprise": "cypress open --e2e --config \"baseUrl=http://localhost:8888\"",
|
|
"test:dev-e2e:mycompanyinfrance": "cypress open --e2e --config \"baseUrl=http://localhost:8889,specPattern=cypress/integration/mon-entreprise/english/**/*.{js,jsx,ts,tsx}\" --env language=en",
|
|
"test:record-http-calls:mon-entreprise": "cypress run --env record_http=",
|
|
"algolia:update": "node --loader ts-node/esm scripts/search/update-data.ts",
|
|
"algolia:clean": "node scripts/search/clean.js",
|
|
"i18n:check": "yarn i18n:rules:check && yarn i18n:ui:check",
|
|
"i18n:translate": "yarn i18n:rules:translate && yarn i18n:ui:translate",
|
|
"i18n:rules:check": "node scripts/i18n/check-missing-rule-translation.js",
|
|
"i18n:rules:translate": "node scripts/i18n/translate-rules.js",
|
|
"i18n:ui:check": "i18next -c scripts/i18n/parser.config.js && node scripts/i18n/check-missing-UI-translation.js",
|
|
"i18n:ui:translate": "rm -rf source/locales/static-analysis-fr.json && i18next -c scripts/i18n/parser.config.js && node scripts/i18n/translate-ui.js",
|
|
"storybook": "NODE_OPTIONS=--openssl-legacy-provider start-storybook -p 6006",
|
|
"build:storybook": "NODE_OPTIONS=--openssl-legacy-provider build-storybook"
|
|
},
|
|
"dependencies": {
|
|
"@axe-core/react": "^4.5.2",
|
|
"@internationalized/number": "^3.1.1",
|
|
"@react-aria/accordion": "^3.0.0-alpha.13",
|
|
"@react-aria/button": "^3.6.3",
|
|
"@react-aria/checkbox": "^3.7.0",
|
|
"@react-aria/dialog": "^3.4.1",
|
|
"@react-aria/i18n": "^3.6.2",
|
|
"@react-aria/numberfield": "^3.3.3",
|
|
"@react-aria/overlays": "^3.12.0",
|
|
"@react-aria/progress": "^3.3.3",
|
|
"@react-aria/radio": "^3.4.1",
|
|
"@react-aria/searchfield": "^3.4.3",
|
|
"@react-aria/select": "^3.8.3",
|
|
"@react-aria/ssr": "^3.4.0",
|
|
"@react-aria/switch": "^3.3.0",
|
|
"@react-aria/textfield": "^3.8.0",
|
|
"@react-pdf/renderer": "^3.0.1",
|
|
"@react-stately/radio": "^3.6.1",
|
|
"@react-stately/searchfield": "^3.3.3",
|
|
"@react-stately/toggle": "^3.4.3",
|
|
"@react-stately/tree": "^3.4.0",
|
|
"@sentry/integrations": "^7.21.1",
|
|
"@sentry/react": "^7.21.1",
|
|
"@sentry/tracing": "^7.21.1",
|
|
"algoliasearch": "^4.14.2",
|
|
"exoneration-covid": "workspace:^",
|
|
"fuse.js": "^6.6.2",
|
|
"iframe-resizer": "^4.3.2",
|
|
"isbot": "^3.6.5",
|
|
"markdown-to-jsx": "^7.1.7",
|
|
"modele-social": "workspace:^",
|
|
"publicodes": "^1.0.0-beta.61",
|
|
"publicodes-react": "^1.0.0-beta.61",
|
|
"react": "^18.2.0",
|
|
"react-colorful": "^5.6.1",
|
|
"react-dom": "^18.2.0",
|
|
"react-easy-emoji": "^1.8.0",
|
|
"react-helmet-async": "^1.3.0",
|
|
"react-i18next": "^12.0.0",
|
|
"react-instantsearch": "^6.38.1",
|
|
"react-instantsearch-dom": "^6.38.1",
|
|
"react-redux": "^8.0.5",
|
|
"react-router-dom": "=6.3.0",
|
|
"react-signature-pad-wrapper": "^3.3.1",
|
|
"react-spring": "^9.5.5",
|
|
"react-use-measure": "^2.1.1",
|
|
"recharts": "2.1.16",
|
|
"reduce-reducers": "^1.0.4",
|
|
"redux": "^4.2.0",
|
|
"styled-components": "^5.3.6",
|
|
"whatwg-fetch": "^3.6.2"
|
|
},
|
|
"devDependencies": {
|
|
"@react-types/accordion": "^3.0.0-alpha.11",
|
|
"@react-types/numberfield": "^3.3.5",
|
|
"@react-types/searchfield": "^3.3.5",
|
|
"@redux-devtools/extension": "^3.2.3",
|
|
"@rollup/plugin-replace": "^4.0.0",
|
|
"@rollup/plugin-yaml": "^3.1.0",
|
|
"@rushstack/package-deps-hash": "^3.2.63",
|
|
"@storybook/addon-actions": "^6.5.13",
|
|
"@storybook/addon-essentials": "^6.5.13",
|
|
"@storybook/addon-interactions": "^6.5.13",
|
|
"@storybook/addon-links": "^6.5.13",
|
|
"@storybook/builder-vite": "^0.2.5",
|
|
"@storybook/react": "^6.5.13",
|
|
"@storybook/testing-library": "^0.0.13",
|
|
"@types/history": "^5.0.0",
|
|
"@types/react": "^18.0.25",
|
|
"@types/react-color": "^3.0.6",
|
|
"@types/react-dom": "^18.0.9",
|
|
"@types/react-instantsearch-dom": "^6.12.3",
|
|
"@types/react-redux": "^7.1.24",
|
|
"@types/recharts": "^1.8.24",
|
|
"@types/serve-static": "^1.15.0",
|
|
"@types/styled-components": "^5.1.26",
|
|
"@vitejs/plugin-legacy": "^2.3.1",
|
|
"@vitejs/plugin-react": "^2.2.0",
|
|
"cypress": "https://cdn.cypress.io/beta/npm/12.0.0/linux-arm64/release/12.0.0-e8898d2f6b65a11f36ceb2dd32ce7f1d87b103bc/cypress.tgz",
|
|
"cypress-plugin-tab": "^1.0.5",
|
|
"cypress-wait-until": "^1.7.2",
|
|
"dotenv": "^16.0.3",
|
|
"i18next-parser": "^7.0.3",
|
|
"netlify-cli": "^12.2.7",
|
|
"rimraf": "^3.0.2",
|
|
"rollup-plugin-toml": "^1.0.0",
|
|
"serve-static": "^1.15.0",
|
|
"ts-morph": "^17.0.1",
|
|
"ts-node": "^10.9.1",
|
|
"typescript": "^4.9.3",
|
|
"vite": "^3.2.4",
|
|
"vite-plugin-pwa": "^0.13.3",
|
|
"vitest": "^0.25.3",
|
|
"workbox-expiration": "^6.5.4",
|
|
"workbox-navigation-preload": "^6.5.4",
|
|
"workbox-precaching": "^6.5.4",
|
|
"workbox-routing": "^6.5.4",
|
|
"workbox-strategies": "^6.5.4",
|
|
"workbox-window": "^6.5.4",
|
|
"xml2js": "^0.4.23",
|
|
"yaml": "^2.1.3"
|
|
}
|
|
}
|