-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
📦 Switch to Yarn workspaces; overhaul build system (#1741)
* Switch to yarn workspaces, upgrade some dev dependencies * [core] fix typescript compilation * Remove require-shim.d.ts files, we now use @types/node * [table] fix typescript compilation * update tsconfig.json files * [docs] fix typescript compilation * [labs] fix typescript compilation * [core] fix some tests * bump to webpack 3! remove localResolve support -- not necessary with hoisting * fix ts-loader errors * clean yarn.lock * massage package.json versions to hoist as much as possible * upgrade site-landing and table preview to webpack 3 * get karma webpacking * karma serves/includes correct files * ⭐ test compile errors now fail the build! * fix core and datetime tests * fix webpack-watch * quick ignore ContextMenu component cuz it's untestable (not exported) * bump range slider test coverage * Fix Table test typings * Comment out broken tests :/ * Refactor build system, remove Gulp (#1786) * Remove Gulpfile.js
- Loading branch information
Showing
338 changed files
with
5,947 additions
and
13,024 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
workspace-experimental true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,8 +18,7 @@ install dependencies: | |
```sh | ||
git clone [email protected]:<username>/blueprint.git # using ssh | ||
cd blueprint | ||
npm install | ||
npm run bootstrap | ||
yarn | ||
``` | ||
|
||
## Developing | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,51 @@ | ||
machine: | ||
pre: | ||
- mkdir ~/yarn | ||
environment: | ||
PATH: $PATH:$HOME/yarn/bin:$HOME/$CIRCLE_PROJECT_REPONAME/node_modules/.bin:$HOME/$CIRCLE_PROJECT_REPONAME/scripts | ||
YARN_VERSION: 1.2.1 | ||
node: | ||
version: 8.5.0 | ||
|
||
general: | ||
artifacts: | ||
# compiled assets for each package | ||
- packages/core/dist | ||
- packages/datetime/dist | ||
- packages/docs/dist | ||
- packages/labs/dist | ||
- packages/site-docs/dist | ||
- packages/site-landing/dist | ||
- packages/docs-app/dist | ||
- packages/landing-app/dist | ||
- packages/table/dist | ||
# code coverage reports | ||
- packages/core/coverage | ||
- packages/datetime/coverage | ||
- packages/table/coverage | ||
# preview pages | ||
- packages/table/preview | ||
# GH Pages content | ||
- docs | ||
|
||
machine: | ||
pre: | ||
- mkdir ~/yarn | ||
environment: | ||
YARN_VERSION: 0.28.4 | ||
PATH: $PATH:$HOME/$CIRCLE_PROJECT_REPONAME/node_modules/.bin | ||
node: | ||
version: 7.10.0 | ||
|
||
dependencies: | ||
cache_directories: | ||
- ~/yarn | ||
- ~/.cache/yarn | ||
- ~/$CIRCLE_PROJECT_REPONAME/packages/core/node_modules | ||
- ~/$CIRCLE_PROJECT_REPONAME/packages/datetime/node_modules | ||
- ~/$CIRCLE_PROJECT_REPONAME/packages/docs/node_modules | ||
- ~/$CIRCLE_PROJECT_REPONAME/packages/labs/node_modules | ||
- ~/$CIRCLE_PROJECT_REPONAME/packages/site-docs/node_modules | ||
- ~/$CIRCLE_PROJECT_REPONAME/packages/site-landing/node_modules | ||
- ~/$CIRCLE_PROJECT_REPONAME/packages/table/node_modules | ||
# non-zero exit codes in `dependencies` group will fail the build early | ||
# so these following commands will block the build and prevent tests | ||
override: | ||
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version $YARN_VERSION | ||
- yarn install --pure-lockfile | ||
- echo "Checking if yarn.lock changed..." && git diff --exit-code | ||
- yarn bootstrap | ||
- yarn build:gulp | ||
- yarn | ||
- echo "Checking if lockfiles changed..." && git diff --exit-code | ||
- npm rebuild node-sass | ||
- yarn compile-libs | ||
|
||
test: | ||
override: | ||
- gulp check | ||
- gulp test | ||
- case $CIRCLE_NODE_INDEX in 0) yarn dist ;; 1) yarn test ;; 2) yarn lint ;; esac: | ||
parallel: true | ||
|
||
deployment: | ||
preview: | ||
branch: /.*/ | ||
commands: | ||
- ./scripts/preview.sh | ||
- build-docs-artifacts | ||
- submit-preview-comment | ||
npm: | ||
tag: /release-.*/ | ||
owner: palantir | ||
commands: | ||
- ./scripts/npmPublish.sh | ||
- publish-npm-semver-tagged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
858ceb1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📦 Switch to Yarn workspaces; overhaul build system (#1741)
Preview: documentation
Coverage: core | datetime