-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
87 lines (66 loc) · 2.3 KB
/
Copy pathjustfile
File metadata and controls
87 lines (66 loc) · 2.3 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
build:
vsce package
mv *.vsix ./vsix/
build_newversion:
node -e "const fs=require('fs');const p='package.json';const pkg=JSON.parse(fs.readFileSync(p,'utf8'));const [a,b,c]=pkg.version.split('.').map(Number);pkg.version=[a,b,c+1].join('.');fs.writeFileSync(p, JSON.stringify(pkg, null, 2)+'\n');"
vsce package
mv *.vsix ./vsix/
unzip_vsix:
rm -rf ./unpacked_vsix
mkdir -p ./unpacked_vsix
latest=$(ls -t ./vsix/*.vsix 2>/dev/null | head -n1) && \
if [ -z "$latest" ]; then echo "No .vsix files found in ./vsix"; exit 1; fi && \
echo "Unzipping $latest into ./unpacked_vsix/" && \
unzip "$latest" -d ./unpacked_vsix/
publish:
vsce publish
npm-doctor:
npm doctor # check dependencies
npm prune # remove unused dependencies
npx depcheck # check dependencies
npm-check # check dependencies
npm-outdated:
npm outdated
npx npm-check-updates
npm-update:
npm update
npm-install:
rm -rf node_modules package-lock.json
npm install
npx tsc --noEmit
npm-clean:
npm list --depth=0 # Audit current deps
depcheck # Find unused
npm ci --omit=dev # Test production-only build
npm prune # Remove orphaned packages
npm dedupe # Consolidate versions
localstack_start:
localstack start
localstack_stop:
localstack stop
localstack_status:
localstack status
localstack_logs:
localstack logs
localstack_help:
localstack --help
localstack_update:
localstack update
create_bucket:
aws --endpoint-url=http://localhost:4566 s3 mb s3://my-bucket
list_buckets:
aws --endpoint-url=http://localhost:4566 s3 ls
list_bucket_content:
aws --endpoint-url=http://localhost:4566 s3 ls s3://my-bucket
upload_file:
aws --endpoint-url=http://localhost:4566 s3 cp README.md s3://my-bucket
list-lambdas:
aws --endpoint-url=http://localhost:4566 lambda list-functions
add-lambda:
cd test/ && zip my_lambda.zip my_lambda.py && cd ../..
aws --endpoint-url=http://localhost:4566 lambda create-function \
--function-name my-lambda \
--runtime python3.9 \
--zip-file fileb://test/my_lambda.zip \
--handler my_lambda.handler \
--role arn:aws:iam::000000000000:role/lambda-role