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

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
pablitar committed Apr 28, 2021
0 parents commit 8af94d9
Show file tree
Hide file tree
Showing 14 changed files with 2,095 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
on:
push:
pull_request:
release:
types:
- created

name: CI
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: install
run: npm install
- name: build
run: make build
- name: test
run: make test
- name: Publish
uses: menduz/oddish-action@master
with:
registry-url: "https://registry.npmjs.org"
access: public
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dist
node_modules
temp
tsdoc-metadata.json
10 changes: 10 additions & 0 deletions .mocharc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
require:
- 'ts-node/register'
# - './test/setup.ts'
reporter:
- 'spec'
- list
watch-files:
- 'dist/**/*.js'
- 'test/**/*.ts'
spec: 'test/**/*.ts'
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

ifneq ($(CI), true)
LOCAL_ARG = --local --verbose --diagnostics
endif

test:
./node_modules/.bin/mocha

build:
./node_modules/.bin/tsc -p tsconfig.json
rm -rf node_modules/@microsoft/api-extractor/node_modules/typescript || true
./node_modules/.bin/api-extractor run $(LOCAL_ARG) --typescript-compiler-folder ./node_modules/typescript

.PHONY: build test
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# base-component
Loading

0 comments on commit 8af94d9

Please sign in to comment.