@norgate-av/cra-template-crestron-ch5-typescript
Version:
Crestron CH5 TypeScript template for Create React App.
157 lines (156 loc) • 8.05 kB
JSON
{
"package": {
"main": "electron/main.js",
"dependencies": {
"@crestron/ch5-crcomlib": "^1.2.0",
"@crestron/ch5-webxpanel": "^1.2.5",
"@norgate-av/crestron-ch5-helper": "^1.1.0",
"@norgate-av/react-crestron-ch5-hooks": "^1.0.0",
"@reduxjs/toolkit": "^1.8.1",
"axios": "^0.27.2",
"electron-is-dev": "^2.0.0",
"eruda": "^2.4.1",
"react-icons": "^4.3.1",
"react-redux": "^8.0.1",
"react-router-dom": "^6.2.2",
"redux": "^4.1.2",
"redux-logger": "^3.0.6",
"rooks": "^5.11.0",
"styled-components": "^5.3.3"
},
"scripts": {
"clean:app": "rimraf app",
"clean:build": "rimraf build",
"clean:dist": "rimraf dist",
"clean:all": "yarn clean:app && yarn clean:build && yarn clean:dist",
"copylib": "run-script-os",
"copylib:default": "ncp $npm_package_crestron_crcomlib_bundle_path_umd public/$npm_package_crestron_crcomlib_bundle_name",
"copylib:windows": "ncp %npm_package_crestron_crcomlib_bundle_path_umd% public/%npm_package_crestron_crcomlib_bundle_name%",
"start": "yarn resolve:crcomlib && yarn copylib && react-scripts start",
"build": "yarn clean:build && yarn resolve:crcomlib && yarn copylib && react-scripts build",
"serve": "serve -s build",
"build-and-serve": "yarn build && yarn serve",
"build:archive": "run-script-os",
"build:archive:default": "yarn clean:dist && yarn ch5-cli archive -p $npm_package_name -P samplesource=$npm_package_name -d build -o dist",
"build:archive:windows": "yarn clean:dist && yarn ch5-cli archive -p %npm_package_name% -P samplesource=%npm_package_name% -d build -o dist",
"build:deploy:touchscreen": "run-script-os",
"build:deploy:touchscreen:default": "yarn ch5-cli deploy -p -H $npm_package_crestron_project_touchscreen_url -t $npm_package_crestron_project_touchscreen_type dist/$npm_package_name.ch5z",
"build:deploy:touchscreen:windows": "yarn ch5-cli deploy -p -H %npm_package_crestron_project_touchscreen_url% -t %npm_package_crestron_project_touchscreen_type% dist/%npm_package_name%.ch5z",
"build:deploy:web": "run-script-os",
"build:deploy:web:default": "yarn ch5-cli deploy -p -H $npm_package_crestron_project_web_url -t $npm_package_crestron_project_web_type dist/$npm_package_name.ch5z",
"build:deploy:web:windows": "yarn ch5-cli deploy -p -H %npm_package_crestron_project_web_url% -t %npm_package_crestron_project_web_type% dist/%npm_package_name%.ch5z",
"build:onestep:touchscreen": "yarn build && yarn build:archive && yarn build:deploy:touchscreen",
"build:onestep:web": "yarn build && yarn build:archive && yarn build:deploy:web",
"resolve:crcomlib": "run-script-os",
"resolve:crcomlib:default": "./node_modules/node-jq/bin/jq '.main=\"build_bundles/cjs/cr-com-lib.js\"' $npm_package_crestron_crcomlib_packageJson | sponge $npm_package_crestron_crcomlib_packageJson",
"resolve:crcomlib:windows": "./node_modules/node-jq/bin/jq \".main=\"\"build_bundles/cjs/cr-com-lib.js\"\"\" %npm_package_crestron_crcomlib_packageJson% | sponge %npm_package_crestron_crcomlib_packageJson%",
"build:docker": "yarn build && docker-compose up -d",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"commit": "git-cz",
"husky:install": "husky install",
"pretty:fix": "prettier --write .",
"build:electron": "run-script-os",
"build:electron:macos": "yarn clean:app && electron-builder --mac",
"build:electron:windows": "yarn clean:app && electron-builder --win",
"build:electron:default": "yarn clean:app && electron-builder --linux",
"build:electron:all": "yarn clean:app && electron-builder -wml",
"electron:dev": "concurrently \"cross-env BROWSER=none yarn start\" \"wait-on http://127.0.0.1:3000 && electron .\""
},
"eslintConfig": {
"extends": ["react-app", "react-app/jest"]
},
"crestron": {
"project": {
"touchscreen": {
"url": "Enter IP/Hostname of Crestron Touchpanel here...",
"type": "touchscreen"
},
"web": {
"url": "Enter IP/Hostname of Crestron Processor here...",
"type": "web",
"config": {
"host": "localhost",
"ipId": "0x03",
"roomId": ""
}
}
},
"crcomlib": {
"root": "./node_modules/@crestron/ch5-crcomlib",
"packageJson": "./node_modules/@crestron/ch5-crcomlib/package.json",
"bundle": {
"name": "cr-com-lib.js",
"path": {
"umd": "./node_modules/@crestron/ch5-crcomlib/build_bundles/umd/cr-com-lib.js",
"cjs": "./node_modules/@crestron/ch5-crcomlib/build_bundles/cjs/cr-com-lib.js"
}
}
}
},
"devDependencies": {
"@babel/core": "^7.17.10",
"@babel/plugin-syntax-flow": "^7.16.7",
"@babel/plugin-transform-react-jsx": "^7.17.3",
"@commitlint/cli": "^16.2.3",
"@commitlint/config-conventional": "^16.2.1",
"@crestron/ch5-utilities-cli": "^0.1.52",
"@testing-library/dom": "^8.13.0",
"@testing-library/jest-dom": "^5.16.2",
"@testing-library/react": "^13.2.0",
"@testing-library/user-event": "^14.1.1",
"@types/jest": "^27.4.1",
"@types/ncp": "^2.0.5",
"@types/node": "^17.0.31",
"@types/node-sass": "^4.11.2",
"@types/react": "^18.0.1",
"@types/react-dom": "^18.0.0",
"@types/react-is": "^17.0.3",
"@types/react-router-dom": "^5.3.3",
"@types/redux-logger": "^3.0.9",
"@types/rimraf": "^3.0.2",
"@types/styled-components": "^5.1.24",
"@typescript-eslint/eslint-plugin": "^5.14.0",
"@typescript-eslint/parser": "^5.14.0",
"autoprefixer": "^10.4.5",
"clsx": "^1.1.1",
"concurrently": "^7.1.0",
"cross-env": "^7.0.3",
"cz-conventional-changelog": "3.3.0",
"electron": "^18.2.0",
"electron-builder": "^23.0.3",
"eslint": "^8.11.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.29.3",
"eslint-plugin-react-hooks": "^4.3.0",
"husky": "^7.0.0",
"lint-staged": "^12.3.5",
"ncp": "^2.0.0",
"node-jq": "^2.1.0",
"node-sass": "^7.0.1",
"postcss": "^8.4.13",
"prettier": "^2.5.1",
"react-is": "^18.1.0",
"rimraf": "^3.0.2",
"run-script-os": "^1.1.6",
"sponge": "^0.1.0",
"tailwindcss": "^3.0.24",
"typescript": "^4.6.4",
"wait-on": "^6.0.1"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": ["yarn lint:fix", "yarn pretty:fix"],
"*.{css,scss,md,html,json,yml,yaml}": ["yarn pretty:fix"]
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}
}