From 032866664748ebe067b15751abe17275e62c0177 Mon Sep 17 00:00:00 2001 From: Markus Tacker Date: Thu, 10 Oct 2019 11:49:22 +0200 Subject: [PATCH] feat: initial release --- .eslintrc | 3 + .github/workflows/test-and-release.yaml | 33 + .gitignore | 3 + .gitmessage | 11 + .npmrc | 1 + .prettierignore | 1 + .prettierrc.js | 3 + LICENSE | 29 + README.md | 20 + commitlint.config.js | 1 + package-lock.json | 8444 +++++++++++++++++++++++ package.json | 70 + src/index.ts | 1 + src/portForDevice.ts | 11 + src/ui-server.ts | 92 + tsconfig.json | 7 + 16 files changed, 8730 insertions(+) create mode 100644 .eslintrc create mode 100644 .github/workflows/test-and-release.yaml create mode 100644 .gitignore create mode 100644 .gitmessage create mode 100644 .npmrc create mode 100644 .prettierignore create mode 100644 .prettierrc.js create mode 100644 LICENSE create mode 100644 README.md create mode 100644 commitlint.config.js create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 src/index.ts create mode 100644 src/portForDevice.ts create mode 100644 src/ui-server.ts create mode 100644 tsconfig.json diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..5a80290 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,3 @@ +{ + "extends": "@bifravst/eslint-config-typescript" +} diff --git a/.github/workflows/test-and-release.yaml b/.github/workflows/test-and-release.yaml new file mode 100644 index 0000000..b6cf7ad --- /dev/null +++ b/.github/workflows/test-and-release.yaml @@ -0,0 +1,33 @@ +name: Test and Release + +on: push + +env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + +jobs: + tests: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: "12.x" + - name: Install latest npm + run: | + sudo npm install -g npm@ + npm config set update-notifier false + sudo chown -R $USER:$(id -gn $USER) /home/runner/.config + - name: Authenticate with NPM + run: | + echo "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" > ~/.npmrc + - name: Install dependencies + run: npm ci --no-audit + - name: Compile + run: npx tsc + - name: Semantic release + continue-on-error: true + run: | + npm i --no-save semantic-release@next + npx semantic-release diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c6d8012 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +node_modules/ +npm-debug.log +dist/ diff --git a/.gitmessage b/.gitmessage new file mode 100644 index 0000000..03b1db2 --- /dev/null +++ b/.gitmessage @@ -0,0 +1,11 @@ + +# +# All commit messages must follow Angular Commit Message Guidelines: +# +# (): +# +# +# +#