summaryrefslogtreecommitdiffstats
path: root/README.txt
Commit message (Expand)AuthorAgeFilesLines
* others fix due to module renameOlivier Lamy2012-12-271-2/+2
* remove old webapp doc from READMEOlivier Lamy2012-10-091-14/+2
* -Pdev not anymore needed in old webapp tooOlivier Lamy2012-09-101-1/+1
* -Pdev not anymore neededOlivier Lamy2012-09-101-2/+2
* comment the save fingers sh in READMEOlivier Lamy2012-07-031-1/+1
* update README fileOlivier Lamy2012-06-061-1/+1
* adjust READMEOlivier Lamy2012-05-181-2/+2
* NPE check and start moving to a knockout modelOlivier Lamy2012-03-301-0/+4
* url for webapp js in READMEOlivier Lamy2012-02-271-0/+2
* use tomcat plugin from Apache onlyOlivier Lamy2012-02-031-2/+4
* add a note on needed MAVEN_OPTS for tomcat:runOlivier Lamy2011-12-101-0/+4
* dd notes in README on how to run webapp js and test registration emailOlivier Lamy2011-12-091-0/+32
* use admin auto creation feature in dev runOlivier Lamy2011-09-091-0/+3
* make this a more general READMEBrett Porter2011-08-251-0/+14
stable29 Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/build/vue-builds.sh
blob: b5198cbbc1fe5771929a61a370365c61f74be059 (plain)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash

root=$(pwd)
entryFile=$1

if [ ! -f "$entryFile" ]
then
	echo "The build file $entryFile does not exists"
	exit 2
else
	path=$(dirname "$entryFile")
	file=$(basename $entryFile)

	set -e
	cd $path
	echo "Entering $path"

	# support for multiple chunks
	for chunk in *$file; do

		# Backup original file
		backupFile="$chunk.orig"
		echo "Backing up $chunk to $backupFile"
		cp $chunk $backupFile

	done

	# Make the app
	echo "Making $file"
	cd ../
	npm --silent install
	npm run --silent build

	# Reset
	cd $root
	cd $path

	# support for multiple chunks
	for chunk in *$file; do

		# Compare build files
		echo "Comparing $chunk to the original"
		backupFile="$chunk.orig"
		if ! diff -q $chunk $backupFile &>/dev/null
		then
			echo "$chunk build is NOT up-to-date! Please send the proper production build within the pull request"
			cat $HOME/.npm/_logs/*.log
			exit 2
		else
			echo "$chunk build is up-to-date"
		fi

	done
fi