package.json 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. {
  2. "name": "bootstrap-switch",
  3. "description": "Turn checkboxes and radio buttons into toggle switches.",
  4. "version": "3.3.3",
  5. "keywords": [
  6. "bootstrap",
  7. "switch",
  8. "javascript",
  9. "js"
  10. ],
  11. "homepage": "http://www.bootstrap-switch.org",
  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": "^3.1.1",
  20. "jquery": "^1.9.0"
  21. },
  22. "repository": {
  23. "type": "git",
  24. "url": "git://github.com/nostalgiaz/bootstrap-switch.git"
  25. },
  26. "bugs": "https://github.com/nostalgiaz/bootstrap-switch/issues",
  27. "license": "Apache-2.0",
  28. "readmeFilename": "README.md",
  29. "devDependencies": {
  30. "babel-cli": "^6.22.2",
  31. "babel-polyfill": "^6.22.0",
  32. "babel-preset-babili": "^0.0.10",
  33. "babel-preset-env": "^1.1.8",
  34. "bootstrap": "^3.3.7",
  35. "harp": "^0.23.0",
  36. "headr": "0.0.4",
  37. "jasmine": "^2.5.3",
  38. "jasmine-core": "^2.5.2",
  39. "jquery": "^1.12.4",
  40. "karma": "^1.4.1",
  41. "karma-babel-preprocessor": "^6.0.1",
  42. "karma-cli": "^1.0.1",
  43. "karma-firefox-launcher": "^1.0.0",
  44. "karma-jasmine": "^1.1.0",
  45. "karma-phantomjs-launcher": "^1.0.2",
  46. "less": "^2.7.2",
  47. "less-plugin-clean-css": "^1.5.0",
  48. "npm-run-all": "^4.0.1",
  49. "standard": "^8.6.0",
  50. "wintersmith": "^2.3.6"
  51. },
  52. "scripts": {
  53. "js:lint": "standard src/js/**/*.js",
  54. "js:test": "mkdir -p test && babel -d test src/js && karma start karma.conf.js",
  55. "js:build:dir": "mkdir -p dist/js",
  56. "js:build:base": "babel -o dist/js/bootstrap-switch.js src/js/bootstrap-switch.js",
  57. "js:build:min": "NODE_ENV=production babel -o dist/js/bootstrap-switch.min.js src/js/bootstrap-switch.js",
  58. "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",
  59. "js:build": "npm-run-all js:build:dir -p js:build:base js:build:min -s js:build:banner",
  60. "js": "run-s js:lint js:test js:build",
  61. "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",
  62. "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",
  63. "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",
  64. "css:build": "npm-run-all css:build:base css:build:min -p css:build:banner",
  65. "css": "run-p css:build",
  66. "clean": "rm -rf dist",
  67. "lint": "run-p js:lint",
  68. "test": "run-p js:test",
  69. "build": "run-p *:build",
  70. "docs": "harp compile src/docs docs",
  71. "prepublish": "run-s clean lint test build docs",
  72. "start": "run-s prepublish"
  73. },
  74. "npmName": "bootstrap-switch",
  75. "npmFileMap": [
  76. {
  77. "basePath": "/dist/",
  78. "files": [
  79. "*.js",
  80. "css/bootstrap3/*.css",
  81. "css/bootstrap2/*.css"
  82. ]
  83. }
  84. ],
  85. "dependencies": {}
  86. }