Skip to content

Commit

Permalink
merge in 'pih-esm-referrals-queue' repository
Browse files Browse the repository at this point in the history
  • Loading branch information
chibongho committed Mar 13, 2024
2 parents 47103d5 + 461e8a3 commit e7e3b7a
Show file tree
Hide file tree
Showing 37 changed files with 17,451 additions and 83 deletions.
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# OS files
.DS_Store

# Logs
logs
*.log
Expand Down Expand Up @@ -85,3 +88,15 @@ results.xml

# Translations
moduleName
=======
# dotenv environment variables file
.env

# next.js build output
.next

dist/

# Intellij integration
.idea/
*.iml
110 changes: 110 additions & 0 deletions .gitignore.orig
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
<<<<<<< HEAD
=======
# OS files
.DS_Store

>>>>>>> pih-esm-referrals-queue/main
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

<<<<<<< HEAD
# ignores for Yarn v3 w/o PNP
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

=======
>>>>>>> pih-esm-referrals-queue/main
# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

<<<<<<< HEAD
# next.js build output
.next
dist

# Intellij integration
*.iml
.idea/

.DS_Store

.turbo/
~

# Playwright and e2e tests
/test-results/
/playwright-report/
/playwright/.cache/
e2e/storageState.json
results.xml

# Translations
moduleName
=======
# dotenv environment variables file
.env

# next.js build output
.next

dist/

# Intellij integration
.idea/
*.iml
>>>>>>> pih-esm-referrals-queue/main
12 changes: 12 additions & 0 deletions packages/pih-esm-referrals-queue/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf

[*.md]
trim_trailing_whitespace = false
2 changes: 2 additions & 0 deletions packages/pih-esm-referrals-queue/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
src/**/*.test.tsx
**/*.d.tsx
4 changes: 4 additions & 0 deletions packages/pih-esm-referrals-queue/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"parser": "@typescript-eslint/parser",
"extends": ["ts-react-important-stuff", "plugin:prettier/recommended"]
}
79 changes: 79 additions & 0 deletions packages/pih-esm-referrals-queue/.github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: Node.js CI

on:
push:
branches: [main]
pull_request:
branches: [main]
release:
types:
- created

env:
ESM_NAME: "@pih/esm-referrals-queue-app"
JS_NAME: "esm-referrals-queue-app.js"

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: "16.x"
- run: yarn
- run: yarn lint
- run: yarn coverage
- run: yarn typescript
- run: yarn build
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: dist
path: |
dist
pre_release:
runs-on: ubuntu-latest

needs: build

if: ${{ github.event_name == 'push' }}

steps:
- uses: actions/checkout@v2
- name: Download Artifacts
uses: actions/download-artifact@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: "16.x"
registry-url: "https://registry.npmjs.org"
- run: yarn install
- run: sed -i -e "s/\(\"version\":\\s\+\"\([0-9]\+\.\?\)\+\)/\1-pre.${{ github.run_number }}/" 'package.json'
- run: yarn publish --access public --tag next
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

release:
runs-on: ubuntu-latest

needs: build

if: ${{ github.event_name == 'release' }}

steps:
- uses: actions/checkout@v2
- name: Download Artifacts
uses: actions/download-artifact@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: "16.x"
registry-url: 'https://registry.npmjs.org'
- run: yarn
- run: yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
1 change: 1 addition & 0 deletions packages/pih-esm-referrals-queue/.husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
7 changes: 7 additions & 0 deletions packages/pih-esm-referrals-queue/.husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

set -e # die on error

npx pretty-quick --staged
yarn verify
2 changes: 2 additions & 0 deletions packages/pih-esm-referrals-queue/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/

14 changes: 14 additions & 0 deletions packages/pih-esm-referrals-queue/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# directories
.husky/
dist/
node_modules/

# dotfiles and generated
.*
yarn.lock

# by file type
**/*.css
**/*.scss
**/*.md
**/*.json
Loading

0 comments on commit e7e3b7a

Please sign in to comment.