-
-
Notifications
You must be signed in to change notification settings - Fork 364
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
Add first class Javascript/Typescript support to the Mill build tool #4022
Conversation
example/javascriptlib/basic/6-client-server-realistic/build.mill
Outdated
Show resolved
Hide resolved
5-client-server-hello/ 6-client-server-realistic/
… two modules, one a minimal JS server and one a minimal JS client, wired up and interacting
…ith two modules, one an Express server and one a React.js client, wired up and interacting, implementing a TodoMVC application
- running - bundling of a Node CLI tool - type checking - testing
- add npmDevDeps - use npmDeps & npmDevDeps - rename 1-simple mod qux to foo - mv jest dependencies into JestModule - use CreateReactAppModule
- fix compilation errors from prev merge
Seems like the client-server-realistic example still doesn't work??? |
example/javascriptlib/basic/4-multi-modules/library/src/library.ts
Outdated
Show resolved
Hide resolved
example/javascriptlib/basic/4-multi-modules/library/test/library.test.ts
Outdated
Show resolved
Hide resolved
example/javascriptlib/basic/5-client-server-hello/client/src/client.ts
Outdated
Show resolved
Hide resolved
example/javascriptlib/basic/6-client-server-realistic/client/src/test/App.test.tsx
Outdated
Show resolved
Hide resolved
def serverMod = server | ||
} | ||
|
||
// Documentation for mill.example.javascriptlib |
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.
If you got your todomvc example from somewhere on the internet, you should include a link to it
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.
Its the react version of the example defined in scalalib.web
import mill.* | ||
import os.* | ||
|
||
trait RsWithExpressModule extends TypeScriptModule { |
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.
Why do we need this? Why can't we just use the normal TypeScriptModule#run
that the server
module already comes with?
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.
moved to resources
- use simple example - use tsconfig-paths to resolve ts paths @ run
- rm RsWithExpressModule - use resources for client build
@monyedavid looks mostly good, just missing the link to where-ever you got the React.js TodoMVC example then I'll merge it |
Looks great, thanks @monyedavid . I'll close out the bounty using your existing bank details |
Related Issues
#3927
Checklist