Compare commits

..

No commits in common. "master" and "v1.0.0" have entirely different histories.

4 changed files with 30 additions and 47 deletions

View File

@ -1,25 +0,0 @@
---
kind: pipeline
type: docker
name: default
steps:
- name: npm
image: plugins/npm
depends_on: [ clone ]
settings:
token:
from_secret: NPM_TOKEN
email: info@odit.services
when:
event:
- tag
- name: sync to gitlab
image: appleboy/drone-git-push
depends_on: [ clone ]
settings:
branch: master
remote: git@gitlab.com:odit.services/mailymaily.git
ssh_key:
from_secret: GITLAB_SSHKEY

23
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,23 @@
image: node:14
stages:
- publish
# Install the dependencies
before_script:
- npm install
cache:
paths:
- node_modules/
# Build the image and publish it to the npmjs registry.
publish:
stage: publish
only:
- tags
- triggers
script:
- npm run build
- echo '//registry.npmjs.org/:_authToken=$NPM_TOKEN'>.npmrc
- npm publish

View File

@ -1,9 +1,8 @@
# ODIT.Services - MailyMaily
A better mailto based on [mailtoui](https://github.com/mariordev/mailtoui).
A better mailto based on mailtoui
## 🛠 Building
```bash
```
yarn && yarn build
```
@ -11,29 +10,16 @@ yarn && yarn build
[Example](index.html)
### Install
Via yarn/npm:
```bash
yarn add @odit/mailymaily
# Or
npm i @odit/mailymaily
```
Or just copy the file `dist/mailymaily.js` to your prefered folder.
### Link
Basic: Link the dist file `mailymaily.min.js` at the bottom of your footer.
```html
<script src="node_modules/@odit/mailymaily/dist/mailymaily.min.js"></script>
<script src="your/path/to/mailymaily.min.js"></script>
```
Alternatively: Add defer or async=false when linking in the header
```html
<script src="node_modules/@odit/mailymaily/dist/mailymaily.min.js" defer></script>
<script src="your/path/to/mailymaily.min.js" defer></script>
<!-- or -->
<script src="node_modules/@odit/mailymaily/dist/mailymaily.min.js" async=false></script>
<script src="your/path/to/mailymaily.min.js" async=false></script>
```
### VueJS & NuxtJs

View File

@ -1,7 +1,7 @@
{
"name": "@odit/mailymaily",
"description": "A simple way to enhance your mailto links with a convenient user interface.",
"version": "1.0.1",
"version": "1.0.0",
"license": "MIT",
"main": "./dist/mailymaily.min.js",
"devDependencies": {
@ -16,8 +16,7 @@
"gulp-sass": "^4.1.0"
},
"scripts": {
"build": "gulp",
"postversion": "git push --follow-tags"
"build": "gulp"
},
"browserslist": {
"browsers": [ "last 2 versions" ]