108 lines
3.0 KiB
JSON
108 lines
3.0 KiB
JSON
{
|
|
"name": "@nand2tetris/web",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"description": "",
|
|
"author": "David Souther <davidsouther@gmail.com>",
|
|
"license": "ISC",
|
|
"homepage": "https://nand2tetris.github.io/web-ide",
|
|
"devDependencies": {
|
|
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
"@davidsouther/jiffies": "^2.2.5",
|
|
"@lingui/cli": "^4.11.1",
|
|
"@lingui/macro": "^4.11.1",
|
|
"@lingui/react": "^4.11.1",
|
|
"@monaco-editor/react": "^4.6.0",
|
|
"@nand2tetris/components": "file:../components",
|
|
"@nand2tetris/projects": "file:../projects",
|
|
"@nand2tetris/simulator": "file:../simulator",
|
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
"@testing-library/jest-dom": "^6.4.5",
|
|
"@testing-library/react": "^16.0.0",
|
|
"@testing-library/user-event": "^14.5.2",
|
|
"@types/error-cause": "^1.0.4",
|
|
"@types/jest": "^29.5.12",
|
|
"@types/node": "^20.14.2",
|
|
"@types/react": "^18.3.3",
|
|
"@types/react-dom": "^18.3.0",
|
|
"@types/vscode": "^1.89.0",
|
|
"@vscode/vsce": "^2.27.0",
|
|
"gh-pages": "^6.1.1",
|
|
"immer": "^10.1.1",
|
|
"jszip": "^3.10.1",
|
|
"make-plural": "^7.4.0",
|
|
"ohm-js": "^17.1.0",
|
|
"raw-loader": "^4.0.2",
|
|
"raw.macro": "^0.5.0",
|
|
"react": "^18.3.1",
|
|
"react-dom": "^18.3.1",
|
|
"react-ga4": "^2.1.0",
|
|
"react-markdown": "^9.0.1",
|
|
"react-router-dom": "^6.23.1",
|
|
"react-scripts": "^5.0.1",
|
|
"remark-gfm": "^4.0.0",
|
|
"rxjs": "^7.8.1",
|
|
"sass": "^1.77.4",
|
|
"source-map-explorer": "^2.5.3",
|
|
"web-vitals": "^2.1.4"
|
|
},
|
|
"scripts": {
|
|
"analyze": "source-map-explorer 'build/static/js/*.js'",
|
|
"preanalyze": "npm run map-build",
|
|
"start": "react-scripts start",
|
|
"build": "cross-env GENERATE_SOURCEMAP=false react-scripts build",
|
|
"map-build": "react-scripts build",
|
|
"postbuild": "node ./scripts/predeploy.js",
|
|
"preserve-pwa": "npm run build ; ln -s build web-ide",
|
|
"serve-pwa": "python3 -m http.server",
|
|
"test": "react-scripts test",
|
|
"prebuild": "npm run extract && npm run lingui",
|
|
"extract": "lingui extract",
|
|
"lingui": "lingui compile --namespace es",
|
|
"predeploy": "npm run build",
|
|
"deploy": "gh-pages -d build"
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">1%",
|
|
"not dead",
|
|
"not op_mini all"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
},
|
|
"lingui": {
|
|
"locales": [
|
|
"en",
|
|
"en-PL"
|
|
],
|
|
"sourceLocale": "en",
|
|
"pseudoLocale": "en-PL",
|
|
"fallbackLocales": {
|
|
"en-PL": "en"
|
|
},
|
|
"catalogs": [
|
|
{
|
|
"path": "src/locales/{locale}/messages",
|
|
"include": [
|
|
"src",
|
|
"public"
|
|
]
|
|
}
|
|
],
|
|
"format": "po"
|
|
},
|
|
"jest": {
|
|
"moduleNameMapper": {
|
|
"^@nand2tetris/([^/]+)/(.*)": "<rootDir>/../node_modules/@nand2tetris/$1/build/$2",
|
|
"\\.css$": "identity-obj-proxy"
|
|
},
|
|
"transformIgnorePatterns": [
|
|
"node_modules/(?!@davidsouther)"
|
|
]
|
|
}
|
|
}
|