Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
0ad2542742 | |||
7a8c8613c1 | |||
58391d1289 | |||
9a9b242b91 | |||
e064b94651 | |||
f3180c43aa |
25
.drone.yml
Normal file
25
.drone.yml
Normal 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
|
@ -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
|
|
24
README.md
24
README.md
@ -1,8 +1,9 @@
|
|||||||
# ODIT.Services - MailyMaily
|
# ODIT.Services - MailyMaily
|
||||||
A better mailto based on mailtoui
|
A better mailto based on [mailtoui](https://github.com/mariordev/mailtoui).
|
||||||
|
|
||||||
|
|
||||||
## 🛠 Building
|
## 🛠 Building
|
||||||
```
|
```bash
|
||||||
yarn && yarn build
|
yarn && yarn build
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -10,16 +11,29 @@ yarn && yarn build
|
|||||||
|
|
||||||
[Example](index.html)
|
[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.
|
Basic: Link the dist file `mailymaily.min.js` at the bottom of your footer.
|
||||||
```html
|
```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
|
Alternatively: Add defer or async=false when linking in the header
|
||||||
```html
|
```html
|
||||||
<script src="your/path/to/mailymaily.min.js" defer></script>
|
<script src="node_modules/@odit/mailymaily/dist/mailymaily.min.js" defer></script>
|
||||||
<!-- or -->
|
<!-- 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
|
### VueJS & NuxtJs
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@odit/mailymaily",
|
"name": "@odit/mailymaily",
|
||||||
"description": "A simple way to enhance your mailto links with a convenient user interface.",
|
"description": "A simple way to enhance your mailto links with a convenient user interface.",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "./dist/mailymaily.min.js",
|
"main": "./dist/mailymaily.min.js",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@ -16,7 +16,8 @@
|
|||||||
"gulp-sass": "^4.1.0"
|
"gulp-sass": "^4.1.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "gulp"
|
"build": "gulp",
|
||||||
|
"postversion": "git push --follow-tags"
|
||||||
},
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
"browsers": [ "last 2 versions" ]
|
"browsers": [ "last 2 versions" ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user