generator-reaction
Version:
Project generator for Reaction NodeJS projects. Built with Yeoman.
58 lines (57 loc) • 1.78 kB
JSON
{
"name": "@reactioncommerce/<%= projectName %>",
"version": "<%= projectVersion %>",
"description": "<%= projectDescription %>",
"homepage": "https://github.com/reactioncommerce/<%= projectName %>",
"main": "index.js",
"repository": "https://github.com/reactioncommerce/<%= projectName %>",
"author": {
"name": "<%= projectAuthor %>",
"email": "<%= projectAuthorEmail %>",
"url": "https://reactioncommerce.com"
},
"license": "GPL-3.0-only",
"private": <%= isNPMPrivate %>,
"scripts": {
"clean": "rimraf dist",
"build": "yarn run clean && babel src -d dist --copy-files",
"lint": "yarn run lint:eslint && yarn run lint:prettier",
"lint:eslint": "eslint --ignore-pattern 'dist/**/*.js' .",
"lint:prettier": "prettier-check 'src/**/*.js' 'test/**/*.js'",
"lint:fix": "yarn run lint:fix:eslint && yarn run lint:fix:prettier",
"lint:fix:eslint": "eslint --fix --ignore-pattern 'dist/**/*.js' .",
"lint:fix:prettier": "prettier --write 'src/**/*.js' 'test/**/*.js'",
"serve": "node dist/index.js",
"start": "nodemon --watch src --ext js,graphql --exec 'yarn run build && yarn run serve'",
"test": "jest --runInBand"
},
"babel": {
"presets": [
"env",
"stage-2"
]
},
"eslintConfig": {
"extends": [
"@reactioncommerce",
"prettier"
]
},
"eslintIgnore": ["dist", "reports"],
"jest": {
"collectCoverage": true,
"collectCoverageFrom": [
"**/*.{js,jsx}",
"!**/reports/**",
"!**/dist/**",
"!**/node_modules/**",
"!**/vendor/**"
],
"coverageDirectory": "reports/coverage",
"testResultsProcessor": "jest-junit"
},
"jest-junit": {
"output": "reports/junit/junit.xml",
"suiteName": "jest-tests"
}
}