Skip to content

Instantly share code, notes, and snippets.

@sampart
Last active December 21, 2015 10:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sampart/6294354 to your computer and use it in GitHub Desktop.
Save sampart/6294354 to your computer and use it in GitHub Desktop.
Installing Jasmine with Composer.
{
"name": "My jasmine-enabled project",
"description": "A project which installs Jasmine into vendors",
"repositories": [
{
"type": "package",
"package": {
"name": "pivotal/jasmine",
"version": "1.3.1",
"dist": {
"type": "zip",
"url": "https://github.com/pivotal/jasmine/raw/master/dist/jasmine-standalone-1.3.1.zip",
"reference": "1.3.1"
}
}
}
],
"require": {
"pivotal/jasmine": "1.3.1"
}
}
@sampart
Copy link
Author

sampart commented Aug 21, 2013

The Jasmine Gem (https://github.com/pivotal/jasmine-gem) has an advantage over this approach in that the gem supports CI integration - it can programmatically read the spec runner's output using Selenium.

But for some situations, using Composer like this might be handy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment