package.json 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. {
  2. "name": "css-tree",
  3. "version": "1.0.0-alpha.37",
  4. "description": "CSSTree is a tool set to work with CSS, including fast detailed parser (string->AST), walker (AST traversal), generator (AST->string) and lexer (validation and matching) based on knowledge of spec and browser implementations",
  5. "author": "Roman Dvornov <rdvornov@gmail.com> (https://github.com/lahmatiy)",
  6. "license": "MIT",
  7. "repository": "csstree/csstree",
  8. "keywords": [
  9. "css",
  10. "ast",
  11. "tokenizer",
  12. "parser",
  13. "walker",
  14. "lexer",
  15. "generator",
  16. "utils",
  17. "syntax",
  18. "validation"
  19. ],
  20. "main": "./lib/index",
  21. "browser": {
  22. "./data": "./dist/default-syntax.json"
  23. },
  24. "scripts": {
  25. "build": "npm run gen:syntax && rollup --config && terser dist/csstree.js --compress --mangle -o dist/csstree.min.js",
  26. "lint": "eslint data lib scripts test && node scripts/review-syntax-patch --lint && node scripts/update-docs --lint",
  27. "lint-and-test": "npm run lint && npm test",
  28. "update:docs": "node scripts/update-docs",
  29. "gen:syntax": "node scripts/gen-syntax-data",
  30. "review:syntax-patch": "node scripts/review-syntax-patch",
  31. "test": "mocha --reporter progress",
  32. "coverage": "nyc npm test",
  33. "travis": "nyc npm run lint-and-test && npm run coveralls",
  34. "coveralls": "nyc report --reporter=text-lcov | coveralls",
  35. "prepublishOnly": "npm run build",
  36. "hydrogen": "node --trace-hydrogen --trace-phase=Z --trace-deopt --code-comments --hydrogen-track-positions --redirect-code-traces --redirect-code-traces-to=code.asm --trace_hydrogen_file=code.cfg --print-opt-code bin/parse --stat -o /dev/null"
  37. },
  38. "dependencies": {
  39. "mdn-data": "2.0.4",
  40. "source-map": "^0.6.1"
  41. },
  42. "devDependencies": {
  43. "coveralls": "^3.0.4",
  44. "eslint": "^6.3.0",
  45. "json-to-ast": "^2.1.0",
  46. "mocha": "^5.2.0",
  47. "nyc": "^14.1.1",
  48. "rollup": "^1.22.0",
  49. "rollup-plugin-commonjs": "^10.1.0",
  50. "rollup-plugin-json": "^4.0.0",
  51. "rollup-plugin-node-resolve": "^5.2.0",
  52. "terser": "^4.3.4"
  53. },
  54. "engines": {
  55. "node": ">=8.0.0"
  56. },
  57. "files": [
  58. "data",
  59. "dist",
  60. "lib"
  61. ]
  62. }