Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

Commit

Permalink
v2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jarstone committed Dec 17, 2021
1 parent f678a6b commit 2569497
Show file tree
Hide file tree
Showing 17 changed files with 20 additions and 22 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,24 @@ npm install tagin

Install from cdn:
```html
<link rel="stylesheet" href="https://unpkg.com/[email protected].0/dist/tagin.min.css">
<script src="https://unpkg.com/[email protected].0/dist/tagin.min.js"></script>
<link rel="stylesheet" href="https://unpkg.com/[email protected].1/dist/tagin.min.css">
<script src="https://unpkg.com/[email protected].1/dist/tagin.min.js"></script>
```

## Usage/Examples

Place `css` between `<head></head>` tags:
```html
<head>
<link rel="stylesheet" href="https://unpkg.com/[email protected].0/dist/tagin.min.css">
<link rel="stylesheet" href="https://unpkg.com/[email protected].1/dist/tagin.min.css">
</head>
```

Place `js` before `</body>` tag:
```html
<body>
...
<script src="https://unpkg.com/[email protected].0/dist/tagin.min.js"></script>
<script src="https://unpkg.com/[email protected].1/dist/tagin.min.js"></script>
</body>
```
* You can also use tagin as javascript module:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions dist/index.html → demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="https://unpkg.com/prismjs/themes/prism.css">
<link rel="stylesheet" href="tagin.css">
<link rel="stylesheet" href="https://unpkg.com/tagin@2.0.1/dist/tagin.min.css">
<title>Tagin</title>
</head>
<body class="bg-lights position-relative" data-bs-spy="scroll" data-bs-target="#list-example">
Expand Down Expand Up @@ -52,12 +52,12 @@ <h3 class="mt-5" id="installation">Installation</h3>
<h3 class="mt-5" id="usage">Usage/Examples</h3>
<p class="text-secondary">Place <code>css</code> between <code>&lt;head&gt;&lt;/head&gt;</code> tags:</p>
<pre><code class="language-html">&lt;head&gt;
&lt;link rel="stylesheet" href="https://unpkg.com/[email protected].0/dist/tagin.min.css"&gt;
&lt;link rel="stylesheet" href="https://unpkg.com/[email protected].1/dist/tagin.min.css"&gt;
&lt;/head&gt;</code></pre>
<p class="text-secondary mt-5">Place <code>js</code> before <code>&lt;/body&gt;</code> tag:</p>
<pre><code class="language-html">&lt;body&gt;
...
&lt;script src="https://unpkg.com/[email protected].0/dist/tagin.min.js"&gt;&lt;/script&gt;
&lt;script src="https://unpkg.com/[email protected].1/dist/tagin.min.js"&gt;&lt;/script&gt;
&lt;/body&gt;</code></pre>
<p class="mt-5">* You can also use tagin as javascript module:</p>
<pre><code class="language-html">&lt;script src="yourscript.js" type="module"&gt;&lt;/script&gt;</code></pre>
Expand Down Expand Up @@ -426,7 +426,7 @@ <h3 class="mt-5" id="methods">Methods</h3>
<script src="https://unpkg.com/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://unpkg.com/prismjs/prism.js"></script>
<script src="https://unpkg.com/prismjs/plugins/file-highlight/prism-file-highlight.min.js"></script>
<script src="./tagin.js"></script>
<script src="https://unpkg.com/tagin@2.0.1/dist/tagin.min.js"></script>
<script>

document.querySelectorAll('.tagin:not([id])').forEach((el) => {
Expand Down
2 changes: 1 addition & 1 deletion dist/tagin.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Tagin v2.0.0 (https://tagin.netlify.app/)
* Tagin v2.0.1 (https://tagin.netlify.app/)
* Copyright 2020-2021 Erwin Heldy G
* Licensed under MIT (https://github.com/erwinheldy/tagin/blob/master/LICENSE)
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/tagin.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/tagin.module.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Tagin v2.0.0 (https://tagin.netlify.app/)
* Tagin v2.0.1 (https://tagin.netlify.app/)
* Copyright 2020-2021 Erwin Heldy G
* Licensed under MIT (https://github.com/erwinheldy/tagin/blob/master/LICENSE)
*/
Expand Down
Empty file removed dist/test.js
Empty file.
20 changes: 9 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tagin",
"version": "2.0.0",
"version": "2.0.1",
"description": "Simple tag input for Bootstrap",
"source": "src/tagin.ts",
"main": "dist/tagin.js",
Expand All @@ -27,25 +27,23 @@
"build:css:min": "cssmin-recursive dist",
"build:js": "run-s build:js:ts build:js:min build:js:min:module",
"build:js:ts": "rollup -c --silent",
"build:js:min": "uglifyjs dist/tagin.js -c -m --mangle-props reserved -o dist/tagin.min.js",
"build:js:min:module": "uglifyjs dist/tagin.module.js -c -m --mangle-props reserved -o dist/tagin.module.min.js",
"build:js:min": "uglifyjs dist/tagin.js -c -m --mangle-props reserved=[Tagin] -o dist/tagin.min.js",
"build:js:min:module": "uglifyjs dist/tagin.module.js -c -m --mangle-props -o dist/tagin.module.min.js",
"build:js:dts": "",
"dev": "run-p dev:css dev:js serve",
"dev": "run-p dev:css dev:js",
"dev:css": "sass --source-map --embed-sources src/tagin.scss:dist/tagin.css -w",
"dev:js": "rollup -c -w",
"serve": "tinyliveserver --root=dist --watch=dist --quiet"
"dev:js": "rollup -c -w"
},
"devDependencies": {
"@rollup/plugin-typescript": "8.3.0",
"bootstrap": "5.1.3",
"cssmin-recursive": "1.0.0",
"npm-run-all": "4.1.5",
"rimraf": "3.0.2",
"rollup": "2.60.2",
"sass": "1.44.0",
"tinyliveserver": "1.0.1",
"rollup": "2.61.1",
"sass": "1.45.0",
"tslib": "2.3.1",
"typescript": "4.5.2",
"uglify-js": "3.14.4"
"typescript": "4.5.4",
"uglify-js": "3.14.5"
}
}

0 comments on commit 2569497

Please sign in to comment.