package.json 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {
  2. "name": "@mightyplow/flags",
  3. "version": "1.1.2",
  4. "description": "A utility to handle bitwise flags.",
  5. "main": "./dist/es5/flags.js",
  6. "module": "./dist/es6/flags.js",
  7. "browser": "./dist/es5/flags.min.js",
  8. "repository": {
  9. "type": "git",
  10. "url": "https://git.mightyplow.net/mightyplow/flags"
  11. },
  12. "bugs": {
  13. "url": "https://git.mightyplow.net/mightyplow/flags/issues"
  14. },
  15. "files": [
  16. "dist",
  17. "src"
  18. ],
  19. "scripts": {
  20. "compile": "tsc ./src/flags.ts -d -t ESNext --strict --pretty --outDir ./dist/es6",
  21. "postcompile": "npm run doc",
  22. "compile-es5": "npm run compile -- -t ES5 --lib es6 --outDir ./dist/es5",
  23. "doc": "jsdoc2md -t README.hbs --partial global-index.hbs --files dist/es6/flags.js > README.md",
  24. "uglify-es5": "terser -cm -o ./dist/es5/flags.min.js --source-map -- ./dist/es5/flags.js",
  25. "build-es6": "npm run compile",
  26. "build-es5": "npm run compile-es5",
  27. "prebuild": "rm -rf dist",
  28. "build": "npm run build-es6 && npm run build-es5 && npm run uglify-es5",
  29. "prepublishOnly": "npm run test",
  30. "test": "mocha -r ts-node/register tests/**/*.test.ts"
  31. },
  32. "keywords": [
  33. "flags",
  34. "bits"
  35. ],
  36. "author": "mightyplow@gmail.com",
  37. "license": "Beerware",
  38. "dependencies": {},
  39. "devDependencies": {
  40. "@types/chai": "^4.2.3",
  41. "@types/mocha": "^5.2.7",
  42. "chai": "^4.2.0",
  43. "mocha": "^6.2.2",
  44. "terser": "^4.3.9",
  45. "ts-node": "^8.4.1",
  46. "typescript": "^3.6.4",
  47. "typings": "^2.1.1"
  48. }
  49. }