Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Commit

Permalink
feat: setup webpack and automated release
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Jan 9, 2020
1 parent 6cbc66c commit a0a7722
Show file tree
Hide file tree
Showing 14 changed files with 9,390 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@bifravst/eslint-config-typescript"
}
40 changes: 40 additions & 0 deletions .github/workflows/test-and-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Test and Release

on: push

jobs:
tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: "12.x"
- name: Authenticate with NPM
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" > ~/.npmrc
- name: Keep npm cache around to speed up installs
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-build-${{ env.cache-name }}-
${{ runner.OS }}-build-
${{ runner.OS }}-
- name: Install dependencies
run: npm ci --no-audit
- name: Build
run: npm run build
- name: Lint
run: npm run lint
- name: Semantic release
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm i --no-save semantic-release@next
npx semantic-release
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
dist/
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@bifravst:registry=https://npm.pkg.github.com
@distributeaid:registry=https://npm.pkg.github.com
3 changes: 3 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
...require('@bifravst/code-style/.prettierrc'),
}
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Distribute Aid in-app-chat UI

[![GitHub Package Registry version](https://img.shields.io/github/release/distributeaid/chat-ui.svg?label=GPR&logo=github)](https://github.com/distributeaid/chat-ui/packages/26702)
[![GitHub Actions](https://github.com/distributeaid/chat-ui/workflows/Test%20and%20Release/badge.svg)](https://github.com/distributeaid/chat-ui/actions)
[![Greenkeeper badge](https://badges.greenkeeper.io/distributeaid/chat-ui.svg)](https://greenkeeper.io/)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)

This provides the UI for the in-app-chat as a standalone micro-frontend.

## Installation

npm ci

## Development

Start the development server

npm start

## Tests

Run the tests

npm test
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-angular'] }
Loading

0 comments on commit a0a7722

Please sign in to comment.