diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-05-27 16:23:10 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-05-27 16:23:10 +0200 |
commit | 41a2aee38cf812510010da09de9bae53590ec119 (patch) | |
tree | 79d55d6ae0ef6f66ccb88890cf1ef1946dc65fb4 /scripts | |
parent | 157cb9c9713e08ff70078660a32dd77ecb87eabc (diff) | |
download | PeerTube-41a2aee38cf812510010da09de9bae53590ec119.tar.gz PeerTube-41a2aee38cf812510010da09de9bae53590ec119.tar.zst PeerTube-41a2aee38cf812510010da09de9bae53590ec119.zip |
Follow the angular styleguide for the directories structure
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build/client/sass.sh | 2 | ||||
-rwxr-xr-x | scripts/clean/client/sass.sh | 2 | ||||
-rwxr-xr-x | scripts/clean/client/tsc.sh | 3 | ||||
-rwxr-xr-x | scripts/watch/client/livereload.sh | 2 | ||||
-rwxr-xr-x | scripts/watch/client/sass.sh | 2 |
5 files changed, 6 insertions, 5 deletions
diff --git a/scripts/build/client/sass.sh b/scripts/build/client/sass.sh index 0caa0df20..d8dfedca3 100755 --- a/scripts/build/client/sass.sh +++ b/scripts/build/client/sass.sh | |||
@@ -6,4 +6,4 @@ cd client || exit -1 | |||
6 | # Compile index and angular files | 6 | # Compile index and angular files |
7 | concurrently \ | 7 | concurrently \ |
8 | "node-sass --include-path node_modules/bootstrap-sass/assets/stylesheets/ stylesheets/application.scss stylesheets/index.css" \ | 8 | "node-sass --include-path node_modules/bootstrap-sass/assets/stylesheets/ stylesheets/application.scss stylesheets/index.css" \ |
9 | "node-sass angular/ --output angular/" | 9 | "node-sass app/ --output app/" |
diff --git a/scripts/clean/client/sass.sh b/scripts/clean/client/sass.sh index 82c079f28..04d239ffc 100755 --- a/scripts/clean/client/sass.sh +++ b/scripts/clean/client/sass.sh | |||
@@ -2,4 +2,4 @@ | |||
2 | 2 | ||
3 | cd client || exit -1 | 3 | cd client || exit -1 |
4 | rm -f stylesheets/index.css | 4 | rm -f stylesheets/index.css |
5 | find angular -regextype posix-egrep -regex ".*\.(css)$" -exec rm -f {} \; | 5 | find app -regextype posix-egrep -regex ".*\.(css)$" -exec rm -f {} \; |
diff --git a/scripts/clean/client/tsc.sh b/scripts/clean/client/tsc.sh index 3ea6e78d5..b17888640 100755 --- a/scripts/clean/client/tsc.sh +++ b/scripts/clean/client/tsc.sh | |||
@@ -1,5 +1,6 @@ | |||
1 | #!/usr/bin/env sh | 1 | #!/usr/bin/env sh |
2 | 2 | ||
3 | cd client || exit -1 | 3 | cd client || exit -1 |
4 | find angular -regextype posix-egrep -regex ".*\.(js|map)$" -exec rm -f {} \; | 4 | find app -regextype posix-egrep -regex ".*\.(js|map)$" -exec rm -f {} \; |
5 | rm -rf ./bundles | 5 | rm -rf ./bundles |
6 | rm -f main.js main.js.map | ||
diff --git a/scripts/watch/client/livereload.sh b/scripts/watch/client/livereload.sh index a4acc439c..5f095265e 100755 --- a/scripts/watch/client/livereload.sh +++ b/scripts/watch/client/livereload.sh | |||
@@ -1,3 +1,3 @@ | |||
1 | #!/usr/bin/env sh | 1 | #!/usr/bin/env sh |
2 | 2 | ||
3 | livereload client/angular -e scss | 3 | livereload client/app -e scss |
diff --git a/scripts/watch/client/sass.sh b/scripts/watch/client/sass.sh index 22c536e38..f7a8c8a2b 100755 --- a/scripts/watch/client/sass.sh +++ b/scripts/watch/client/sass.sh | |||
@@ -4,4 +4,4 @@ cd client || exit -1 | |||
4 | 4 | ||
5 | concurrently \ | 5 | concurrently \ |
6 | "node-sass -w --include-path node_modules/bootstrap-sass/assets/stylesheets/ stylesheets/application.scss stylesheets/index.css" \ | 6 | "node-sass -w --include-path node_modules/bootstrap-sass/assets/stylesheets/ stylesheets/application.scss stylesheets/index.css" \ |
7 | "node-sass -w angular/ --output angular/" | 7 | "node-sass -w app/ --output app/" |