package.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. {
  2. "name": "grapesjs",
  3. "description": "Free and Open Source Web Builder Framework",
  4. "version": "0.16.12",
  5. "author": "Artur Arseniev",
  6. "license": "BSD-3-Clause",
  7. "homepage": "http://grapesjs.com",
  8. "main": "dist/grapes.min.js",
  9. "sideEffects": [
  10. "*.vue",
  11. "*.css",
  12. "*.scss"
  13. ],
  14. "repository": {
  15. "type": "git",
  16. "url": "https://github.com/artf/grapesjs.git"
  17. },
  18. "dependencies": {
  19. "@babel/runtime": "^7.9.2",
  20. "backbone": "1.3.3",
  21. "backbone-undo": "^0.2.5",
  22. "cash-dom": "^2.3.9",
  23. "codemirror": "^5.49.2",
  24. "codemirror-formatting": "^1.0.0",
  25. "keymaster": "^1.6.2",
  26. "promise-polyfill": "^8.1.3",
  27. "spectrum-colorpicker": "^1.8.0",
  28. "underscore": "^1.9.1"
  29. },
  30. "devDependencies": {
  31. "@babel/cli": "^7.8.4",
  32. "@babel/core": "^7.9.0",
  33. "@babel/plugin-transform-runtime": "^7.9.0",
  34. "@babel/preset-env": "^7.9.5",
  35. "@vuepress/plugin-google-analytics": "^1.4.1",
  36. "babel-loader": "^8.1.0",
  37. "documentation": "^8.1.2",
  38. "eslint": "^6.6.0",
  39. "html-webpack-plugin": "^3.2.0",
  40. "husky": "^2.7.0",
  41. "jest": "^24.9.0",
  42. "lint-staged": "^8.2.1",
  43. "node-sass": "^4.13.0",
  44. "npm-run-all": "^4.1.5",
  45. "prettier": "^1.18.2",
  46. "sinon": "^7.5.0",
  47. "string-replace-loader": "^2.2.0",
  48. "vuepress": "^1.4.1",
  49. "webpack": "^4.41.2",
  50. "webpack-cli": "^3.3.10",
  51. "webpack-dev-server": "^3.9.0",
  52. "whatwg-fetch": "^3.0.0"
  53. },
  54. "keywords": [
  55. "grapes",
  56. "grapesjs",
  57. "wysiwyg",
  58. "web",
  59. "template",
  60. "editor",
  61. "newsletter",
  62. "site",
  63. "builder"
  64. ],
  65. "babel": {
  66. "presets": [
  67. [
  68. "@babel/preset-env",
  69. {
  70. "targets": [
  71. "> 1%",
  72. "ie 11",
  73. "safari 8"
  74. ]
  75. }
  76. ]
  77. ],
  78. "plugins": [
  79. "@babel/plugin-transform-runtime"
  80. ],
  81. "env": {
  82. "test": {
  83. "presets": [
  84. "@babel/preset-env"
  85. ]
  86. }
  87. }
  88. },
  89. "lint-staged": {
  90. "{src,test}/**/*.js": [
  91. "prettier --single-quote --write",
  92. "git add"
  93. ]
  94. },
  95. "jest": {
  96. "testURL": "http://localhost/",
  97. "modulePaths": [
  98. "./src"
  99. ],
  100. "testMatch": [
  101. "<rootDir>/test/specs/**/*.js"
  102. ],
  103. "setupFiles": [
  104. "<rootDir>/test/setup.js"
  105. ],
  106. "moduleNameMapper": {
  107. "^jquery$": "cash-dom"
  108. }
  109. },
  110. "husky": {
  111. "hooks": {
  112. "pre-commit": "lint-staged"
  113. }
  114. },
  115. "scripts": {
  116. "docs": "vuepress dev docs",
  117. "docs:api": "node docs/api.js",
  118. "docs:build-vp": "vuepress build docs",
  119. "docs:build": "npm run docs:api && npm run docs:build-vp",
  120. "docs:deploy": "docs/deploy.sh",
  121. "lint": "eslint src",
  122. "check": "npm run lint && npm run test",
  123. "build": "npm run check && npm run v:patch && npm run build-dev && npm run build-prod",
  124. "build-n": "npm run check && npm run build:css && npm run build-prod",
  125. "build-dev": "webpack --env=dev && npm run build:css && npm run build:locale",
  126. "build-prod": "webpack --env=prod",
  127. "build:css": "node-sass src/styles/scss/main.scss dist/css/grapes.min.css --output-style compressed",
  128. "build:locale": "rm -rf ./locale && node scripts/build-locale.js && babel locale -d locale --copy-files --no-comments",
  129. "v:patch": "npm version --no-git-tag-version patch",
  130. "start": "run-p start:*",
  131. "start:css": "npm run build:css -- -w",
  132. "start:js": "webpack-dev-server --open --progress --colors",
  133. "stats": "webpack --env=prod --profile --json > stats.json && webpack-bundle-analyzer stats.json",
  134. "format": "prettier --single-quote --write './{src,test}/**/*.js'",
  135. "test": "jest",
  136. "test:dev": "jest --watch"
  137. }
  138. }