class-privacy
Version:
Simple way to define private members on ES6 classes, keep their code clean.
69 lines (68 loc) • 2.09 kB
JSON
{
"name": "class-privacy",
"version": "1.1.1",
"description": "Simple way to define private members on ES6 classes, keep their code clean.",
"main": "dist/index.js",
"scripts": {
"lint": "cd ./lib && standard | snazzy",
"lint:fix": "cd ./lib && standard --fix | snazzy",
"lint:test": "npm run lint && npm test",
"test": "mocha --require @babel/register \"tests/**/*.tests.js\"",
"test:coverage": "cross-env BABEL_ENV= NODE_ENV=test nyc mocha --require @babel/register \"tests/**/*.tests.js\"",
"test:watch": "npm test -- --watch",
"docs": "jsdoc --readme README.md ./lib/*.js -d ./docs && jsdoc2md ./lib/index.js > ./api.md",
"build": "rm -rf ./dist/** && babel lib --out-dir ./dist --ignore *.tests.js --source-maps",
"build:min": "minify ./dist/index.js --out-file ./dist/index.min.js --mangle.keepFnName --mangle.keepClassName --",
"build:full": "npm run docs && npm run build && npm run build:min",
"build:ci": "npm run lint && npm run test && npm run build:full"
},
"babel": {
"presets": [
"@babel/env"
],
"env": {
"test": {
"plugins": [
"istanbul"
]
}
}
},
"nyc": {
"sourceMap": false,
"instrument": false
},
"targets": "> 0.25%, not dead",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/jankapunkt/npm-package-template.git"
},
"keywords": [
"awesome",
"cool",
"great",
"swag"
],
"author": "Jan Küster",
"license": "MIT",
"bugs": {
"url": "https://github.com/jankapunkt/js-class-privacy"
},
"homepage": "https://github.com/jankapunkt/js-class-privacy#readme",
"devDependencies": {
"@babel/cli": "^7.10.5",
"@babel/core": "^7.7.7",
"@babel/preset-env": "^7.7.7",
"@babel/register": "^7.7.7",
"babel-minify": "^0.5.1",
"babel-plugin-istanbul": "^6.0.0",
"chai": "^4.2.0",
"cross-env": "^6.0.3",
"jsdoc": "^3.6.3",
"jsdoc-to-markdown": "^5.0.3",
"mocha": "^8.0.1",
"nyc": "^15.0.0",
"snazzy": "^8.0.0",
"standard": "^14.3.1"
}
}