Commit 65b70d03 authored by Sam Saccone's avatar Sam Saccone

Update canjs to use npm not bower.

Ran into 2 big issues with canjs, napa came in handy once more.

For 1 canjs does not come with a built dist file. Installing from npm
does not work since they messed up the 2.0.7 release and forgot to
include a bower dep. thus even installing and building is a no go.

The second pice was @passy's localstorage repo has never been published
to npm thus i had to get it from the tag on the repo.

Needless to say this was plenty of fun.
parent 79bba43d
node_modules/.bin/*
node_modules/canjs-localstorage/*
!node_modules/canjs-localstorage/can.localstorage.js
node_modules/napa/*
node_modules/canjs/*
!node_modules/canjs/can.jquery.js
node_modules/jquery/.bowerrc
node_modules/jquery/.npmignore
node_modules/jquery/AUTHORS.txt
node_modules/jquery/CONTRIBUTING.md
node_modules/jquery/MIT-LICENSE.txt
node_modules/jquery/README.md
node_modules/jquery/bower.json
node_modules/jquery/package.json
node_modules/jquery/.jscsrc
node_modules/jquery/src/*
node_modules/jquery/dist/*
!node_modules/jquery/dist/jquery.js
node_modules/todomvc-common/*
!node_modules/todomvc-common/base.js
!node_modules/todomvc-common/base.css
{
"name": "todomvc-canjs",
"version": "0.0.0",
"dependencies": {
"jquery": "~2.0.0",
"canjs": "~2.0.0",
"canjs-localstorage": "~0.2.0",
"todomvc-common": "~0.3.0"
}
}
......@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<title>CanJS • TodoMVC</title>
<link rel="stylesheet" href="bower_components/todomvc-common/base.css">
<link rel="stylesheet" href="node_modules/todomvc-common/base.css">
</head>
<body>
<section id="todoapp">
......@@ -52,10 +52,10 @@
</footer>
</todo-app>
</script>
<script src="bower_components/todomvc-common/base.js"></script>
<script src="bower_components/jquery/jquery.js"></script>
<script src="bower_components/canjs/can.jquery.js"></script>
<script src="bower_components/canjs-localstorage/can.localstorage.js"></script>
<script src="node_modules/todomvc-common/base.js"></script>
<script src="node_modules/jquery/dist/jquery.js"></script>
<script src="node_modules/canjs/can.jquery.js"></script>
<script src="node_modules/canjs-localstorage/can.localstorage.js"></script>
<script src="js/models/todo.js"></script>
<script src="js/components/todo-app.js"></script>
<script src="js/app.js"></script>
......
{
"dependencies": {
"todomvc-common": "^0.3.0",
"jquery": "^2.1.3"
},
"devDependencies": {
"napa": "^1.2.0"
},
"scripts": {
"postinstall": "napa https://github.com/bitovi/canjs.com/archive/v2.0.7.zip:canjs passy/canjs-localstorage#v0.2.0:canjs-localstorage"
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment