Skip to content

Commit

Permalink
fix: change lint to posttest
Browse files Browse the repository at this point in the history
  • Loading branch information
shimks committed May 25, 2018
1 parent dba531f commit f3f0a19
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion examples/hello-world/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"build:current": "lb-tsc",
"build:dist8": "lb-tsc es2017",
"build:dist10": "lb-tsc es2018",
"build:watch": "lb-tsc --watch",
"clean": "lb-clean *example-hello-world*.tgz dist* package api-docs",
"verify": "npm pack && tar xf *example-hello-world*.tgz && tree package && npm run clean",
"lint": "npm run prettier:check && npm run tslint",
Expand All @@ -25,7 +26,7 @@
"pretest": "npm run clean && npm run build:current",
"test": "lb-mocha --allow-console-logs \"DIST/test\"",
"posttest": "npm run lint",
"test:dev": "lb-mocha DIST/test/**/*.js && npm run lint",
"test:dev": "lb-mocha --allow-console-logs DIST/test/**/*.js && npm run posttest",
"prestart": "npm run build:current",
"start": "node .",
"prepublishOnly": "npm run test"
Expand Down
2 changes: 1 addition & 1 deletion examples/log-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"pretest": "npm run clean && npm run build:current",
"test": "lb-mocha \"DIST/test/unit/**/*.js\" \"DIST/test/acceptance/**/*.js\"",
"posttest": "npm run lint",
"test:dev": "lb-mocha DIST/test/**/*.js && npm run lint",
"test:dev": "lb-mocha --allow-console-logs DIST/test/**/*.js && npm run posttest",
"verify": "npm pack && tar xf *example-log-extension*.tgz && tree package && npm run clean"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion examples/rpc-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"pretest": "npm run clean && npm run build:current",
"test": "lb-mocha DIST/test",
"posttest": "npm run lint",
"test:dev": "lb-mocha DIST/test/**/*.js && npm run lint",
"test:dev": "lb-mocha --allow-console-logs DIST/test/**/*.js && npm run posttest",
"prestart": "npm run build:current",
"start": "node ."
},
Expand Down
2 changes: 1 addition & 1 deletion examples/todo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"tslint:fix": "npm run tslint -- --fix",
"pretest": "npm run build:current",
"test": "lb-mocha \"DIST/test/unit/**/*.js\" \"DIST/test/acceptance/**/*.js\"",
"test:dev": "lb-mocha DIST/test/**/*.js && npm run lint",
"test:dev": "lb-mocha --allow-console-logs DIST/test/**/*.js && npm run posttest",
"unit": "lb-mocha \"DIST/test/unit/**/*.js\"",
"verify": "npm pack && tar xf loopback-todo*.tgz && tree package && npm run clean",
"prestart": "npm run build:current",
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/generators/project/templates/package.json.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
"posttest": "npm run lint",
<% } -%>
<% if (project.mocha && (project.prettier || project.tslint)) { -%>
"test:dev": "lb-mocha DIST/test/**/*.js && npm run lint",
"test:dev": "lb-mocha --allow-console-logs DIST/test/**/*.js && npm run posttest",
<% } else if (project.mocha) { -%>
"test:dev": "lb-mocha DIST/test/**/*.js",
"test:dev": "lb-mocha --allow-console-logs DIST/test/**/*.js",
<% } -%>
<% if (project.projectType === 'application') { -%>
"prestart": "npm run build:current",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"posttest": "npm run lint",
<% } -%>
<% if (project.mocha && (project.prettier || project.tslint)) { -%>
"test:dev": "mocha dist/test/**/*.js && npm run lint",
"test:dev": "mocha dist/test/**/*.js && npm run posttest",
<% } else if (project.mocha) { -%>
"test:dev": "mocha dist/test/**/*.js",
<% } -%>
Expand Down

0 comments on commit f3f0a19

Please sign in to comment.