Skip to content

Commit abe0f95

Browse files
committed
initial commit
0 parents  commit abe0f95

File tree

17 files changed

+6534
-0
lines changed

17 files changed

+6534
-0
lines changed

.DS_Store

10 KB
Binary file not shown.

.babelrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"presets": [
3+
["@babel/preset-env", {
4+
"targets": {
5+
"node": "current"
6+
}
7+
}]
8+
]
9+
}

.github/workflows/deploy.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build and Deploy to S3
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build-and-deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v3
14+
15+
- name: Set up Node.js
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: '18'
19+
20+
- name: Install dependencies
21+
run: npm install
22+
23+
- name: Build
24+
run: npm run build
25+
26+
- name: Configure AWS Credentials
27+
uses: aws-actions/configure-aws-credentials@v2
28+
with:
29+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
30+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
31+
aws-region: us-east-1 # Change to your S3 region
32+
33+
- name: Deploy to S3
34+
run: npm run deploy

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules/
2+
*.log
3+
build/
4+
coverage/
5+
untitled folder

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# tinytag

jest.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module.exports = {
2+
testEnvironment: 'jsdom',
3+
moduleFileExtensions: ['js'],
4+
coverageDirectory: 'coverage',
5+
collectCoverageFrom: ['src/**/*.js'],
6+
transform: {
7+
'^.+\\.js$': 'babel-jest'
8+
}
9+
};

0 commit comments

Comments
 (0)