Skip to content

Commit

Permalink
npm support
Browse files Browse the repository at this point in the history
  • Loading branch information
adamschwartz committed Sep 21, 2017
1 parent 010f16d commit c116a0f
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 12 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.DS_Store
bower_components/
node_modules/
7 changes: 5 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"authors": [
"Adam Schwartz"
],
"description": "Chrome-style tabs in HTML/CSS",
"description": "Chrome-style tabs in HTML/CSS/JS",
"main": "js/chrome-tabs.js",
"keywords": [
"chrome",
Expand All @@ -18,5 +18,8 @@
"bower_components",
"test",
"tests"
]
],
"dependencies": {
"draggabilly": "2.1.1"
}
}
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Chrome Tabs - Chrome-style Tabs in HTML/CSS/ES6</title>
<meta name="description" content="Chrome-style tabs in HTML/CSS and JavaScript (ES6).">
<meta name="description" content="Chrome-style tabs in HTML/CSS/JS.">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="demo/css/demo.css">
<link rel="stylesheet" href="css/chrome-tabs.css">
Expand Down Expand Up @@ -69,7 +69,7 @@
<script async="true" id="_carbonads_js" src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=adamschwartzco"></script>
</div>

<script src="js/deps/draggabilly.js"></script>
<script src="https://unpkg.com/draggabilly@2.1.1/dist/draggabilly.pkgd.min.js"></script>
<script src="js/chrome-tabs.js"></script>
<script>
var el = document.querySelector('.chrome-tabs')
Expand Down
8 changes: 0 additions & 8 deletions js/deps/draggabilly.js

This file was deleted.

27 changes: 27 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "chrome-tabs",
"version": "1.0.0",
"description": "Chrome-style tabs in HTML/CSS/JS",
"main": "js/chrome-tabs.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/adamschwartz/chrome-tabs.git"
},
"keywords": [
"chrome",
"tabs",
"html"
],
"author": "Adam Schwartz",
"license": "MIT",
"bugs": {
"url": "https://github.com/adamschwartz/chrome-tabs/issues"
},
"homepage": "https://github.com/adamschwartz/chrome-tabs#readme",
"dependencies": {
"draggabilly": "2.1.1"
}
}

0 comments on commit c116a0f

Please sign in to comment.