Created
August 27, 2011 11:46
-
-
Save kevinetienne/1175290 to your computer and use it in GitHub Desktop.
use maven and javascript-quickstart archetype
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# js-quickstart.sh: creates a js project with maven and Jasmine | |
usage(){ | |
echo "Usage: $0 com.company.id folder" | |
echo "Example: $0 com.example.quickstart quickstart" | |
exit 1 | |
} | |
# invokes usage if com.company.id and folder not supplied | |
[[ $# != 2 ]] && usage | |
# call mvn | |
mvn archetype:generate \ | |
-DarchetypeArtifactId=javascript-quickstart \ | |
-DarchetypeGroupId=de.akquinet.javascript.archetypes \ | |
-DarchetypeVersion=1.0.0 \ | |
-DgroupId="$1" \ | |
-DartifactId="$2" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment