package.json 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. {
  2. "name": "goober",
  3. "version": "2.0.37",
  4. "description": "A less than 1KB css-in-js solution",
  5. "sideEffects": false,
  6. "main": "dist/goober.js",
  7. "module": "dist/goober.esm.js",
  8. "umd:main": "dist/goober.umd.js",
  9. "source": "src/index.js",
  10. "unpkg": "dist/goober.umd.js",
  11. "types": "goober.d.ts",
  12. "files": [
  13. "src",
  14. "macro",
  15. "global/dist",
  16. "global/src",
  17. "global/package.json",
  18. "global/global.d.ts",
  19. "prefixer/dist",
  20. "prefixer/src",
  21. "prefixer/package.json",
  22. "prefixer/autoprefixer.d.ts",
  23. "prefixer/README.md",
  24. "should-forward-prop/dist",
  25. "should-forward-prop/src",
  26. "should-forward-prop/package.json",
  27. "should-forward-prop/should-forward-prop.d.ts",
  28. "should-forward-prop/README.md",
  29. "README.md",
  30. "dist",
  31. "package.json",
  32. "typings.json",
  33. "goober.d.ts"
  34. ],
  35. "exports": {
  36. ".": {
  37. "require": "./dist/goober.js",
  38. "browser": "./dist/goober.modern.js",
  39. "import": "./dist/goober.esm.js",
  40. "umd": "./dist/goober.umd.js"
  41. },
  42. "./macro": "./macro/index.js",
  43. "./global": {
  44. "browser": "./global/dist/goober-global.modern.js",
  45. "import": "./global/dist/goober-global.esm.js",
  46. "require": "./global/dist/goober-global.js",
  47. "umd": "./global/dist/goober-global.umd.js"
  48. },
  49. "./prefixer": {
  50. "browser": "./prefixer/dist/goober-autoprefixer.modern.js",
  51. "import": "./prefixer/dist/goober-autoprefixer.esm.js",
  52. "require": "./prefixer/dist/goober-autoprefixer.js",
  53. "umd": "./prefixer/dist/goober-autoprefixer.umd.js"
  54. },
  55. "./should-forward-prop": {
  56. "browser": "./should-forward-prop/dist/goober-should-forward-prop.modern.js",
  57. "import": "./should-forward-prop/dist/goober-should-forward-prop.esm.js",
  58. "require": "./should-forward-prop/dist/goober-should-forward-prop.js",
  59. "umd": "./should-forward-prop/dist/goober-should-forward-prop.umd.js"
  60. }
  61. },
  62. "scripts": {
  63. "test": "npm run test-ts && npm run test-unit -- --ci --coverage && npm run build && npm run test-perf",
  64. "test-perf": "NODE_ENV=production node benchmarks/perf.js",
  65. "test-perf-hash": "NODE_ENV=production node benchmarks/perf-hash.js",
  66. "test-unit": "jest --setupFiles ./tests/setup.js --roots ./src packages && npm run test-addon-global && npm run test-addon-prefixer",
  67. "test-addon-global": "cd global && npm run test",
  68. "test-addon-prefixer": "cd prefixer && npm run test",
  69. "test-ts": "tsc -p ts-tests",
  70. "clean": "rimraf dist",
  71. "size-check": "filesize",
  72. "build": "npm run build:core && npm run build:prefixer && npm run build:global && npm run build:should-forward-prop",
  73. "build:prefixer": "cd ./prefixer && npm run build",
  74. "build:global": "cd ./global && npm run build",
  75. "build:should-forward-prop": "cd ./should-forward-prop && npm run build",
  76. "build:core": "npm run clean && npm run build:dist && npm run size-check",
  77. "build:lib": "microbundle --entry src/index.js --name goober --no-sourcemap",
  78. "build:dist": "npm run build:lib -- --output dist",
  79. "build:debug": "npm run build:lib -- --output debug --no-compress",
  80. "dev": "npm run clean && microbundle watch --entry src/index.js --output dist --name goober",
  81. "deploy": "npm run build && npm publish",
  82. "format": "prettier \"**/*.{js,ts,tsx,md}\" --write"
  83. },
  84. "keywords": [
  85. "css-in-js",
  86. "goober",
  87. "styled",
  88. "emotion",
  89. "styled-components",
  90. "javascript",
  91. "react",
  92. "preact"
  93. ],
  94. "author": "Cristian <botecristian@yahoo.com>",
  95. "repository": {
  96. "type": "git",
  97. "url": "https://github.com/cristianbote/goober"
  98. },
  99. "license": "ISC",
  100. "devDependencies": {
  101. "@ampproject/filesize": "^4.0.0",
  102. "@babel/core": "^7.2.2",
  103. "@babel/plugin-transform-react-jsx": "^7.7.0",
  104. "@babel/preset-env": "^7.3.1",
  105. "@emotion/core": "^11.0.0",
  106. "@emotion/styled": "^11.0.0",
  107. "@emotion/react": "^11.1.4",
  108. "@types/react": "^16.9.34",
  109. "babel-jest": "^24.1.0",
  110. "benchmark": "^2.1.4",
  111. "csstype": "^2.6.3",
  112. "husky": "4.2.4",
  113. "jest": "^24.1.0",
  114. "lint-staged": "10.2.0",
  115. "microbundle": "^0.12.0",
  116. "preact": "^10.0.0",
  117. "prettier": "2.0.5",
  118. "react": "^16.12.0",
  119. "react-dom": "^16.12.0",
  120. "rimraf": "3.0.2",
  121. "styled-components": "^5.2.1",
  122. "typescript": "^3.6.3"
  123. },
  124. "peerDependencies": {
  125. "csstype": "^2.6.2"
  126. },
  127. "typings": "./goober.d.ts",
  128. "filesize": {
  129. "./dist/goober.modern.js": {
  130. "gzip": "1200B"
  131. },
  132. "./dist/goober.js": {
  133. "gzip": "1200B"
  134. }
  135. },
  136. "lint-staged": {
  137. "*.{js,ts,tsx,md}": [
  138. "prettier --write"
  139. ]
  140. },
  141. "husky": {
  142. "hooks": {
  143. "pre-commit": "lint-staged"
  144. }
  145. },
  146. "collective": {
  147. "type": "opencollective",
  148. "url": "https://opencollective.com/goober"
  149. }
  150. }