fwebc.js

Toy framework for learning web components
git clone git://git.finwo.net/lib/fwebc.js
Log | Files | Refs | README

commit ec59b356dd842e90703061e2b69c9540d2379fbe
Author: finwo <finwo@pm.me>
Date:   Wed, 28 Oct 2020 15:35:24 +0100

Project init

Diffstat:
A.editorconfig | 15+++++++++++++++
A.github/FUNDING.yml | 3+++
A.github/workflows/nodejs.yml | 44++++++++++++++++++++++++++++++++++++++++++++
ACODE_OF_CONDUCT.md | 6++++++
Apackage.json | 19+++++++++++++++++++
5 files changed, 87 insertions(+), 0 deletions(-)

diff --git a/.editorconfig b/.editorconfig @@ -0,0 +1,15 @@ +# 2d0e4a3f-ac19-430c-bf1b-46c68651ce21 +root = true + +[*] +end_of_line = lf +insert_final_newline = true +charset = utf-8 +indent_size = 2 +indent_style = space + +[*.{php,html}] +indent_size = 4 + +[Makefile*] +indent_style = tab diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml @@ -0,0 +1,3 @@ +# f4d2ed80-57b6-46e6-b245-5049428a931d +github: finwo +patreon: finwo diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml @@ -0,0 +1,44 @@ +# 118b8825-e6de-4c10-8ec2-e3d5614c1e1f +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Node.js CI + +on: push + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x, 14.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run build --if-present + - run: npm test + env: + CI: true + + publish: + needs: build + runs-on: ubuntu-latest + if: github.ref == 'refs/heads/master' + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 14 + registry-url: https://registry.npmjs.org/ + - run: npm ci + - run: npm build + - run: if [ $(npm view $(node -p "require('./package.json').name") version) != $(node -p "require('./package.json').version") ]; then npm publish ; fi + env: + NODE_AUTH_TOKEN: ${{secrets.npm_token}} diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md @@ -0,0 +1,6 @@ +<!-- 46b43825-f791-485e-9445-415ee7bbbf2d --> +# Contributor Code of Conduct + +This project adheres to No Code of Conduct. We are all adults. We accept anyone's contributions. Nothing else matters. + +For more information please visit the [No Code of Conduct](https://github.com/domgetter/NCoC) homepage. diff --git a/package.json b/package.json @@ -0,0 +1,19 @@ +{ + "name": "fwebc", + "version": "0.0.1", + "description": "", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/finwo/fwebc.git" + }, + "author": "Robin Bron <robin@finwo.nl>", + "license": "MIT", + "bugs": { + "url": "https://github.com/finwo/fwebc/issues" + }, + "homepage": "https://github.com/finwo/fwebc#readme" +}