Skip to content

Commit

Permalink
Dev environment updates
Browse files Browse the repository at this point in the history
  • Loading branch information
spautz committed Nov 3, 2020
1 parent 0201a65 commit 46f4e88
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
@@ -1 +1 @@
12.14.1
14.15.0
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -21,7 +21,7 @@
},
"scripts": {
"____ LIFECYCLE HOOKS _______________________________________________": "",
"prepare": "lerna bootstrap && yon run packages:prepare",
"prepare": "yon run packages:prepare",
"pretest": "yon run test:clean",
"____ INTEGRATION ___________________________________________________": "",
"clean": "yon run storybook:clean && yon run test:clean && rimraf ./node_modules/.cache && yon run packages:clean",
Expand All @@ -42,6 +42,7 @@
"packages:build": "lerna run build",
"packages:release:changelog": "lerna run release:changelog -- ",
"____ INDIVIDUAL COMMANDS ___________________________________________": "",
"bootstrap": "lerna bootstrap",
"demo:prepare": "yarn install && yarn build-storybook",
"demo:deploy": "gh-pages -d ./storybook-static",
"format": "prettier --write .",
Expand Down
5 changes: 4 additions & 1 deletion packages/dev-helpers/tsconfig.json
@@ -1,9 +1,12 @@
{
"extends": "../../tsconfig",

"compilerOptions": {
"rootDir": "./src",
"baseUrl": "./"
},
"include": ["./src", "./tests", "./stories"],
// The "include" for packages is specifically for build: the package-level typecheck doesn't check tests/
// The "include" for the root is for typechecking the entire project (but it doesn't affect the build)
"include": ["./src"],
"exclude": ["node_modules"]
}
4 changes: 3 additions & 1 deletion packages/react-hibernate/tsconfig.json
Expand Up @@ -5,6 +5,8 @@
"rootDir": "./src",
"baseUrl": "./"
},
"include": ["./src", "./tests", "./stories"],
// The "include" for packages is specifically for build: the package-level typecheck doesn't check tests/
// The "include" for the root is for typechecking the entire project (but it doesn't affect the build)
"include": ["./src"],
"exclude": ["node_modules"]
}
4 changes: 3 additions & 1 deletion packages/react-pauseable-containers/tsconfig.json
Expand Up @@ -5,6 +5,8 @@
"rootDir": "./src",
"baseUrl": "./"
},
"include": ["./src", "./tests", "./stories"],
// The "include" for packages is specifically for build: the package-level typecheck doesn't check tests/
// The "include" for the root is for typechecking the entire project (but it doesn't affect the build)
"include": ["./src"],
"exclude": ["node_modules"]
}
4 changes: 3 additions & 1 deletion packages/react-router-hibernate/tsconfig.json
Expand Up @@ -5,6 +5,8 @@
"rootDir": "./src",
"baseUrl": "./"
},
"include": ["./src", "./tests", "./stories"],
// The "include" for packages is specifically for build: the package-level typecheck doesn't check tests/
// The "include" for the root is for typechecking the entire project (but it doesn't affect the build)
"include": ["./src"],
"exclude": ["node_modules"]
}
4 changes: 3 additions & 1 deletion packages/redux-pauseable-store/tsconfig.json
Expand Up @@ -5,6 +5,8 @@
"rootDir": "./src",
"baseUrl": "./"
},
"include": ["./src", "./tests", "./stories"],
// The "include" for packages is specifically for build: the package-level typecheck doesn't check tests/
// The "include" for the root is for typechecking the entire project (but it doesn't affect the build)
"include": ["./src"],
"exclude": ["node_modules"]
}
6 changes: 4 additions & 2 deletions scripts/build-everything.sh 100644 → 100755
Expand Up @@ -15,8 +15,10 @@ run_command "./scripts/check-environment.sh"
run_command "yarn install"

###################################################################################################
# Run all read-write scripts and read-only scripts. This is overkill and duplicates some work, but
# also helps catch intermittent errors. Suitable for running before lunch or teatime.
# Run all read-write scripts and read-only scripts. This is overkill and duplicates a lot of work,
# but also helps catch intermittent errors. Suitable for running before lunch or teatime.

run_command "yarn all"
run_command "yarn all:readonly"
run_command "yarn packages:all"
run_command "yarn packages:all:readonly"
Empty file modified scripts/check-environment.sh 100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions scripts/clean-everything.sh 100644 → 100755
Expand Up @@ -12,11 +12,11 @@ source scripts/helpers.sh
# Halt running processes and local servers

if command_exists killall; then
run_command killall node
run_command killall -v node || true
fi

if command_exists xcrun; then
run_command xcrun simctl shutdown all
run_command xcrun simctl shutdown all || true
fi

##################################################################################################
Expand Down
Empty file modified scripts/full-ci.sh 100644 → 100755
Empty file.
2 changes: 2 additions & 0 deletions tsconfig.json
Expand Up @@ -30,6 +30,8 @@
/* Advanced Options */
"forceConsistentCasingInFileNames": true
},
// The "include" for the root is for typechecking the entire project (it includes directories like "tests" which
// the package-level tsconfigs don't include)
"include": ["packages/*/src", "packages/*/tests", "packages/*/stories"],
"exclude": ["node_modules"]
}

0 comments on commit 46f4e88

Please sign in to comment.