Skip to content

Commit

Permalink
geosolutions-it#5827. Fix small issues in project creation (geosoluti…
Browse files Browse the repository at this point in the history
…ons-it#5828) (geosolutions-it#5831)

Co-authored-by: Lorenzo Natali <lorenzo.natali@geo-solutions.it>
  • Loading branch information
MV88 and offtherailz authored Sep 3, 2020
1 parent db92f51 commit 904ba18
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions project/custom/templates/build.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ npm run lint

if [ $# -eq 0 ]
then
mvn clean install -Dmapstore2.version=$VERSION
else
mvn clean install -Dmapstore2.version=$1
mvn clean install
elif [ $# -eq 1 ]
then
mvn clean install -Dmapstore2.version=$1
else
mvn clean install -Dmapstore2.version=$1 -P$2
fi
2 changes: 1 addition & 1 deletion utility/projects/projectScripts.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"postinstall": "node MapStore2/utility/build/postInstall.js",
"clean": "rimraf dist",
"compile": "npm run clean && mkdirp ./dist && node --max_old_space_size=2048 webpack --config prod-webpack.config.js --env.production",
"compile": "npm run clean && mkdirp ./dist && node --max_old_space_size=2048 ./node_modules/webpack/bin/webpack.js --config prod-webpack.config.js --env.production",
"start": "webpack-dev-server --progress --colors --port 8081 --hot --inline --content-base .",
"test": "karma start ./karma.conf.single-run.js",
"continuoustest": "karma start ./karma.conf.continuous-test.js",
Expand Down

0 comments on commit 904ba18

Please sign in to comment.