Skip to content

Commit

Permalink
fix(rush): add appropriate path-mapping, add sourcemaps for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
danwbyrne committed Nov 19, 2019
1 parent 2058dc7 commit aa716dd
Show file tree
Hide file tree
Showing 68 changed files with 227 additions and 210 deletions.
7 changes: 4 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ aliases:
name: Changelog
command: node common/scripts/install-run-rush.js change -v
when: always
- run:
name: Lint
command: node common/scripts/install-run-rush.js lint -p 8
when: always
- run:
name: Prettier
command: node common/scripts/install-run-rush.js nit
Expand All @@ -58,9 +62,6 @@ aliases:
- run:
name: Build
command: node common/scripts/install-run-rush.js rebuild
- run:
name: Lint
command: node common/scripts/install-run-rush.js lint -p 8
- persist_to_workspace:
root: ~/neo-one
paths:
Expand Down
7 changes: 5 additions & 2 deletions .huskyrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
const path = require('path');

const basePath = path.resolve(__dirname, '.git');

module.exports = {
hooks: {
'pre-commit':
'rush check && rush lint:staged -p 16 && rush tsc -p 16 && rush change -v',
'pre-commit': `rush check && rush lint:staged -p 16 && rush build && GIT_DIR=${basePath} rush change -v`,
'post-merge': 'rush install',
'post-rewrite': 'rush install',
'post-checkout': 'rush install',
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"deepscan.enable": true,
"files.associations": {
"[Dd]ockerfile*": "dockerfile",
"docker-compose*": "yaml"
"docker-compose*": "yaml",
"*.d.ts.map": "json"
}
}
6 changes: 6 additions & 0 deletions common/config/rush/command-line.json
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,12 @@
"description": "enables cleaning of lib/* and rush/* directories",
"associatedCommands": ["clean"]
},
{
"parameterKind": "flag",
"longName": "--detect-open-handles",
"description": "pass through of jest's detectOpenHandle flag",
"associatedCommands": ["test", "test-ci", "e2e", "e2e-ci"]
},
{
"parameterKind": "string",
"longName": "--test-path-pattern",
Expand Down
Loading

0 comments on commit aa716dd

Please sign in to comment.