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

Jiden/create generator sprotty 257 #342

Conversation

jonah-iden
Copy link
Contributor

@jonah-iden jonah-iden commented Feb 14, 2023

resolves #257
this implements a basic version of a yeoman generator for sprotty.
The example application this generator creats is based on the getting started example from gfontorbe/sprotty-website#1

How to test

  1. yarn
  2. yarn build
  3. npm link
  4. yarn run run

generated app now runs

Signed-off-by: Jonah Iden <[email protected]>
Signed-off-by: Jonah Iden <[email protected]>
Copy link
Contributor

@spoenemann spoenemann left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution!

packages/generator-sprotty/package.json Outdated Show resolved Hide resolved
packages/generator-sprotty/package.json Outdated Show resolved Hide resolved
packages/generator-sprotty/package.json Show resolved Hide resolved
packages/generator-sprotty/package.json Outdated Show resolved Hide resolved
packages/generator-sprotty/package.json Outdated Show resolved Hide resolved
packages/generator-sprotty/src/index.ts Show resolved Hide resolved
packages/generator-sprotty/src/index.ts Outdated Show resolved Hide resolved
packages/generator-sprotty/src/index.ts Outdated Show resolved Hide resolved
},
"devDependencies": {
"typescript": "4.9.5",
"esbuild": "^0.17.8"
Copy link
Contributor

Choose a reason for hiding this comment

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

Shall we add http-server and a start script?

Copy link
Contributor Author

@jonah-iden jonah-iden Feb 15, 2023

Choose a reason for hiding this comment

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

im not sure if we should. The example works with just opening the html file so i don't really see the need to add more dependencies that the user needs to remove later again when he wants to use the project for something else

Signed-off-by: Jonah Iden <[email protected]>
Copy link
Contributor

@gfontorbe gfontorbe left a comment

Choose a reason for hiding this comment

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

I don't think the .gitignore should be added to the package. At least not with its current content

@jonah-iden
Copy link
Contributor Author

do you mean because of the "test-temp/"?
I would definitetly leave app/ in there since thats the build output

Signed-off-by: Jonah Iden <[email protected]>
packages/generator-sprotty/package.json Outdated Show resolved Hide resolved
packages/generator-sprotty/src/index.ts Outdated Show resolved Hide resolved
packages/generator-sprotty/src/index.ts Outdated Show resolved Hide resolved
packages/generator-sprotty/src/index.ts Outdated Show resolved Hide resolved
nicer formatted output for generator,
less agressiv colors for example,
fixed indentation,
rinraf instead of shx

Signed-off-by: Jonah Iden <[email protected]>
Copy link
Contributor

@spoenemann spoenemann left a comment

Choose a reason for hiding this comment

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

Thank you!

@spoenemann spoenemann merged commit 60db4ac into eclipse-sprotty:master Feb 27, 2023
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.

Create generator-sprotty package for faster project creation
3 participants