Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
update to use bower via standard convention.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Dec 13, 2013
1 parent d33386c commit 66d3ef8
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 354 deletions.
3 changes: 3 additions & 0 deletions .bowerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"directory": "components"
}
2 changes: 1 addition & 1 deletion app/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ body {
body {
font: 14px 'Helvetica Neue', Helvetica, Arial, sans-serif;
line-height: 1.4em;
background: #eaeaea url('../bower_components/todomvc-common/bg.png');
background: #eaeaea url('../components/todomvc-common/bg.png');
color: #4d4d4d;
width: 550px;
margin: 0 auto;
Expand Down
5 changes: 3 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"version": "0.0.0",
"dependencies": {
"todomvc-common": "~0.1.4",
"director": "*",
"polymer": "*"
"polymer": "Polymer/polymer-selector",
"polymer": "Polymer/flatiron-director",
"polymer": "Polymer/polymer-localstorage"
}
}
2 changes: 2 additions & 0 deletions elements/td-input.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<link rel="import" href="../components/polymer/polymer.html">

<polymer-element name="td-input" extends="input" on-keyup="{{keyupAction}}" on-keypress="{{keypressAction}}">
<script>
(function() {
Expand Down
4 changes: 3 additions & 1 deletion elements/td-item.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<link rel="import" href="../components/polymer/polymer.html">
<link rel="import" href="td-input.html">

<polymer-element name="td-item" extends="li" attributes="item editing" on-blur="{{commitAction}}">
<template>
<link rel="stylesheet" href="td-item.css">
<div class="view {{completed: item.completed; editing: editing}}" hidden?="{{editing}}" on-dblclick="{{editAction}}">
<div class="view {{ {completed: item.completed, editing: editing} | tokenList }}" hidden?="{{editing}}" on-dblclick="{{editAction}}">
<input type="checkbox" class="toggle" checked="{{item.completed}}" on-click="{{itemChangeAction}}">
<label>{{item.title}}</label>
<button class="destroy" on-click="{{destroyAction}}"></button>
Expand Down
2 changes: 2 additions & 0 deletions elements/td-model.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<link rel="import" href="../components/polymer/polymer.html">

<polymer-element name="td-model" attributes="filter items storageId">
<script>
Polymer('td-model', {
Expand Down
6 changes: 4 additions & 2 deletions elements/td-todos.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<link rel="import" href="../lib-elements/polymer-selector.html">
<link rel="import" href="../lib-elements/flatiron-director.html">

<link rel="import" href="../components/polymer/polymer.html">
<link rel="import" href="../components/polymer-selector/polymer-selector.html">
<link rel="import" href="../components/flatiron-director/flatiron-director.html">
<link rel="import" href="td-input.html">
<link rel="import" href="td-item.html">

Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Polymer • TodoMVC</title>
<link rel="stylesheet" href="app/app.css">
<link rel="import" href="lib-elements/polymer-localstorage.html">
<script src="components/platform/platform.js"></script>
<link rel="import" href="components/polymer-localstorage/polymer-localstorage.html">
<link rel="import" href="elements/td-model.html">
<link rel="import" href="elements/td-todos.html">
<script src="bower_components/polymer/polymer.min.js"></script>
</head>
<body>
<header>
Expand Down
31 changes: 0 additions & 31 deletions lib-elements/flatiron-director.html

This file was deleted.

53 changes: 0 additions & 53 deletions lib-elements/polymer-localstorage.html

This file was deleted.

64 changes: 0 additions & 64 deletions lib-elements/polymer-selection.html

This file was deleted.

Loading

0 comments on commit 66d3ef8

Please sign in to comment.