Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017-2018
Copyright (c) 2017-2026

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
12 changes: 4 additions & 8 deletions dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,18 @@ TMPDIR=`mktemp -d`
# Clean build of angular app
cd frontend
rm -rf dist
ng build --prod --aot
ng build
cd ..
cp -ax . $TMPDIR/commitstop

# Delete unnecessary files
mv $TMPDIR/commitstop/frontend/dist $TMPDIR/
mv $TMPDIR/commitstop/frontend/dist/frontend/browser $TMPDIR/
rm -rf $TMPDIR/commitstop/.git $TMPDIR/commitstop/dist.sh $TMPDIR/commitstop/frontend
rm `find $TMPDIR -name *.pyc`
mv $TMPDIR/dist $TMPDIR/commitstop/frontend
mv $TMPDIR/browser $TMPDIR/commitstop/frontend

# adjust relativ path because path is just "frontend" in distribution instead of "frontend/dist"
export JS_FILE=`ls $TMPDIR/commitstop/frontend/main-es2015.*`
sed "s|\.\./\.\./api.py|../api.py|" < $JS_FILE > $TMPDIR/t.txt
mv $TMPDIR/t.txt $JS_FILE

export JS_FILE=`ls $TMPDIR/commitstop/frontend/main-es5.*`
export JS_FILE=`ls $TMPDIR/commitstop/frontend/main*.js`
sed "s|\.\./\.\./api.py|../api.py|" < $JS_FILE > $TMPDIR/t.txt
mv $TMPDIR/t.txt $JS_FILE

Expand Down
Loading