-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcreate_includes.sh
executable file
·19 lines (18 loc) · 1.06 KB
/
create_includes.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
API_INCLUDES_FILE=./includesfile_api
[ -e ${API_INCLUDES_FILE} ] && rm -f ${API_INCLUDES_FILE}
ls -1 ./api/*.js >> ${API_INCLUDES_FILE}
ls -1 ./api/package* >> ${API_INCLUDES_FILE}
find ./api/handlers/ -type f -name '*' -print >> ${API_INCLUDES_FILE}
find ./api/controllers/ -type f -name '*' -print >> ${API_INCLUDES_FILE}
find ./api/models/ -type f -name '*' -print >> ${API_INCLUDES_FILE}
find ./api/node_modules/ -type f -name '*' -print >> ${API_INCLUDES_FILE}
find ./api/routes/ -type f -name '*' -print >> ${API_INCLUDES_FILE}
find ./api/util/ -type f -name '*' -print >> ${API_INCLUDES_FILE}
FRONTEND_INCLUDES_FILE=./includesfile_frontend
[ -e ${FRONTEND_INCLUDES_FILE} ] && rm -f ${FRONTEND_INCLUDES_FILE}
ls -1 ./frontend/package* >> ${FRONTEND_INCLUDES_FILE}
ls -1 ./frontend/app.js >> ${FRONTEND_INCLUDES_FILE}
find ./frontend/node_modules/ -type f -name '*' -print >> ${FRONTEND_INCLUDES_FILE}
find ./frontend/handlers/ -type f -name '*' -print >> ${FRONTEND_INCLUDES_FILE}
find ./frontend/build/ -type f -name '*' -print >> ${FRONTEND_INCLUDES_FILE}