Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the dependencies #27

Merged
merged 1 commit into from
Mar 16, 2021
Merged

Update the dependencies #27

merged 1 commit into from
Mar 16, 2021

Conversation

celian-garcia
Copy link
Contributor

No description provided.

@celian-garcia celian-garcia force-pushed the update_dependencies branch 2 times, most recently from 9027cce to c9e0ffb Compare March 15, 2021 14:51
Signed-off-by: Célian Garcia <celian.garcia@amadeus.com>
Copy link
Contributor

@Nexucis Nexucis left a comment

Choose a reason for hiding this comment

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

looks good for me.
I trust you on the fact the angular example is working. I think this lib would require to take some time to refresh it and to finally implement / close the different issue opened.

@@ -43,6 +43,7 @@ cd examples/<example-folder>
npm install
npm link monaco-promql
npm start
# Then modify manually the monaco-promql import :/ "monaco-promql" -> "monaco-promql/lib"
Copy link
Contributor

Choose a reason for hiding this comment

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

that would be great actually to take some time to implement the issue #10. It would simplify a lot this process.
And this is something already done in codemirror-promql. So we can just (almost) copy and past what is there.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Checking the repo I'm still not sure how you make npm link work, is it using build.sh and then cd lib && npm link ?

Moreover it seems that you are using a slightly outdated version of your project in your example normal ? 0.11.0 instead of 0.12.0

Copy link
Contributor

Choose a reason for hiding this comment

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

oh no for the development I'm using a vanilla that doesn't require /depend of any TS framework.

It's in the /app folder actually. So no need of creating a link a so on.

Copy link
Contributor Author

@celian-garcia celian-garcia Mar 16, 2021

Choose a reason for hiding this comment

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

ah ... in that particular case I wanted to make sure that my examples was always working :/ so I need to npm link it because it is not released. And I think that even if I create a vanilla example which don't need npm link, I'll still want to make this check everytime on other examples.

I will try what I said, if at least I can get rid of the final ugly manual step, it's acceptable to me.

Copy link
Contributor

Choose a reason for hiding this comment

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

well also you can said, since you are independ of a TS framework, then for sure it will work with Angular or with React.
Integration can be a bit tricky for some cases for sure, but as long as you don't depend of any lib from Angular / React and so you don't depend on a TS framework, then integration is defacto possible.

That's why you are creating a lib, and you won't test every possible framework. It's a good things to show how to integrate it. But your lib shouldn't be driven by how Angular is working. That's why it's a bit better to have a vanilla app instead to ease the development of the lib.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I spent so much time to make it work with Angular that I just wanted to provide more support than "hey look the config is that, by the way it is a nightmare to integrate, wish you all the best !"

Generally speaking I agree with you though. For example, react example was much easier and would be okay to even be removed or not as maintained as Angular example.

@Nexucis Nexucis merged commit 665788a into master Mar 16, 2021
@Nexucis Nexucis deleted the update_dependencies branch March 16, 2021 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants