mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-05 07:13:11 +02:00
4acd6d6ca8
* run actions on dependencies change * add bundlesize token to master run * fix bundlesize commit number * add cypress env * also run on - '.browserslistrc' changes * update node-sass to allow install on Node 12 and trigger events * use script * add group * skip husky on cypress * upgrade csso dependency to make it trim sourcemaps * fix run-p / run-s use * remove commited assets on check * commit assets * remove cypress record * restore recording * reduce bundlesize limits * try to specify key implicity * remove Cypress recording * restore build in bundlesize * regenerate package-json.lock * commit generated assets * handle no-js case in lint * fix lint error
129 lines
3.9 KiB
JSON
129 lines
3.9 KiB
JSON
{
|
|
"name": "choices.js",
|
|
"version": "7.1.1",
|
|
"description": "A vanilla JS customisable text input/select box plugin",
|
|
"main": "./public/assets/scripts/choices.min.js",
|
|
"types": "./types/index.d.ts",
|
|
"scripts": {
|
|
"start": "run-p js:watch css:watch",
|
|
"build": "run-p js:build css:build",
|
|
"lint": "eslint src/scripts",
|
|
"coverage": "nyc --reporter=lcov --reporter=text --reporter=text-summary mocha",
|
|
"bundlesize": "bundlesize",
|
|
"cypress:run": "$(npm bin)/cypress run",
|
|
"cypress:open": "$(npm bin)/cypress open",
|
|
"cypress:ci": "cypress run --record --group --ci-build-id $GITHUB_SHA",
|
|
"test": "run-s test:unit test:e2e",
|
|
"test:unit": "mocha",
|
|
"test:unit:watch": "mocha --watch --inspect=5556",
|
|
"test:e2e": "run-p --race start cypress:run",
|
|
"js:watch": "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": "node-sass --output-style expanded --include-path scss src/styles/base.scss public/assets/styles/base.css && node-sass --output-style expanded --include-path 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",
|
|
"prepush": "run-s lint test:unit bundlesize",
|
|
"preversion": "npm test",
|
|
"postversion": "git push --no-verify --atomic",
|
|
"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",
|
|
"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.6.4",
|
|
"@babel/preset-env": "^7.6.3",
|
|
"@babel/register": "^7.6.2",
|
|
"autoprefixer": "^9.6.5",
|
|
"babel-loader": "^8.0.6",
|
|
"bundlesize": "^0.18.0",
|
|
"chai": "^4.2.0",
|
|
"csso-cli": "2.0.2",
|
|
"cypress": "3.2.0",
|
|
"eslint": "^6.5.1",
|
|
"eslint-config-airbnb-base": "^14.0.0",
|
|
"eslint-config-prettier": "^6.4.0",
|
|
"eslint-loader": "^3.0.2",
|
|
"eslint-plugin-cypress": "^2.7.0",
|
|
"eslint-plugin-import": "^2.18.2",
|
|
"eslint-plugin-prettier": "^3.1.1",
|
|
"express": "^4.16.4",
|
|
"husky": "^3.0.9",
|
|
"jsdom": "^15.2.0",
|
|
"mocha": "^6.2.2",
|
|
"node-sass": "^4.12.0",
|
|
"nodemon": "^1.18.10",
|
|
"npm-run-all": "^4.1.5",
|
|
"nyc": "^14.1.1",
|
|
"opn": "^5.4.0",
|
|
"postcss-cli": "^6.1.3",
|
|
"prettier": "^1.16.4",
|
|
"sinon": "^7.5.0",
|
|
"webpack": "^4.41.2",
|
|
"webpack-cli": "^3.3.9",
|
|
"webpack-dev-middleware": "^3.7.2",
|
|
"webpack-hot-middleware": "^2.25.0",
|
|
"whatwg-fetch": "^1.0.0",
|
|
"wrapper-webpack-plugin": "^2.1.0"
|
|
},
|
|
"dependencies": {
|
|
"classnames": "^2.2.6",
|
|
"deepmerge": "^4.2.0",
|
|
"fuse.js": "3.4.2",
|
|
"redux": "^4.0.4"
|
|
},
|
|
"npmName": "choices.js",
|
|
"npmFileMap": [
|
|
{
|
|
"files": [
|
|
"public/assets/scripts/*",
|
|
"public/assets/styles/*",
|
|
"src/icons/*"
|
|
]
|
|
}
|
|
],
|
|
"nyc": {
|
|
"include": [
|
|
"src/scripts/**/**/*.js"
|
|
],
|
|
"exclude": [
|
|
"src/scripts/**/**/*.test.js"
|
|
]
|
|
},
|
|
"bundlesize": [
|
|
{
|
|
"path": "public/assets/scripts/choices.min.js",
|
|
"maxSize": "20 kB"
|
|
},
|
|
{
|
|
"path": "public/assets/styles/choices.min.css",
|
|
"maxSize": "1.8 kB"
|
|
}
|
|
]
|
|
}
|