HackMan
HackMan copied to clipboard
Setup improvements
I've added a few things here:
-
An Xcode project generated from
swift package generate-xcodeprojto make development within Xcode easier. I'm not entirely familiar with the mechanics of swift package manager, and it may be more useful/efficient to add this to the readme for those looking to further develop the project. -
A bash runner, sourced from https://github.com/Meniny/Bash/blob/master/Bash/Bash.swift to execute commands such as
cdandxcodegeninstead of printing out instructions -
A
setupargument for thenewcommand to simplify creating a runnable project -
Adding
xcodegencommands to the end of scaffolding commands to regenerate the project after adding new scaffolds.
Personally, I've found these additions useful, but feel free to disregard and close this PR if it is not in alignment with the vision/UX you have for this project. If you'd like these features to be more discrete, I'd be happy to separate things into multiple PRs. Additionally, if you would like to add these features, I'd be happy to update the readme as well. Regardless, I think this is a cool project and could see it being useful with continued development. Thanks for the work you've done so far!
@aChase55 busy week, sorry for the delay! I checked out your pull request. first of all, thanks! :D
Setup
I like the idea of the "setup" -- friends also told me that something like that would be useful, as people tend to do the same stuff over and over again.
Maybe as hackman new APP_NAME --setup or hackman new APP_NAME --starter? That way it's more clear that it is an optional thing.
What does not work, is the "--coordinator" flag for the app_delegate.
I tried hackman new AwesomeApp setup --coordinator.
There are several ways to fix it — my preferred way would be to call the generators via Swift/Code. But that requires that the generators know where the project path is (without changing the directory). I think that can be solved with a new flag (like --source=PATH) that I can add in a new version. That would also help for future versions of hackman where a user could tell the generator what platforms he wants to support.
Another way could be to have another generator.
hackman g starter
What do you think?
Bash.swift dependency
I think Bash.swift is a bit too much for what it is used for. I would rather have not more code to maintain :thinking:
Xcode-Project
Swift Package Manager Projects work by drag and dropping the project-folder from the Finder onto Xcode. Xcode will resolve the dependencies automatically. What do I need to do, in order to make the project work in Xcode?
I get this error when I try to build with Xcode:
error: Build input file cannot be found: '/Users/devran/Projects/Swift/HackMan-Forks/aChase55/HackMan/.build/checkouts/PathKit/Sources/PathKit.swift' (in target 'PathKit' from project 'HackMan')