Compare commits

...

6 Commits

Author SHA1 Message Date
Nicolai Ort 0ad2542742 Removed old gitlab ci related stuff
continuous-integration/drone/push Build is passing Details
2020-10-30 23:27:19 +01:00
Nicolai Ort 7a8c8613c1 Ready for new release
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
2020-10-30 23:15:31 +01:00
Nicolai Ort 58391d1289 Switched to drone w/ gitlab sync 🚀
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
2020-10-30 23:12:57 +01:00
Nicolai Ort 9a9b242b91 Updated readme with the new installation instructions✏ 2020-08-30 15:40:00 +02:00
Nicolai Ort e064b94651 Now featuring automatic version numbering (including pushing back to git) 🔥 2020-08-30 15:26:53 +02:00
Nicolai Ort f3180c43aa Set default package access to public 2020-08-30 15:19:36 +02:00
4 changed files with 47 additions and 30 deletions

25
.drone.yml Normal file
View File

@ -0,0 +1,25 @@
---
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

View File

@ -1,23 +0,0 @@
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,8 +1,9 @@
# ODIT.Services - MailyMaily
A better mailto based on mailtoui
A better mailto based on [mailtoui](https://github.com/mariordev/mailtoui).
## 🛠 Building
```
```bash
yarn && yarn build
```
@ -10,16 +11,29 @@ 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="your/path/to/mailymaily.min.js"></script>
<script src="node_modules/@odit/mailymaily/dist/mailymaily.min.js"></script>
```
Alternatively: Add defer or async=false when linking in the header
```html
<script src="your/path/to/mailymaily.min.js" defer></script>
<script src="node_modules/@odit/mailymaily/dist/mailymaily.min.js" defer></script>
<!-- or -->
<script src="your/path/to/mailymaily.min.js" async=false></script>
<script src="node_modules/@odit/mailymaily/dist/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.0",
"version": "1.0.1",
"license": "MIT",
"main": "./dist/mailymaily.min.js",
"devDependencies": {
@ -16,7 +16,8 @@
"gulp-sass": "^4.1.0"
},
"scripts": {
"build": "gulp"
"build": "gulp",
"postversion": "git push --follow-tags"
},
"browserslist": {
"browsers": [ "last 2 versions" ]