Compare commits
6 Commits
Author | SHA1 | Date |
---|---|---|
Nicolai Ort | 0ad2542742 | |
Nicolai Ort | 7a8c8613c1 | |
Nicolai Ort | 58391d1289 | |
Nicolai Ort | 9a9b242b91 | |
Nicolai Ort | e064b94651 | |
Nicolai Ort | f3180c43aa |
|
@ -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
|
||||
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
|
||||
|
|
|
@ -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" ]
|
||||
|
|
Loading…
Reference in New Issue