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

Git based app blueprints #2103

Merged
merged 1 commit into from
Sep 28, 2014
Merged

Conversation

trek
Copy link
Contributor

@trek trek commented Sep 24, 2014

Extends ember new's --blueprint option to accept git remotes in either git@someservice.com:app-blueprint-test.git or https://someservice.com/trek/app-blueprint-test.git style git remote urls.

Not a huge fan of how this is tested, but short of mocking I can't think of any way to truly test without doing an actual git clone

@jgwhite
Copy link
Contributor

jgwhite commented Sep 24, 2014

NICE!

})
});
}).catch(function(err){
throw err;
Copy link
Contributor

Choose a reason for hiding this comment

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

why re-throw?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, just leftover from dev. It can go away.

@stefanpenner
Copy link
Contributor

looks great, mind adding some tests (so we don't accidentally regress)?

@@ -137,6 +137,7 @@
"rimraf": "^2.2.8",
"rsvp": "^3.0.13",
"semver": "^3.0.1",
"temp": "^0.8.1",
Copy link
Member

Choose a reason for hiding this comment

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

No real objection here, but can we consolidate on a single tmp library? We currently are using tmp-sync (testing) and quick-temp (used in broccoli processes)...

Copy link
Contributor

Choose a reason for hiding this comment

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

but why only have one? We should not discriminate, NPM is all about including all possible libraries for a task!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

quick-temp puts them in ./tmp but I don't want to pollute user space with temp folders for app generation. temp uses whatever the system identifies as a system-wide temp location and cleans up after itself. quick-temp makes sense for generation once the app exists, but I think it's icky before the app exists.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What we really need to do is write our own temp module that does exactly what we need...

@trek trek force-pushed the git-app-blueprints branch 4 times, most recently from 188a3d4 to 03f27aa Compare September 26, 2014 13:18
@trek trek added verify and removed in progress labels Sep 26, 2014
@trek trek self-assigned this Sep 26, 2014
@@ -16,6 +17,19 @@ var allowedWorkOptions = {
everywhere: true
};

// extend nopt to recognize 'gitUrl' as a type
nopt.typeDefs.gitUrl = {
Copy link
Contributor

Choose a reason for hiding this comment

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

neat!

@stefanpenner
Copy link
Contributor

@trek LGTM, let me know when it travis is happy: https://travis-ci.org/stefanpenner/ember-cli/builds/36371014

@trek trek force-pushed the git-app-blueprints branch 2 times, most recently from 53a4917 to 5db3b4f Compare September 27, 2014 14:18
@trek
Copy link
Contributor Author

trek commented Sep 27, 2014

Looks good now. Needed to add the git checkout to the slow tests: https://travis-ci.org/stefanpenner/ember-cli/builds/36435142

@trek trek force-pushed the git-app-blueprints branch 3 times, most recently from 37564dd to 032a9bf Compare September 28, 2014 15:39
Extends `ember new'`s --blueprint option to accept git remotes in
either git@someservice.com:app-blueprint-test.git or
https://someservice.com/trek/app-blueprint-test.git style git remote
urls.
@trek
Copy link
Contributor Author

trek commented Sep 28, 2014

Fixed a typo https://travis-ci.org/stefanpenner/ember-cli/builds/36496366 is still good

@trek trek added ready and removed verify labels Sep 28, 2014
stefanpenner added a commit that referenced this pull request Sep 28, 2014
@stefanpenner stefanpenner merged commit 0bb1bf1 into ember-cli:master Sep 28, 2014
@abuiles abuiles removed the ready label Sep 28, 2014
@trek trek deleted the git-app-blueprints branch September 28, 2014 20:37
@rwjblue rwjblue changed the title WIP: Git based app blueprints Git based app blueprints Oct 2, 2014
@trek trek removed their assignment Dec 21, 2014
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.

None yet

5 participants