Skip to content

Commit

Permalink
Update dependencies and version
Browse files Browse the repository at this point in the history
  • Loading branch information
barcia committed Jun 23, 2020
1 parent 63179e8 commit 2b54a72
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 157 deletions.
6 changes: 0 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Temporary and testing files
temp/
temp.*
test/
test.*

# Dependency directories
node_modules/
bower_components/
Expand Down
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,21 @@ A simple slide menu in JS
npm install swibe
```

2. Import Swibe in your code, create a new instance and initialize it.
2. Add the basic markup
```html
<button id="swibe-menu-trigger">Menu</button>

<nav id="swibe-menu">
<ul>
<li><a>Item</a></li>
<li><a>Item</a></li>
<li><a>Item</a></li>
<li><a>Item</a></li>
</ul>
</nav>
```

3. Import Swibe in your code, create a new instance and initialize it.
```js
import Swibe from 'swibe';

Expand All @@ -27,6 +41,7 @@ You can instead load it into the HTML.
<script src="https://unpkg.com/swibe"></script>
```

You can see a basic working demo in `/docs/index.html`

## API

Expand Down
131 changes: 0 additions & 131 deletions README.old.md

This file was deleted.

15 changes: 1 addition & 14 deletions docs/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

<!-- JS-->
<script src="../../dist/swibe.min.js"></script>
<script src="../../dist/swibe.min.js"></script>
<!-- <script src="https://unpkg.com/swibe"></script> -->

</head>
Expand Down Expand Up @@ -42,21 +41,9 @@
</ul>
</nav>


<script>
const saludo = () => console.log('muy grande');
const despedida = () => console.log('en movil');
const uncall = () => console.log('abriuse');

const menu = new Swibe({
breakpoint: '400px'
});
const menu = new Swibe({});
menu.init();




</script>

</body>
</html>
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "swibe",
"version": "2.0.0-beta.2",
"version": "2.0.0",
"license": "MIT",
"description": "A simple swipe menu",
"homepage": "http://barcia.github.io/swibe",
"repository": "https://github.com/barcia/swibe",
"bugs": "https://github.com/barcia/swibe/issues",
"author": "Iván Barcia <ivan@barcia.gal> (https://barcia.gal)",
"author": "Iván Barcia <ivan@barcia.dev> (https://barcia.dev)",
"browser": "dist/swibe.min.js",
"files": [
"dist"
Expand All @@ -17,9 +17,9 @@
"prepare": "npm run build"
},
"devDependencies": {
"@babel/core": "^7.7.7",
"@babel/plugin-transform-object-assign": "^7.7.4",
"@babel/preset-env": "^7.7.7",
"@babel/core": "^7.10.3",
"@babel/plugin-transform-object-assign": "^7.10.3",
"@babel/preset-env": "^7.10.3",
"rollup": "^1.27.14",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-terser": "^5.1.3"
Expand Down

0 comments on commit 2b54a72

Please sign in to comment.