mirror of
https://github.com/Choices-js/Choices.git
synced 2026-03-14 14:45:47 +01:00
144 lines
4.5 KiB
JSON
144 lines
4.5 KiB
JSON
{
|
|
"name": "choices.js",
|
|
"version": "11.0.0 RC2",
|
|
"description": "A vanilla JS customisable text input/select box plugin",
|
|
"main": "./public/assets/scripts/choices.js",
|
|
"types": "./public/types/src/index.d.ts",
|
|
"scripts": {
|
|
"start": "run-p js:watch css:watch",
|
|
"build": "run-p js:build css:build",
|
|
"lint": "run-p lint:js lint:scss",
|
|
"lint:js": "eslint src/scripts/**/*.ts",
|
|
"lint:scss": "stylelint src/**/*.scss",
|
|
"bundlesize": "bundlesize",
|
|
"cypress:run": "cypress run --browser chromium",
|
|
"cypress:open": "cypress open",
|
|
"cypress:ci": "cypress run --browser chromium --record --group $GITHUB_REF --ci-build-id $GITHUB_SHA",
|
|
"test": "run-s test:unit test:e2e",
|
|
"test:unit": "cross-env TS_NODE_TRANSPILE_ONLY=true NODE_ENV=test mocha",
|
|
"test:unit:watch": "npm run test:unit -- --watch --inspect=5556",
|
|
"test:unit:coverage": "NODE_ENV=test nyc --reporter=lcov --reporter=text --reporter=text-summary mocha",
|
|
"test:e2e": "run-p --race start cypress:run",
|
|
"js:watch": "cross-env NODE_ENV=development node server.js",
|
|
"js:build": "webpack --config webpack.config.prod.js",
|
|
"css:watch": "nodemon -e scss -x \"npm run css:build\"",
|
|
"css:build": "run-s css:sass css:prefix css:min",
|
|
"css:sass": "sass -I scss src/styles/base.scss public/assets/styles/base.css && sass -I scss src/styles/choices.scss public/assets/styles/choices.css",
|
|
"css:prefix": "postcss public/assets/styles/*.css --use autoprefixer --no-map --env prod --dir public/assets/styles",
|
|
"css:min": "csso public/assets/styles/base.css --output public/assets/styles/base.min.css && csso public/assets/styles/choices.css --output public/assets/styles/choices.min.css",
|
|
"deploy": "git subtree push --prefix public origin gh-pages",
|
|
"prepublishOnly": "npm run build"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/jshjohnson/Choices.git"
|
|
},
|
|
"author": "Josh Johnson",
|
|
"license": "MIT",
|
|
"files": [
|
|
"public/assets/scripts",
|
|
"public/assets/styles",
|
|
"public/types",
|
|
"src",
|
|
"!src/**/*.test.js",
|
|
"types"
|
|
],
|
|
"bugs": {
|
|
"url": "https://github.com/jshjohnson/Choices/issues"
|
|
},
|
|
"homepage": "https://github.com/jshjohnson/Choices#readme",
|
|
"keywords": [
|
|
"customisable",
|
|
"input",
|
|
"select",
|
|
"vanilla",
|
|
"plugin",
|
|
"js"
|
|
],
|
|
"devDependencies": {
|
|
"@babel/core": "^7.24.9",
|
|
"@babel/preset-env": "^7.25.0",
|
|
"@babel/register": "^7.24.6",
|
|
"@types/chai": "^4.3.16",
|
|
"@types/mocha": "^10.0.7",
|
|
"@types/sinon": "^17.0.3",
|
|
"@types/sinon-chai": "^3.2.12",
|
|
"@typescript-eslint/eslint-plugin": "^7.17.0",
|
|
"@typescript-eslint/parser": "^7.17.0",
|
|
"autoprefixer": "^10.4.19",
|
|
"babel-loader": "^9.1.3",
|
|
"bundlesize": "^0.18.2",
|
|
"chai": "^5.1.1",
|
|
"cross-env": "^7.0.3",
|
|
"csso-cli": "^4.0.2",
|
|
"cypress": "13.13.1",
|
|
"eslint": "^8.56.0",
|
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
"eslint-config-airbnb-typescript": "^18.0.0",
|
|
"eslint-config-prettier": "^9.1.0",
|
|
"eslint-plugin-compat": "6.0.0",
|
|
"eslint-plugin-cypress": "^3.4.0",
|
|
"eslint-plugin-import": "^2.29.1",
|
|
"eslint-plugin-prettier": "^5.2.1",
|
|
"eslint-plugin-sort-class-members": "^1.20.0",
|
|
"eslint-webpack-plugin": "^4.2.0",
|
|
"express": "^4.19.2",
|
|
"husky": "^9.1.3",
|
|
"jsdom": "^24.1.1",
|
|
"lint-staged": "^15.2.7",
|
|
"mocha": "^10.7.0",
|
|
"nodemon": "^3.1.4",
|
|
"npm-run-all": "^4.1.5",
|
|
"nyc": "^17.0.0",
|
|
"postcss": "^8.4.40",
|
|
"postcss-cli": "^11.0.0",
|
|
"prettier": "^3.3.3",
|
|
"sass": "^1.77.8",
|
|
"sinon": "^18.0.0",
|
|
"sinon-chai": "^4.0.0",
|
|
"stylelint": "^16.7.0",
|
|
"stylelint-config-standard": "^36.0.1",
|
|
"stylelint-config-standard-scss": "^13.1.0",
|
|
"ts-loader": "^9.5.1",
|
|
"ts-node": "^10.9.2",
|
|
"typescript": "^5.5.4",
|
|
"webpack": "^5.93.0",
|
|
"webpack-cli": "^5.1.4",
|
|
"webpack-merge": "^5.7.3",
|
|
"webpack-dev-middleware": "^7.3.0",
|
|
"webpack-hot-middleware": "^2.26.1"
|
|
},
|
|
"dependencies": {
|
|
"fuse.js": "^6.6.2",
|
|
"redux": "^4.2.0"
|
|
},
|
|
"npmName": "choices.js",
|
|
"npmFileMap": [
|
|
{
|
|
"files": [
|
|
"public/assets/scripts/*",
|
|
"public/assets/styles/*",
|
|
"public/types/*",
|
|
"src/icons/*"
|
|
]
|
|
}
|
|
],
|
|
"nyc": {
|
|
"include": [
|
|
"src/scripts/**/**/*.js"
|
|
],
|
|
"exclude": [
|
|
"src/scripts/**/**/*.test.js"
|
|
]
|
|
},
|
|
"bundlesize": [
|
|
{
|
|
"path": "public/assets/scripts/choices.min.js",
|
|
"maxSize": "25 kB"
|
|
},
|
|
{
|
|
"path": "public/assets/styles/choices.min.css",
|
|
"maxSize": "2.5 kB"
|
|
}
|
|
]
|
|
}
|