Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dedicated folder ts #8

Merged
merged 4 commits into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,26 @@

name: Publish to NPM

on:
workflow_dispatch
on:
workflow_dispatch:

jobs:
build-and-publish:
runs-on: ubuntu-latest
defaults:
run:
working-directory: typescript
steps:
- uses: actions/checkout@6ccd57f4c5d15bdc2fef309bd9fb6cc9db2ef1c6
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: cp ../LICENSE .
- run: cp ../README.md .
- run: npm install
- run: npm run build
- run: npm pack
- run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
15 changes: 0 additions & 15 deletions .github/workflows/run-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,3 @@ jobs:
run: npm install
- name: Run linting
run: npm run lint
# - name: Spell check
# uses: streetsidesoftware/cspell-action@4dc9d4bdf3974ed26d6f2e973c1e168edff47d80
# with:
# files: '**/*.{md,ts}'
# strict: true
# check_dot_files: true
# incremental_files_only: false
# config: 'cspell.config.yml'
# - name: Run ShellCheck
# uses: ludeeus/action-shellcheck@cd81f4475ab741e097ec0fe73b692f3e49d66b8c
# with:
# scandir: '.'
# ignore_paths: >-
# node_modules
# .husky
10 changes: 7 additions & 3 deletions .github/workflows/run-security-checks.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Run security checks on the project

on:
workflow_call:
workflow_dispatch:
Expand All @@ -10,23 +9,28 @@ permissions:
jobs:
scan:
runs-on: ubuntu-latest
defaults:
run:
working-directory: typescript
steps:
# Checkout and setup.
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
fetch-depth: 0

- name: Install dependencies
run: npm install

# NPM audit.
- name: Run audit
run: npm audit

continue-on-error: true

# GitLeaks.
- name: Run Gitleaks
uses: gitleaks/gitleaks-action@4df650038e2eb9f7329218df929c2780866e61a3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }}

24 changes: 4 additions & 20 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Run tests on the project

on:
push:
branches:
Expand All @@ -8,14 +7,14 @@ on:
types:
- opened
- edited


permissions:
contents: read

jobs:
lint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: typescript
steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
Expand All @@ -27,19 +26,4 @@ jobs:
- name: Install dependencies
run: npm install
- name: Run tests
run: npm run coverage
# - name: Spell check
# uses: streetsidesoftware/cspell-action@4dc9d4bdf3974ed26d6f2e973c1e168edff47d80
# with:
# files: '**/*.{md,ts}'
# strict: true
# check_dot_files: true
# incremental_files_only: false
# config: 'cspell.config.yml'
# - name: Run ShellCheck
# uses: ludeeus/action-shellcheck@cd81f4475ab741e097ec0fe73b692f3e49d66b8c
# with:
# scandir: '.'
# ignore_paths: >-
# node_modules
# .husky
run: npm run coverage
29 changes: 13 additions & 16 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,29 +1,26 @@

!jest.config.js
*.d.ts
node_modules
.package-lock.json
!typescript/jest.config.js
typescript/*.d.ts
typescript/node_modules
typescript/.package-lock.json

# CDK asset staging directory
.cdk.staging
cdk.out
examples/chat-demo-app/cdk.out

lib/**/*.js
bin/*.js
examples/chat-demo-app/lib/**/*.js
examples/chat-demo-app/bin/*.js

!lambda/url_rewrite/*.js
resources/ui/public/aws-exports.json
resources/ui/dist
!examples/lambda/url_rewrite/*.js
examples/resources/ui/public/aws-exports.json
examples/resources/ui/dist


.DS_Store

**/dist/**/*
typescript/dist/**/*

*.tgz
typescript/*.tgz
*aws-exports.json
!download.js

examples/local-demo/.env

coverage/**/*
typescript/coverage/**/*
2 changes: 2 additions & 0 deletions docs/src/env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/// <reference path="../.astro/types.d.ts" />
/// <reference types="astro/client" />
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading