Skip to content

Commit

Permalink
Updated...
Browse files Browse the repository at this point in the history
  • Loading branch information
Mardix committed Apr 22, 2019
1 parent 3f86693 commit 6549ab2
Show file tree
Hide file tree
Showing 9 changed files with 268 additions and 69 deletions.
21 changes: 21 additions & 0 deletions LICENSE
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2019 Mardix

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
24 changes: 9 additions & 15 deletions dev-notes.md
@@ -1,24 +1,18 @@

## Some Dev Notes
### Some Dev Notes

### Build the dist file

```
rollup -c
```
Build the dist file
`rollup -c`

---

### Get the gzip size:
Get the gzip size:
`npx gzip-size-cli ./dist/relift-html.esm.js`

```
npx gzip-size ./dist/relift.min.js
```

Brotli compress
`npx brotli-cli ./dist/relift-html.esm.js`

### Brotli compress
npx brotli-cli ./dist/relift.min.js

### filesize

npx filesize-cli ./dist/relift.min.js
filesize
`npx filesize-cli ./dist/relift-html.esm.js`
8 changes: 8 additions & 0 deletions dist/relift-html.esm.js

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

10 changes: 0 additions & 10 deletions dist/relift.min.js

This file was deleted.

Binary file removed dist/relift.min.js.br
Binary file not shown.
13 changes: 2 additions & 11 deletions examples/test.html
Expand Up @@ -48,17 +48,8 @@ <h3 class="title">Counter</h3>
<input type="text" r-value="this.count">
<textarea r-value="this.countNum"></textarea>
<input type="checkbox" r-value="5">

<select
r-select="items"
r-opt-text="${$item.key} ${$item.value}"
r-opt-value="$item.id"
r-opt-title="Choose your destiny"
r-opt-title-value="0000"
>
${(this.something).map(($item, $index) => {
return `<option r></option>`
})}
Date: ${new Date().toISOString().slice(0, 10)}

</select>

<button @click="down" class="button-outline">DOWN</button>
Expand Down
14 changes: 7 additions & 7 deletions package.json
@@ -1,9 +1,9 @@
{
"name": "relift",
"pkgName": "reLiftHTML",
"name": "relift-html",
"pkgName": "reLift-HTML",
"version": "0.0.1",
"description": "",
"main": "dist/relift.min.js",
"description": "A super easy, fast and modern templating library for HTML that uses Javascript template literals in HTML",
"main": "dist/relift-html.esm.js",
"scripts": {
"deploy-docs": "gh-pages -d docs/build",
"test": "jest --verbose ./test/"
Expand All @@ -13,14 +13,14 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/mardix/relift.git"
"url": "git+https://github.com/mardix/relift-html.git"
},
"author": "Mardix",
"license": "MIT",
"bugs": {
"url": "https://github.com/mardix/relift/issues"
"url": "https://github.com/mardix/relift-html/issues"
},
"homepage": "https://github.com/mardix/relift",
"homepage": "https://github.com/mardix/relift-html",
"devDependencies": {
"@babel/core": "^7.4.3",
"@babel/preset-env": "^7.4.3",
Expand Down

0 comments on commit 6549ab2

Please sign in to comment.