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

Can't force rebuild app #114

Open
dijonkitchen opened this issue Dec 25, 2019 · 2 comments
Open

Can't force rebuild app #114

dijonkitchen opened this issue Dec 25, 2019 · 2 comments

Comments

@dijonkitchen
Copy link

dijonkitchen commented Dec 25, 2019

When you try to rebuild an app with the same name, you get the following message:

$ ./bin/app dijonkitchen/test-edge-app
Output from locating template:

Generating fresh 'clj new' edge.app-template project into dijonkitchen.test-edge-app.
$ ./bin/app dijonkitchen/test-edge-app
Output from locating template:

Generating fresh 'clj new' edge.app-template project into dijonkitchen.test-edge-app.
Could not create directory dijonkitchen.test-edge-app. Maybe it already exists?  Use -f / --force to overwrite it.

But when you try it with the -f or --force flags, it doesn't recognize it:

$ ./bin/app dijonkitchen/test-edge-app -f
Output from locating template:

Unknown option '-f' 

Use case would be for changing an existing app to include the --cljs or --sass options like so:

$ ./bin/app dijonkitchen/test-edge-app --cljs
@SevereOverfl0w
Copy link
Contributor

This isn't supported. To upgrade you must do it manually, although I've always intended to document that process.

I think -f message comes from the underlying template library, but the arguments aren't being passed to that library. I'll have to look into the available options here.

@dijonkitchen
Copy link
Author

This isn't supported. To upgrade you must do it manually, although I've always intended to document that process.

This is surprising. I thought part of the value of Edge was that you could "update at any time."

Don't get stuck on an old version, update at any time. But the Edge code isn't hidden away, it's right there in your project to be modified. Unlike a traditional framework, Edge flexes to your needs.
-- https://juxt.pro/edge/

I think -f message comes from the underlying template library, but the arguments aren't being passed to that library. I'll have to look into the available options here.

Yeah, I saw that it's using clj-new; can't tell if it's just not the latest version: https://github.com/seancorfield/clj-new#general-usage

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

No branches or pull requests

2 participants