File tree 9 files changed +105
-8
lines changed
9 files changed +105
-8
lines changed Original file line number Diff line number Diff line change @@ -57,14 +57,19 @@ chalicelib/src
57
57
gunicorn.access.log
58
58
gunicorn.error.log
59
59
logs /app_general.log
60
+
61
+ # Other files
60
62
scripts /aws_big_lambda /lambda-config- * .json
61
63
scripts /aws_big_lambda /template.yml
62
64
scripts /aws_big_lambda /samconfig.toml
63
- response.json
64
- scripts /dns /config /zones /*
65
+ scripts /dns /config /zones
65
66
scripts /dns /config /named-to-add.conf
66
67
scripts /secure_local_server /nginx.conf
67
68
scripts /secure_local_server /nginx.conf.tmp
68
69
scripts /vps /docker-compose.yml
69
70
scripts /vps /docker-compose.tmp.yml
70
71
scripts /dns /Dockerfile
72
+
73
+ response.json
74
+
75
+ tmp
Original file line number Diff line number Diff line change @@ -57,14 +57,19 @@ chalicelib/src
57
57
gunicorn.access.log
58
58
gunicorn.error.log
59
59
logs /app_general.log
60
+
61
+ # Other files
60
62
scripts /aws_big_lambda /lambda-config- * .json
61
63
scripts /aws_big_lambda /template.yml
62
64
scripts /aws_big_lambda /samconfig.toml
63
- response.json
64
- scripts /dns /config /zones /*
65
+ scripts /dns /config /zones
65
66
scripts /dns /config /named-to-add.conf
66
67
scripts /secure_local_server /nginx.conf
67
68
scripts /secure_local_server /nginx.conf.tmp
68
69
scripts /vps /docker-compose.yml
69
70
scripts /vps /docker-compose.tmp.yml
70
71
scripts /dns /Dockerfile
72
+
73
+ response.json
74
+
75
+ tmp
Original file line number Diff line number Diff line change @@ -17,6 +17,16 @@ This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a Ch
17
17
### Breaks
18
18
19
19
20
+ ## 1.0.8 (2024-04-26)
21
+ ---
22
+
23
+ ### New
24
+ Add "npm_remove_ignored.sh" to remove files in ".gitignore" or ".npmignore".
25
+
26
+ ### Changes
27
+ Change "npm_publish.sh" to implement "npm_remove_ignored.sh".
28
+
29
+
20
30
## 1.0.7 (2024-04-20)
21
31
---
22
32
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " genericsuite-be-scripts" ,
3
- "version" : " 1.0.7 " ,
3
+ "version" : " 1.0.8 " ,
4
4
"description" : " GenericSuite Scripts (backend version)" ,
5
5
"author" : " Carlos J. Ramirez" ,
6
6
"license" : " ISC" ,
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ if [ ! -d "./${APP_DIR}" ]; then
35
35
exit 1
36
36
fi
37
37
38
- # Default App entry point coode file
38
+ # Default App entry point code file
39
39
if [ " ${APP_MAIN_FILE} " = " " ]; then
40
40
# https://aws.github.io/chalice/topics/packaging.html
41
41
APP_MAIN_FILE=' app'
Original file line number Diff line number Diff line change
1
+ venv
2
+ .env
3
+
4
+ lambda-config- * .json
5
+ template.yml
6
+ samconfig.toml
Original file line number Diff line number Diff line change 10
10
#
11
11
# 2024-03-16 | CR
12
12
#
13
+
14
+ show_date_time () {
15
+ if [ " ${APP_TZ} " = " " ]; then
16
+ APP_TZ=' America/New_York'
17
+ fi
18
+ TZ=" ${APP_TZ} " date
19
+ }
20
+
13
21
REPO_BASEDIR=" ` pwd` "
14
22
cd " ` dirname " $0 " ` " ;
15
23
SCRIPTS_DIR=" ` pwd` " ;
36
44
exit 1
37
45
fi
38
46
47
+ bash ${SCRIPTS_DIR} /npm_remove_ignored.sh .gitignore
48
+ # if ! bash ${SCRIPTS_DIR}/npm_remove_ignored.sh .gitignore
49
+ # then
50
+ # echo "ERROR running: sh scripts/npm_remove_ignored.sh .gitignore"
51
+ # exit 1
52
+ # fi
53
+
39
54
if [ " ${ACTION} " = " publish" ]; then
40
55
echo " "
41
56
echo " Are you sure you want to publish ${PACKAGE_NAME} :${PACKAGE_VERSION} (y/n)?"
47
62
48
63
echo " "
49
64
echo " Done with ${ACTION} !"
65
+ show_date_time
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # File: scripts/npm_remove_ignored.sh
3
+ # Run:
4
+ # sh scripts/npm_remove_ignored.sh .npmignore
5
+ # sh scripts/npm_remove_ignored.sh .gitignore
6
+ # 2024-04-21 | CR
7
+ #
8
+
9
+ REPO_BASEDIR=" ` pwd` "
10
+ cd " ` dirname " $0 " ` " ;
11
+ SCRIPTS_DIR=" ` pwd` " ;
12
+ cd " ${REPO_BASEDIR} "
13
+ TMP_SCRIPT=" /tmp/gs_remove_ignored.sh"
14
+
15
+ echo " Removing ignored files from: $1 "
16
+
17
+ if [ " $1 " = " " ]; then
18
+ echo " Usage: $0 <file>"
19
+ exit 1
20
+ fi
21
+ if [ ! -f " $1 " ]; then
22
+ echo " ERROR: File $1 not found"
23
+ exit 1
24
+ fi
25
+
26
+
27
+ cat > " ${TMP_SCRIPT} " << END \
28
+
29
+ #!/bin/bash
30
+ ask_yes_or_no() {
31
+ read choice
32
+ while [[ ! \$ choice =~ ^[YyNn]$ ]]; do
33
+ echo "Please enter Y or N"
34
+ read choice
35
+ done
36
+ }
37
+ END
38
+
39
+ while IFS= read -r line || [ -n " $line " ]; do
40
+ if [ ! -z " $line " ]; then
41
+ if ls " $line " 2> /dev/null; then
42
+ echo " echo \"\" " >> ${TMP_SCRIPT}
43
+ echo " echo \" Removing $line \" " >> ${TMP_SCRIPT}
44
+ echo " echo \" Are you sure? (Y/N)\" " >> ${TMP_SCRIPT}
45
+ echo " ask_yes_or_no" >> ${TMP_SCRIPT}
46
+ echo " if [[ \$ choice =~ ^[Yy]$ ]]; then" >> ${TMP_SCRIPT}
47
+ echo " rm -rf " $line " 2>/dev/null" >> ${TMP_SCRIPT}
48
+ echo " fi" >> ${TMP_SCRIPT}
49
+ else
50
+ echo " Ignoring $line "
51
+ fi
52
+ fi
53
+ done < " $1 "
54
+
55
+ bash ${TMP_SCRIPT}
You can’t perform that action at this time.
0 commit comments