Repository navigation
Conversation
CompuIves
left a comment
There was a problem hiding this comment.
This is really well done. This is the first community template and I'm super impressed that you managed to pull this off!
Are you interested in documenting what were the difficulties with adding the template, and are you interested in writing something about this in the future in the development documentation? (Or just as a .md file in this repo). I understand if you don't have the time, this is already such a big contribution!
Could you add the specified line (camelizedData.data.template = '@dojo/cli-create-app';) for now? That way I can test it directly from staging. (http://pr665.cs.lbogdan.tk/s/github/dojo/dojo-codesandbox-template)
| } | ||
|
|
||
| setupTranspilationListener() { | ||
| listen(({ type, code, path }) => { |
There was a problem hiding this comment.
This is reaaaally nice! I love that we now have the power of templates to define type definitions.
| let result = insertCss(id, css); | ||
| result += `\nmodule.exports=${JSON.stringify(exportTokens)};`; | ||
|
|
||
| dispatch({ type: 'add-extra-lib', path, code: classesToDefinition(exportTokens) }); |
|
@CompuIves Wow, thanks for the feedback! I went ahead and pushed up a commit with the API override for now so you should be able to test on staging. I would be happy to document my learning and some of the difficulties! I'll start writing down my thoughts after work tonight. |
|
I made some changes in |
- add dojo2 template - add temporary project as template to load (github) - add type definition creation to styles transpiler - add dojo 2 to home page - add default loading of dojo template src/index.html and src/main.css
|
@CompuIves I rebased off the latest Also, I am still working on a write-up about adding a new template. I should have it by this weekend at the latest. |
|
@CompuIves any update on when this might land? We're very close to releasing Dojo 2 and would like to mention this in the blog post announcing the Dojo 2 release. Thanks! |
|
@dylans I will have more time for CodeSandbox from tomorrow. So I'm either planning on releasing it today or tomorrow, sorry for the delay! |
|
Whoop! It's in now! |
What kind of change does this PR introduce?
This PR adds a new template for Dojo 2.
What is the current behavior?
This is a new template, requested and described in #447
What is the new behavior?
Dojo 2 template
Checklist:
Note: This has a backend change in order to set the correct template value coming from the API. To work around this in development, I added the following line to packages/app/src/app/store/providers/Api.js: