Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

ci: Initial CircleCI config #6

Merged
merged 15 commits into from
Dec 4, 2018
Merged

ci: Initial CircleCI config #6

merged 15 commits into from
Dec 4, 2018

Conversation

darahayes
Copy link
Contributor

@darahayes darahayes commented Nov 30, 2018

@wtrocki sorry for such a noisy PR. Baiscally, this gives us a working CI (without tests for now). I had to do some things to get this working.

  • Individual packages do not have package-lock.json anymore.
  • The top level folder does have a package-lock.json
  • I've started using the file: specifiers for sibling dependencies.
  • I've put graphql and @types/graphql as dev dependencies at the top level. This stops us from needing to do any hoisting.

Result:

  • We have one top level package-lock.json that specifies all the deps
  • Don't need to do any weird hoisting which causes failures in CI
  • Individual packages do not have package-lock.json for production deps which is a good thing, however we do have a top level package-lock which ensures our dev dependencies are stable :)

@darahayes darahayes requested a review from wtrocki December 4, 2018 14:52
@@ -23,7 +23,7 @@
"test": "echo \"Error: run tests from root\" && exit 1"
},
"dependencies": {
"@aerogear/apollo-voyager-server": "1.0.0",
"@aerogear/apollo-voyager-server": "file:../apollo-voyager-server",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will cause havoc on release time, however this could be swapped by lerna for release time. What is the context/problem for this change. Just for my information

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seeing it recommended in many places. It basically reduces the dependency on using the lerna bootstrap command.

lerna/lerna#1449 (comment)
lerna/lerna#1462 (comment)

I am going to test the old way again and see can I get it working.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wtrocki managed to get the solution that doesn't require this.

filters:
tags:
only: /.*/
- npm_publish:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can reuse scripts done js-sdk to support this case. Not sure if we want to copy this along with docs now or it will be separate ticket

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- run:
name: compile
command: npm run compile
# - save_cache:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this has any value or are just experiments?

@darahayes darahayes merged commit 8907b82 into master Dec 4, 2018
@darahayes darahayes deleted the circleci branch December 4, 2018 16:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants