Skip to content

Commit

Permalink
add linux entry point scripts
Browse files Browse the repository at this point in the history
Signed-off-by: Gaetan Semet <[email protected]>
  • Loading branch information
gsemet committed Oct 20, 2014
1 parent b345143 commit df43e92
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lin-clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
rm -rfv public
rm -rfv node_modules
3 changes: 3 additions & 0 deletions lin-dev-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

grunt dev
5 changes: 3 additions & 2 deletions dev.sh → lin-dev-serve.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash

echo "press Ctrl+c to close dev mode"

(

grunt serve &

sleep 2
Expand All @@ -14,7 +15,7 @@ echo "press Ctrl+c to close dev mode"
open $URL
else

if [ -n $BROWSER ]; then
if [[ ! -z $BROWSER ]]; then
$BROWSER $URL
elif which xdg-open > /dev/null; then
xdg-open $URL
Expand Down
10 changes: 10 additions & 0 deletions lin-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

if [[ ! -z $http_proxy ]]; then
npm config set proxy ${http_proxy}
fi
if [[ ! -z $https_proxy ]]; then
npm config set https-proxy ${https_proxy}
fi
npm install
bower install
3 changes: 3 additions & 0 deletions lin-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

grunt release
2 changes: 2 additions & 0 deletions lin-update-deps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
npm update
bower update

0 comments on commit df43e92

Please sign in to comment.