Compare commits

..

2 Commits

Author SHA1 Message Date
44cac6da4d chore: make scripts match readme
but also preserve the start script, because convention
2019-03-25 17:39:42 -07:00
d5e3f24497 fix: correctly assign todo id 2019-03-22 14:56:44 -07:00
2 changed files with 3 additions and 2 deletions

View File

@@ -3,7 +3,8 @@
"private": true,
"scripts": {
"build": "poi --prod",
"start": "poi --serve",
"dev": "poi --serve",
"start": "npm run dev",
"lint": "eslint ."
},
"prettier": {

View File

@@ -29,7 +29,7 @@ export default () =>
add({ state }, name) {
state.todos.push({
name,
id: state.todos.length,
id: state.todos.length + 1,
completed: false,
});
},