package.json 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. {
  2. "name": "css-tree",
  3. "version": "1.0.0-alpha.28",
  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. "keywords": [
  6. "css",
  7. "ast",
  8. "tokenizer",
  9. "parser",
  10. "walker",
  11. "lexer",
  12. "generator",
  13. "utils",
  14. "syntax",
  15. "validation"
  16. ],
  17. "homepage": "https://github.com/csstree/csstree",
  18. "author": "Roman Dvornov <rdvornov@gmail.com> (https://github.com/lahmatiy)",
  19. "maintainers": [
  20. {
  21. "name": "Roman Dvornov",
  22. "email": "rdvornov@gmail.com",
  23. "github-username": "lahmatiy"
  24. }
  25. ],
  26. "license": "MIT",
  27. "repository": "csstree/csstree",
  28. "bugs": {
  29. "url": "https://github.com/csstree/csstree/issues"
  30. },
  31. "main": "./lib/index",
  32. "browser": {
  33. "./data": "./dist/default-syntax.json"
  34. },
  35. "eslintConfig": {
  36. "env": {
  37. "node": true,
  38. "mocha": true,
  39. "es6": true
  40. },
  41. "rules": {
  42. "no-duplicate-case": 2,
  43. "no-undef": 2,
  44. "no-unused-vars": [
  45. 2,
  46. {
  47. "vars": "all",
  48. "args": "after-used"
  49. }
  50. ]
  51. }
  52. },
  53. "scripts": {
  54. "lint": "jscs data lib scripts test && eslint data lib scripts test && node scripts/update-docs --lint",
  55. "update:docs": "node scripts/update-docs",
  56. "build": "npm run gen:syntax && browserify --standalone csstree lib/index.js | uglifyjs --compress --mangle -o dist/csstree.js",
  57. "lint-and-test": "npm run lint && npm test",
  58. "test": "mocha --reporter progress",
  59. "gen:syntax": "node scripts/gen-syntax-data",
  60. "coverage": "istanbul cover _mocha -- -R min",
  61. "prepublish": "npm run build",
  62. "travis": "npm run lint-and-test && npm run coveralls",
  63. "coveralls": "istanbul cover _mocha --report lcovonly -- -R min && cat ./coverage/lcov.info | coveralls",
  64. "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"
  65. },
  66. "dependencies": {
  67. "mdn-data": "~1.1.0",
  68. "source-map": "^0.5.3"
  69. },
  70. "devDependencies": {
  71. "browserify": "^13.0.0",
  72. "coveralls": "^2.11.6",
  73. "eslint": "^2.13.1",
  74. "istanbul": "^0.4.2",
  75. "jscs": "~3.0.7",
  76. "json-to-ast": "~2.0.1",
  77. "mocha": "^3.0.2",
  78. "uglify-js": "^2.6.1"
  79. },
  80. "engines": {
  81. "node": ">=0.10.0"
  82. },
  83. "files": [
  84. "bin",
  85. "data",
  86. "dist/csstree.js",
  87. "dist/default-syntax.json",
  88. "docs",
  89. "lib",
  90. "HISTORY.md",
  91. "LICENSE",
  92. "README.md"
  93. ]
  94. }