Compare commits
No commits in common. "master" and "v1.0.0" have entirely different histories.
25
.drone.yml
25
.drone.yml
@ -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
23
.gitlab-ci.yml
Normal 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
|
24
README.md
24
README.md
@ -1,9 +1,8 @@
|
|||||||
# ODIT.Services - MailyMaily
|
# ODIT.Services - MailyMaily
|
||||||
A better mailto based on [mailtoui](https://github.com/mariordev/mailtoui).
|
A better mailto based on mailtoui
|
||||||
|
|
||||||
|
|
||||||
## 🛠 Building
|
## 🛠 Building
|
||||||
```bash
|
```
|
||||||
yarn && yarn build
|
yarn && yarn build
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -11,29 +10,16 @@ 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="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
|
Alternatively: Add defer or async=false when linking in the header
|
||||||
```html
|
```html
|
||||||
<script src="node_modules/@odit/mailymaily/dist/mailymaily.min.js" defer></script>
|
<script src="your/path/to/mailymaily.min.js" defer></script>
|
||||||
<!-- or -->
|
<!-- 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
|
### 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.1",
|
"version": "1.0.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "./dist/mailymaily.min.js",
|
"main": "./dist/mailymaily.min.js",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@ -16,8 +16,7 @@
|
|||||||
"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