package.json 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. {
  2. "name": "bootstrap-switch",
  3. "description": "Turn checkboxes and radio buttons into toggle switches.",
  4. "version": "3.4.0",
  5. "keywords": [
  6. "bootstrap",
  7. "switch",
  8. "javascript",
  9. "js"
  10. ],
  11. "homepage": "https://bttstrp.github.io/bootstrap-switch",
  12. "author": "Mattia Larentis <[email protected]> (http://larentis.eu)",
  13. "contributors": [
  14. "Emanuele Marchi <[email protected]> (http://lostcrew.it)",
  15. "Peter Stein (http://www.bdmdesign.org)"
  16. ],
  17. "main": "dist/js/bootstrap-switch.js",
  18. "peerDependencies": {
  19. "bootstrap": "^4.3.1",
  20. "jquery": ">=1.12.4"
  21. },
  22. "repository": {
  23. "type": "git",
  24. "url": "git://github.com/Bttstrp/bootstrap-switch.git"
  25. },
  26. "bugs": "https://github.com/Bttstrp/bootstrap-switch/issues",
  27. "license": "MIT",
  28. "readmeFilename": "README.md",
  29. "devDependencies": {
  30. "babel-cli": "^6.22.2",
  31. "babel-core": "^6.26.0",
  32. "babel-eslint": "^7.2.3",
  33. "babel-jest": "^22.4.3",
  34. "babel-polyfill": "^6.22.0",
  35. "babel-preset-babili": "^0.0.10",
  36. "babel-preset-env": "^1.1.8",
  37. "babel-preset-stage-0": "^6.24.1",
  38. "bootstrap": "^3.3.7",
  39. "eslint": "^3.19.0",
  40. "eslint-config-airbnb-base": "^11.2.0",
  41. "eslint-plugin-import": "^2.2.0",
  42. "harp": "^0.30.0",
  43. "headr": "0.0.4",
  44. "jasmine": "^2.5.3",
  45. "jasmine-core": "^2.5.2",
  46. "jest": "^22.4.3",
  47. "jquery": "^1.12.4",
  48. "karma": "^1.4.1",
  49. "karma-babel-preprocessor": "^6.0.1",
  50. "karma-cli": "^1.0.1",
  51. "karma-firefox-launcher": "^1.0.0",
  52. "karma-jasmine": "^1.1.0",
  53. "karma-phantomjs-launcher": "^1.0.2",
  54. "less": "^2.7.2",
  55. "less-plugin-clean-css": "^1.5.0",
  56. "npm-run-all": "^4.1.5",
  57. "regenerator-runtime": "^0.11.1",
  58. "wintersmith": "^2.3.6"
  59. },
  60. "scripts": {
  61. "js:lint": "eslint src/js/",
  62. "js:test": "jest",
  63. "js:build:dir": "mkdir \"dist/js\"",
  64. "js:build:base": "babel -o dist/js/bootstrap-switch.js src/js/bootstrap-switch.js",
  65. "js:build:min": "set NODE_ENV=production && babel -o dist/js/bootstrap-switch.min.js src/js/bootstrap-switch.js",
  66. "js:build:banner": "headr dist/js/bootstrap-switch.js -o dist/js/bootstrap-switch.js --version --homepage --author --license && headr dist/js/bootstrap-switch.min.js -o dist/js/bootstrap-switch.min.js --version --homepage --author --license",
  67. "js:build": "npm-run-all js:build:dir -p js:build:base js:build:min -s js:build:banner",
  68. "js:clean": "rm -rf \"dist/js\"",
  69. "js": "run-s js:clean js:lint js:test js:build",
  70. "css:build:base": "lessc src/less/bootstrap2/build.less dist/css/bootstrap2/bootstrap-switch.css && lessc src/less/bootstrap3/build.less dist/css/bootstrap3/bootstrap-switch.css",
  71. "css:build:min": "lessc --clean-css=\"--advanced\" src/less/bootstrap2/build.less dist/css/bootstrap2/bootstrap-switch.min.css && lessc --clean-css=\"--advanced\" src/less/bootstrap3/build.less dist/css/bootstrap3/bootstrap-switch.min.css",
  72. "css:build:banner": "headr dist/css/bootstrap2/bootstrap-switch.css -o dist/css/bootstrap2/bootstrap-switch.css --version --homepage --author --license && headr dist/css/bootstrap2/bootstrap-switch.min.css -o dist/css/bootstrap2/bootstrap-switch.min.css --version --homepage --author --license && headr dist/css/bootstrap3/bootstrap-switch.css -o dist/css/bootstrap3/bootstrap-switch.css --version --homepage --author --license && headr dist/css/bootstrap3/bootstrap-switch.min.css -o dist/css/bootstrap3/bootstrap-switch.min.css --version --homepage --author --license",
  73. "css:build": "npm-run-all css:build:base css:build:min -p css:build:banner",
  74. "css": "run-p css:build",
  75. "docs:build": "harp compile src/docs docs",
  76. "docs": "run-p docs:build",
  77. "publish-docs": "git subtree push --prefix docs origin gh-pages",
  78. "clean": "rm -rf dist",
  79. "lint": "run-p js:lint",
  80. "test": "run-p js:test",
  81. "build": "run-p *:build",
  82. "prepublish": "run-s clean lint test build",
  83. "start": "run-s prepublish"
  84. },
  85. "npmName": "bootstrap-switch",
  86. "npmFileMap": [
  87. {
  88. "basePath": "/dist/",
  89. "files": [
  90. "*.js",
  91. "css/bootstrap3/*.css",
  92. "css/bootstrap2/*.css"
  93. ]
  94. }
  95. ],
  96. "dependencies": {},
  97. "jest": {
  98. "testURL": "http://localhost/",
  99. "setupFiles": [
  100. "./src/setup-test.js"
  101. ]
  102. }
  103. }