Files
2026-01-16 14:13:44 +08:00

128 lines
4.7 KiB
JSON

{
"_from": "bootstrap-switch",
"_id": "bootstrap-switch@3.3.4",
"_inBundle": false,
"_integrity": "sha1-cOCusqh3wNx2aZHeEI4hcPwpov8=",
"_location": "/bootstrap-switch",
"_phantomChildren": {},
"_requested": {
"type": "tag",
"registry": true,
"raw": "bootstrap-switch",
"name": "bootstrap-switch",
"escapedName": "bootstrap-switch",
"rawSpec": "",
"saveSpec": null,
"fetchSpec": "latest"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/bootstrap-switch/-/bootstrap-switch-3.3.4.tgz",
"_shasum": "70e0aeb2a877c0dc766991de108e2170fc29a2ff",
"_spec": "bootstrap-switch",
"_where": "D:\\Workspaces\\SSMBootstrap\\WebRoot",
"author": {
"name": "Mattia Larentis",
"email": "mattia@larentis.eu",
"url": "http://larentis.eu"
},
"bugs": {
"url": "https://github.com/Bttstrp/bootstrap-switch/issues"
},
"bundleDependencies": false,
"contributors": [
{
"name": "Emanuele Marchi",
"email": "emanuele@lostcrew.it",
"url": "http://lostcrew.it"
},
{
"name": "Peter Stein",
"url": "http://www.bdmdesign.org"
}
],
"dependencies": {},
"deprecated": false,
"description": "Turn checkboxes and radio buttons into toggle switches.",
"devDependencies": {
"babel-cli": "^6.22.2",
"babel-polyfill": "^6.22.0",
"babel-preset-babili": "^0.0.10",
"babel-preset-env": "^1.1.8",
"babel-preset-stage-2": "^6.22.0",
"bootstrap": "^3.3.7",
"harp": "^0.23.0",
"headr": "0.0.4",
"jasmine": "^2.5.3",
"jasmine-core": "^2.5.2",
"jquery": "^1.12.4",
"karma": "^1.4.1",
"karma-babel-preprocessor": "^6.0.1",
"karma-cli": "^1.0.1",
"karma-firefox-launcher": "^1.0.0",
"karma-jasmine": "^1.1.0",
"karma-phantomjs-launcher": "^1.0.2",
"less": "^2.7.2",
"less-plugin-clean-css": "^1.5.0",
"npm-run-all": "^4.0.1",
"standard": "^8.6.0",
"wintersmith": "^2.3.6"
},
"homepage": "https://bttstrp.github.io/bootstrap-switch",
"keywords": [
"bootstrap",
"switch",
"javascript",
"js"
],
"license": "Apache-2.0",
"main": "dist/js/bootstrap-switch.js",
"name": "bootstrap-switch",
"npmFileMap": [
{
"basePath": "/dist/",
"files": [
"*.js",
"css/bootstrap3/*.css",
"css/bootstrap2/*.css"
]
}
],
"npmName": "bootstrap-switch",
"peerDependencies": {
"bootstrap": "^3.1.1",
"jquery": ">=1.9.0"
},
"repository": {
"type": "git",
"url": "git://github.com/Bttstrp/bootstrap-switch.git"
},
"scripts": {
"build": "run-p *:build",
"clean": "rm -rf dist",
"css": "run-p css:build",
"css:build": "npm-run-all css:build:base css:build:min -p css:build:banner",
"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",
"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",
"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",
"docs": "run-p docs:build",
"docs:build": "harp compile src/docs docs",
"js": "run-s js:lint js:test js:build",
"js:build": "npm-run-all js:build:dir -p js:build:base js:build:min -s js:build:banner",
"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",
"js:build:base": "babel -o dist/js/bootstrap-switch.js src/js/bootstrap-switch.js",
"js:build:dir": "mkdir -p dist/js",
"js:build:min": "NODE_ENV=production babel -o dist/js/bootstrap-switch.min.js src/js/bootstrap-switch.js",
"js:lint": "standard src/js/**/*.js",
"js:test": "mkdir -p test && babel -d test src/js && karma start karma.conf.js",
"lint": "run-p js:lint",
"prepublish": "run-s clean lint test build",
"publish-docs": "git subtree push --prefix docs origin gh-pages",
"start": "run-s prepublish",
"test": "run-p js:test"
},
"version": "3.3.4"
}