@_nu/cli
Version:
🛠️ Standard Tooling for nu-system component development
97 lines (96 loc) • 2.85 kB
JSON
{
"name": "@_nu/react-<%= componentName %>",
"version": "0.0.1",
"description": "react <%= componentName %>",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"module": "es/index.js",
"author": "<%= author %>",
"license": "MIT",
"homepage": "https://github.com/nu-system/react-<%= componentName %>",
"bugs": {
"url": "https://github.com/nu-system/react-<%= componentName %>/issues"
},
"repository": {
"type": "git",
"url": "git@github.com:nu-system/react-<%= componentName %>.git"
},
"files": <%- pkgFiles %>,
"scripts": {
"build": "nwb build-react-component",
"clean": "nwb clean-module && nwb clean-demo",
"start": "nwb serve-react-demo",
"test": "jest",
"test:coverage": "jest --coverage",
"test:watch": "jest --server",
"pub": "npm publish --access public",
"log": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
"commitizenInit": "commitizen init cz-conventional-changelog --yarn --dev --exact",
"prettier": "prettier --write '*.{js,jsx,tsx,ts,less,css,md,json}'",
"lint": "eslint '*.{js,jsx,mjs,ts,tsx}' --fix",
"cz": "git add . && git cz",
"prepublishOnly": "lint-staged && npm run build && cp src/index.d.ts lib && git add . && git commit -am'feat: publish' && git push"
},
"dependencies": {
"prop-types": "^15.7.2"
},
"peerDependencies": {
"react": "16.x"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -e $HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
"*.{js,jsx,mjs,ts,tsx}": [
"node_modules/.bin/prettier --write",
"node_modules/.bin/eslint --fix",
"git add ."
],
"*.{css,scss,less,json,html,md,markdown}": [
"node_modules/.bin/prettier --write",
"git add ."
]
},
"devDependencies": {
"@commitlint/cli": "^8.3.5",
"@commitlint/config-conventional": "^8.3.4",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.2",
"jest": "^25.1.0",
"babel-jest": "^25.1.0",
"@babel/preset-env": "^7.8.7",
"@babel/preset-react": "^7.8.3",
"react-test-renderer": "^16.13.1",
"conventional-changelog-cli": "^2.0.23",
"cz-conventional-changelog": "3.0.2",
"nwb": "0.23.x",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"husky": "^4.2.5",
"lint-staged": "^10.1.3",
"prettier": "^1.19.1",
"eslint": "^6.8.0",
"eslint-config-airbnb": "^18.1.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.19.0",
"eslint-plugin-react-hooks": "^2.5.1"
},
"keywords": [
"react-component",
"ui",
"no-ui",
"nu-system",
"react",
"react-ui",
"<%= componentName %>"
],
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}