Node-Red configuration
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. {
  2. "name": "node-red-contrib-ui-led",
  3. "version": "0.4.11",
  4. "description": "A simple LED status indicator for the Node-RED Dashboard",
  5. "author": "Ian G <yo.ian.g@gmail.com>",
  6. "license": "MIT",
  7. "node-red": {
  8. "nodes": {
  9. "ui_led": "./dist/nodes/ui_led/ui_led.js"
  10. }
  11. },
  12. "keywords": [
  13. "node-red",
  14. "led",
  15. "dashboard",
  16. "ui"
  17. ],
  18. "bugs": {
  19. "url": "https://github.com/Adorkable/node-red-contrib-ui-led/issues"
  20. },
  21. "homepage": "https://github.com/Adorkable/node-red-contrib-ui-led",
  22. "repository": {
  23. "type": "git",
  24. "url": "git+https://github.com/Adorkable/node-red-contrib-ui-led.git"
  25. },
  26. "scripts": {
  27. "copy": "copyfiles -u 2 \"./src/nodes/**/*.{png,svg}\" \"./dist/nodes/\"",
  28. "build:editor": "rollup -c rollup.config.editor.js",
  29. "build:editor:watch": "rollup -c rollup.config.editor.js -w",
  30. "build:runtime": "tsc -p tsconfig.runtime.json",
  31. "build:runtime:watch": "tsc -p tsconfig.runtime.watch.json --watch --preserveWatchOutput",
  32. "build": "rm -rf dist && npm run copy && npm run build:editor && npm run build:runtime",
  33. "test": "jest --forceExit --detectOpenHandles --colors --passWithNoTests",
  34. "test:watch": "jest --forceExit --detectOpenHandles --watchAll --passWithNoTests",
  35. "dev": "rm -rf dist && npm run copy && concurrently --kill-others --names 'COPY,EDITOR,RUNTIME,LINT,TEST' --prefix '({name})' --prefix-colors 'greenBright.bold,yellow.bold,cyan.bold,redBright.bold,magenta.bold' 'onchange -v \"src/**/*.png\" \"src/**/*.svg\" -- npm run copy' 'npm run lint:watch' 'npm run build:editor:watch' 'npm run build:runtime:watch' 'sleep 10; npm run test:watch'",
  36. "lint": "prettier --ignore-path .eslintignore --check '**/*.{js,ts,md}'; eslint --ext .js,.ts .",
  37. "lint:fix": "prettier --ignore-path .eslintignore --write '**/*.{js,ts,md}'; eslint --ext .js,.ts . --fix",
  38. "lint:watch": "onchange -v \"**/*.{js,ts,md}\" -- npm run lint",
  39. "release": "npm run build && npm publish"
  40. },
  41. "dependencies": {
  42. },
  43. "devDependencies": {
  44. "@rollup/plugin-typescript": "^8.0.0",
  45. "@types/angular": "^1.8.0",
  46. "@types/express": "^4.17.9",
  47. "@types/jest": "^26.0.15",
  48. "@types/jqueryui": "^1.12.14",
  49. "@types/node": "^14.14.10",
  50. "@types/node-red": "^1.1.1",
  51. "@types/node-red-node-test-helper": "^0.2.1",
  52. "@types/sinon": "^9.0.9",
  53. "@types/supertest": "^2.0.10",
  54. "@typescript-eslint/eslint-plugin": "^4.9.0",
  55. "@typescript-eslint/parser": "^4.9.0",
  56. "colorette": "^1.2.1",
  57. "concurrently": "^5.3.0",
  58. "copyfiles": "^2.4.1",
  59. "eslint": "^7.14.0",
  60. "eslint-config-prettier": "^7.1.0",
  61. "eslint-plugin-jest": "^24.1.3",
  62. "eslint-plugin-prettier": "^3.1.4",
  63. "glob": "^7.1.6",
  64. "jest": "^26.6.3",
  65. "mustache": "^4.0.1",
  66. "node-red": "^1.2.6",
  67. "node-red-dashboard": ">=2.23.3",
  68. "node-red-node-test-helper": "^0.2.5",
  69. "onchange": "^7.0.2",
  70. "prettier": "^2.2.1",
  71. "rollup": "^2.23.0",
  72. "ts-jest": "^26.4.4",
  73. "typescript": "^4.1.2"
  74. },
  75. "peerDependencies": {
  76. "node-red-dashboard": ">=2.23.3"
  77. },
  78. "jest": {
  79. "testEnvironment": "node",
  80. "roots": [
  81. "<rootDir>/src"
  82. ],
  83. "transform": {
  84. "^.+\\.ts$": "ts-jest"
  85. },
  86. "testMatch": [
  87. "**/__tests__/**/*.test.ts"
  88. ]
  89. },
  90. "prettier": {
  91. "printWidth": 80,
  92. "semi": false,
  93. "singleQuote": true,
  94. "trailingComma": "none"
  95. }
  96. }