forked from skinny-framework/skinny-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate_blank_app.sh
More file actions
executable file
·39 lines (36 loc) · 896 Bytes
/
create_blank_app.sh
File metadata and controls
executable file
·39 lines (36 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh
script_dir=`dirname $0`
mkdir -p ${script_dir}/release
rm -rf release/*
cd ${script_dir}/yeoman-generator-skinny
rm -rf app/templates/project/project
rm -rf app/templates/project/target
rm -rf app/templates/target
rm -rf app/templates/node_modules
rm -rf app/templates/*/target
npm link
cd -
cd ${script_dir}/release
mkdir skinny-blank-app
cd skinny-blank-app
yo --no-insight skinny
mv _package.json package.json
if [ "$1" != "test" ]; then
if [ -f "$HOME/ivy2.tar.gz" ]; then
cp -p $HOME/ivy2.tar.gz .
tar xvfzp ivy2.tar.gz
rm -f ivy2.tar.gz
fi
./create_local_ivy2
fi
rm -rf target
rm -rf project/project
rm -rf src/main/webapp/WEB-INF/assets/target
rm -rf */target
rm -rf node_modules
rm -f create_local_ivy2
cd ..
zip -r skinny-blank-app-with-deps.zip ./skinny-blank-app
rm -rf ivy2
mv skinny-blank-app/ivy2 ivy2
zip -r skinny-blank-app.zip ./skinny-blank-app