forked from dialogflow/dialogflow-javascript-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
42 lines (31 loc) · 742 Bytes
/
build.sh
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
#!/bin/bash
VERSION='0.1.2'
echo '/**
* api.ai.js - Javascript SDK for api.ai
* version '$VERSION'
*/' > target/header.js
echo 'js concat ...'
cat \
src/resampler.js \
src/recorderWorker.js \
src/recorder.js \
src/processors.js \
src/vad.js \
src/tts.js \
src/api.ai.js \
> target/api.ai.js
cat target/header.js target/api.ai.js > target/api.ai-v$VERSION.js
echo 'js concat done'
echo 'js compressing ...'
java -jar resources/compiler.jar --js \
src/resampler.js \
src/recorderWorker.js \
src/recorder.js \
src/processors.js \
src/vad.js \
src/tts.js \
src/api.ai.js \
--js_output_file target/api.ai.min.js
cat target/header.js target/api.ai.min.js > target/api.ai-v$VERSION.min.js
echo 'js compressing done'
rm target/header.js