Skip to content

Commit d7fc7ec

Browse files
committed
Update lists of files
1 parent 097fbeb commit d7fc7ec

File tree

3 files changed

+62
-26
lines changed

3 files changed

+62
-26
lines changed

.funcignore

Lines changed: 46 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,51 @@
1-
*.js.map
2-
*.ts
3-
.gitignore
1+
teams-secret-scanning-notifier.zip
2+
.vscode/
3+
*settings*.json
44
.git/
55
.github/
6-
.vscode/
7-
__azurite_db*__.json
8-
__blobstorage__
9-
__queuestorage__
10-
local.settings.json
11-
test
12-
tsconfig.json
13-
*.sh
14-
*.zip
15-
node_modules/.bin
16-
filter.yml.example
17-
LICENSE
18-
CODEOWNERS
6+
.gitignore
197
.eslint*
8+
.funcignore
209
*.md
10+
CODEOWNERS
11+
LICENSE
12+
*.ts
13+
*.map
2114
jest.config.js
22-
test/
15+
*.example
16+
node_modules/.bin/
17+
*.sh
18+
*.env
19+
tsconfig.json
20+
src/
21+
test/
22+
dist/tsconfig.tsbuildinfo
23+
node_modules/*jest*/
24+
node_modules/*eslint*/
25+
node_moduels/@types/
26+
node_modules/@jest/
27+
node_modules/@eslint/
28+
node_modules/@typescript-eslint/
29+
node_modules/*/*.ts
30+
node_modules/*/test/*
31+
node_modules/*/*.map
32+
node_modules/*/.github/
33+
node_modules/*/.history/
34+
node_modules/*/.travis.yml
35+
node_modules/*/.eslintignore
36+
node_modules/*/.eslintrc.yml
37+
node_modules/*/.prettierignore
38+
node_modules/*/.prettierrc.yml
39+
node_modules/*/.nycrc
40+
node_modules/*/.jshintignore
41+
node_modules/*/.jshintrc
42+
node_modules/*/.npmignore
43+
node_modules/*/*jest*/*
44+
node_modules/*/@types/*
45+
node_modules/*/LICENSE*
46+
node_modules/*/license
47+
node_modules/*/.eslintrc
48+
node_modules/*/.prettierrc
49+
node_modules/*/diagnosticMessages.generated.json
50+
node_modules/*/tsconfig.json
51+
node_modules/*/.editorconfig

.gitignore

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,18 +90,23 @@ out
9090
# Azure Functions artifacts
9191
bin
9292
obj
93-
appsettings.json
94-
local.settings.json
93+
*settings*.json
9594

9695
# Azurite artifacts
9796
__blobstorage__
9897
__queuestorage__
9998
__azurite_db*__.json
10099

101-
# local scripts
102-
*.sh
100+
# local app-specific files
101+
# deploy zip
103102
*.zip
104103

105104
# filter settings - don't commit this, just commit filter.yml.example
106105
# if you fork this repo, you can uncomment this and commit your own filter.yml
107106
filter.yml
107+
108+
# local example files
109+
*.example
110+
111+
# Azure environment file
112+
azure.env

make-function-zip.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
#!/bin/bash
22

3+
set -euo pipefail
4+
35
# Make the Function zip archive for deployment to the Azure Functions App
46

5-
npm run build
6-
zip -r teams-secret-scanning-notifier.zip . \
7+
rm teams-secret-scanning-notifier.zip >/dev/null 2>&1 || echo "[.] No existing zip file to remove"
8+
npm run build >/dev/null 2>&1
9+
zip -q -r teams-secret-scanning-notifier.zip . \
710
-x 'teams-secret-scanning-notifier.zip' '.vscode/*' '*settings*.json' \
811
'.git/*' '.github/*' '.gitignore' '.eslint*' '.funcignore' '*.md' \
912
'CODEOWNERS' 'LICENSE' '*.ts' '*.map' 'jest.config.js' \
1013
'*.example' 'node_modules/.bin/*' '*.sh' '*.env' \
11-
'tsconfig.json' 'package-lock.json' \
12-
'package.json' 'src/*' 'test/*' 'dist/tsconfig.tsbuildinfo' \
14+
'tsconfig.json' 'src/*' 'test/*' \
1315
'node_modules/@types/*' 'node_modules/*jest*/*' \
1416
'node_modules/*eslint*/*' '*/.github/*' '*/.history/*' \
1517
'*/.travis.yml' '*/.eslintignore' '*/.eslintrc.yml' \
16-
'*/.prettierignore' '*/.prettierrc.yml' '*/.nycrc' \
1718
'*/.jshintignore' '*/.jshintrc' '*/.npmignore' \
19+
'*/.prettierignore' '*/.prettierrc.yml' '*/.nycrc' \
1820
'node_modules/*/@types/*' 'node_modules/*/*jest*/*' \
1921
'*/LICENSE*' '*/license' '*/.eslintrc' '*/.prettierrc' \
2022
'*/diagnosticMessages.generated.json' '*/tsconfig.json' \

0 commit comments

Comments
 (0)