Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/searls/jasmine-archetype
A Maven 2 archetype for getting started with Jasmine and the jasmine-maven-plugin
https://github.com/searls/jasmine-archetype
Last synced: 3 months ago
JSON representation
A Maven 2 archetype for getting started with Jasmine and the jasmine-maven-plugin
- Host: GitHub
- URL: https://github.com/searls/jasmine-archetype
- Owner: searls
- License: other
- Created: 2010-09-06T17:35:28.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2015-08-10T05:03:34.000Z (over 9 years ago)
- Last Synced: 2024-10-11T07:10:23.188Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 212 KB
- Stars: 6
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE.txt
Awesome Lists containing this project
README
jasmine-archetype
=================
**A Maven Archetype for getting started with Jasmine JavaScript testing**This archetype is designed to get you up-and-running quickly with the [jasmine-maven-plugin](http://github.com/searls/jasmine-maven-plugin).
Usage
-----Create a new Maven project that's set up to use jasmine-maven-plugin, complete with example specs.
```sh
mvn archetype:generate \
-DarchetypeGroupId=com.github.searls \
-DarchetypeArtifactId=jasmine-archetype \
-DarchetypeVersion=RELEASE \
-DgroupId=com.acme \
-DartifactId=my-jasmine-project \
-Dversion=0.0.1-SNAPSHOT
-DjasminePluginVersion=RELEASE
```If you're on Windows or if your shell doesn't like the newlines above, here's the same command in a single line:
```cmd
mvn archetype:generate -DarchetypeGroupId=com.github.searls -DarchetypeArtifactId=jasmine-archetype -DarchetypeVersion=RELEASE -DgroupId=com.acme -DartifactId=my-jasmine-project -Dversion=0.0.1-SNAPSHOT -DjasminePluginVersion=RELEASE
```This will create a project that looks something like this:
|-- pom.xml
`-- src
|-- main
| `-- javascript
| `-- element_mover.js
`-- test
`-- javascript
`-- element_mover_spec.jsTo build the project and verify the Jasmine specs are executing, switch to the new project directory and start the server:
cd my-jasmine-project && mvn jasmine:bdd
Then you should be able to go to http://localhost:8234 in a browser and watch your specs execute.
Adding the archetype catalog to m2Eclipse
-----------------------------------------To create a new project from this archetype from within Eclipse, its archetype catalog will need to be added. The process goes something like this (and hardly seems worth the effort over doing it from command line):
1. File -> New Project... -> Maven Project
2. Click 'Next'
3. Select the jasmine-archetype and continue by clicking 'Next'
4. Make yourself a sandwich or otherwise reward yourself