diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ac95bc8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'npm' + + - name: Install + run: npm ci + + - name: Lint + run: npm run lint --if-present + + - name: Test + run: npm test -- --watch=false --browsers=ChromeHeadless --no-cache + + - name: Build + run: npm run build -- --configuration production diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..32902b4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,46 @@ +node_modules/ +dist/ +tmp/ +out-tsc/ +*.tsbuildinfo + +# IDEs +.idea/ +.vscode/ +*.swp +*.swo +*~ + +# OS +.DS_Store +Thumbs.db + +# Angular +# cache used by Angular CLI +.angular/ +# environment files (keep example) +/environment.*.ts +!/environment.example.ts + +# Test +coverage/ +reports/ + +# Dependency directories +bower_components/ +jspm_packages/ + +# Optional npm cache +.npm/ + +# Optional eslint cache +.eslintcache + +# Yarn +.yarn/ +yarn-error.log + +# Compressed +*.zip +*.tar.gz +*.7z