forked from nyaruka/temba-components
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from nyaruka/main
Update repo
- Loading branch information
Showing
1,731 changed files
with
25,370 additions
and
17,518 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM "mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye" | ||
|
||
RUN apt-get update \ | ||
&& apt-get install chromium fonts-noto-color-emoji -y --no-install-recommends -qq | ||
|
||
# The rest of our environment | ||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true | ||
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium | ||
ENV CHROME_PATH=/usr/bin/chromium | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
WORKDIR /workspaces/temba-components | ||
RUN yarn install | ||
USER node |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"name": "temba-components", | ||
"build": { | ||
"dockerfile": "Dockerfile" | ||
}, | ||
"features": {}, | ||
"forwardPorts": [ | ||
3010 | ||
], | ||
"runArgs": [ | ||
"--name=dev-components", | ||
"--network=textit_default", | ||
"--hostname=temba-components" | ||
], | ||
"remoteUser": "node", | ||
"postCreateCommand": "sudo chown -R node /workspaces/temba-components/static/svg && sudo chown node /workspaces/temba-components && sudo chown node /workspaces/temba-components/screenshots && yarn install", | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"lfs.vscode-emacs-friendly" | ||
], | ||
"settings": { | ||
"terminal.integrated.defaultProfile.linux": "zsh", | ||
"editor.formatOnSave": true, | ||
"editor.rulers": [ | ||
120 | ||
] | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,35 @@ | ||
name: Build | ||
name: 'build' | ||
|
||
on: [push] | ||
|
||
jobs: | ||
bulid: | ||
runs-on: macOS-11 | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Use Node.js 12.x | ||
uses: actions/setup-node@v1 | ||
- name: Set Timezone | ||
uses: szenius/[email protected] | ||
with: | ||
node-version: 12 | ||
- name: Screenshot Tests | ||
run: | | ||
yarn install | ||
yarn test | ||
env: | ||
CI: true | ||
- uses: actions/upload-artifact@v2 | ||
timezoneLinux: "UTC" | ||
- name: Checkout (GitHub) | ||
uses: actions/checkout@v4 | ||
- run: docker network create --driver bridge textit_default | ||
- name: Build and run dev container task | ||
uses: devcontainers/[email protected] | ||
with: | ||
runCmd: yarn test | ||
push: never | ||
env: | | ||
CI=true | ||
- name: Upload artifacts | ||
if: failure() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: screenshots | ||
path: screenshots/ | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v1.0.4 | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
token: ${{secrets.CODECOV_TOKEN}} | ||
file: coverage/lcov.info | ||
files: coverage/lcov.info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,17 +10,16 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Use Node.js 12.x | ||
uses: actions/setup-node@v1 | ||
- name: Checkout (GitHub) | ||
uses: actions/checkout@v4 | ||
- run: docker network create --driver bridge textit_default | ||
- name: Build and run dev container task | ||
uses: devcontainers/[email protected] | ||
with: | ||
node-version: 12 | ||
- name: Build and Test | ||
run: | | ||
yarn install | ||
yarn run build | ||
env: | ||
CI: true | ||
runCmd: yarn run build | ||
push: never | ||
env: | | ||
CI=true | ||
- name: Publish | ||
run: | | ||
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time. | ||
# For more information, see: https://github.com/actions/stale | ||
name: Close stale issues and PRs | ||
on: | ||
schedule: | ||
- cron: "30 1 * * *" | ||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
steps: | ||
- uses: actions/stale@v5 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
stale-issue-label: "inactive" | ||
stale-issue-message: "Without activity, this issue will be closed in 14 days." | ||
close-issue-message: "This issue was closed for inactivity." | ||
stale-pr-message: "Without activity, this PR will be closed in 14 days." | ||
close-pr-message: "This PR was closed for inactivity." | ||
stale-pr-label: "inactive" | ||
days-before-pr-stale: 30 | ||
days-before-pr-close: 14 | ||
days-before-issue-stale: 30 | ||
days-before-issue-close: 14 | ||
exempt-all-assignees: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"semi": true, | ||
"trailingComma": "none", | ||
"singleQuote": true, | ||
"printWidth": 80 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
|
||
|
||
# yarn-path ".yarn/releases/yarn-1.22.10.cjs" | ||
# --install.modules-folder "./linux/node_modules" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
nodeLinker: node-modules | ||
supportedArchitectures: | ||
os: | ||
- "current" | ||
- "darwin" | ||
- "linux" |
Oops, something went wrong.