Browse Source

feat: add basic drone CI

tags/v1.0.0
Dany Sluijk 6 months ago
parent
commit
a60ff562d6
Signed by: dsluijk GPG Key ID: EEEBA79CCB6729B0
4 changed files with 65 additions and 2 deletions
  1. +48
    -0
      .drone.yml
  2. +8
    -0
      .releaserc
  3. +5
    -0
      README.md
  4. +4
    -2
      package.json

+ 48
- 0
.drone.yml View File

@@ -0,0 +1,48 @@
---
kind: pipeline
type: kubernetes
name: Checks

steps:
- name: Print versions
image: node
commands:
- yarn -v
- node -v
- openssl version
- name: Linting
image: node
commands:
- yarn
- yarn lint
- name: Smoke Test
image: node
commands:
- yarn build
- name: Build example
image: node
commands:
- cd example
- yarn
- yarn build

---
kind: pipeline
type: kubernetes
name: Release

steps:
- name: Semantic Release
image: node
commands:
- yarn
- yarn global add semantic-release
- semantic-release
when:
branch:
- master
event:
- push

depends_on:
- Checks

+ 8
- 0
.releaserc View File

@@ -0,0 +1,8 @@
{
"repositoryUrl": "git@git.dany.dev:dsluijk/teenyui.git",
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm"
]
}

+ 5
- 0
README.md View File

@@ -1,3 +1,8 @@
# teenyui

![Drone](https://img.shields.io/drone/build/dsluijk/teenyui?server=https%3A%2F%2Fci.dany.dev&style=flat-square)
![NPM Version](https://img.shields.io/npm/v/teenyui?style=flat-square)
![Bundle Size](https://img.shields.io/bundlephobia/minzip/teenyui?style=flat-square)
![NPM License](https://img.shields.io/npm/l/teenyui?style=flat-square)

An UI library made for Preact

+ 4
- 2
package.json View File

@@ -5,7 +5,7 @@
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"repository": "git@github.com:dsluijk/teenyui.git",
"repository": "git@git.dany.dev:dsluijk/teenyui.git",
"author": "Dany Sluijk <me@dany.dev>",
"license": "GPL-3.0",
"sideEffects": false,
@@ -15,12 +15,14 @@
"build": "rollup -c",
"lint": "yarn lint-ts && yarn lint-scss",
"lint-ts": "eslint --max-warnings 0 --ext .js,.jsx,.ts,.tsx ./src",
"lint-scss": "stylelint './src/**/*.scss'"
"lint-scss": "stylelint './src/**/*.scss'",
"commit": "cz"
},
"devDependencies": {
"@fortawesome/free-solid-svg-icons": "^5.15.1",
"@typescript-eslint/eslint-plugin": "^4.3.0",
"@typescript-eslint/parser": "^4.3.0",
"commitizen": "^4.2.2",
"eslint": "^7.10.0",
"eslint-config-prettier": "^6.12.0",
"preact": "^10.5.5",


Loading…
Cancel
Save