|
1 | 1 | {
|
2 | 2 | "name": "express-postgresql-sequelize-es6-rest-api",
|
3 | 3 | "version": "0.0.1",
|
4 |
| - "description": |
5 |
| - "A Boilerplate application for building REST APIs using express, sequelize in ES6 with code coverage", |
| 4 | + "description": "A Boilerplate application for building REST APIs using express, sequelize in ES6 with code coverage", |
6 | 5 | "author": "Gaurav Porwal <[email protected]>",
|
7 | 6 | "main": "index.js",
|
8 | 7 | "private": false,
|
|
18 | 17 | "lint": "esw *.js server config --color",
|
19 | 18 | "lint:watch": "yarn lint -- --watch",
|
20 | 19 | "beautify": "es-beautifier -u -c .eslintrc.js *.js server config",
|
21 |
| - "test": |
22 |
| - "cross-env NODE_ENV=test ./node_modules/.bin/mocha --ui bdd --reporter spec --colors --compilers js:babel-core/register server/tests --recursive", |
| 20 | + "test": "cross-env NODE_ENV=test, PG_DB=test-express-postgresql-sequelize-es6-rest-api ./node_modules/.bin/mocha --ui bdd --reporter spec --colors --compilers js:babel-core/register server/tests --recursive", |
23 | 21 | "test:watch": "yarn test -- --watch",
|
24 |
| - "test:coverage": |
25 |
| - "cross-env NODE_ENV=test ./node_modules/.bin/istanbul cover _mocha -- --ui bdd --reporter spec --colors --compilers js:babel-core/register server/tests --recursive", |
| 22 | + "test:coverage": "cross-env NODE_ENV=test ./node_modules/.bin/istanbul cover _mocha -- --ui bdd --reporter spec --colors --compilers js:babel-core/register server/tests --recursive", |
26 | 23 | "test:check-coverage": "yarn test:coverage && istanbul check-coverage",
|
27 | 24 | "report-coverage": "coveralls < ./coverage/lcov.info"
|
28 | 25 | },
|
|
79 | 76 | "babel-core": "6.26.0",
|
80 | 77 | "babel-plugin-add-module-exports": "0.2.1",
|
81 | 78 | "babel-preset-env": "1.6.1",
|
| 79 | + "babel-preset-es2017": "6.24.1", |
82 | 80 | "babel-preset-stage-2": "6.24.1",
|
83 | 81 | "chai": "4.1.2",
|
84 | 82 | "commitizen": "2.9.6",
|
|
99 | 97 | "validate-commit-msg": "^2.6.1"
|
100 | 98 | },
|
101 | 99 | "babel": {
|
102 |
| - "presets": ["env", "stage-2"], |
103 |
| - "plugins": ["add-module-exports"] |
| 100 | + "presets": [ |
| 101 | + "env", |
| 102 | + "es2017", |
| 103 | + "stage-2" |
| 104 | + ], |
| 105 | + "plugins": [ |
| 106 | + "add-module-exports" |
| 107 | + ] |
104 | 108 | },
|
105 | 109 | "license": "MIT",
|
106 | 110 | "config": {
|
|
0 commit comments