Skip to content

Commit

Permalink
Deploy to GitHub pages
Browse files Browse the repository at this point in the history
  • Loading branch information
1Marc committed May 7, 2022
1 parent 1d66e83 commit 854dd40
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ const App = {
}
};

App.init();
App.init();
2 changes: 1 addition & 1 deletion js/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ export const escapeForHTML = (str) =>
.replace(/"/g, '"')
.replace(/'/g, ''')

export const getURLHash = () => document.location.hash.replace(/^#\//, '');
export const getURLHash = () => document.location.hash.replace(/^#\//, '');
2 changes: 1 addition & 1 deletion js/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ export const TodoStore = class extends EventTarget {
this.todos = this.todos.map(todo => ({ ...todo, completed }));
this._save();
}
}
}
4 changes: 3 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ Seems it is pretty simple to build fairly complex things these days in modern Ja

Here's my Vanilla JavaScript implimentation – initial version took 60 minutes total to write (see first commit)

- 175 lines of code total
- 159 lines of code total
- No build tools
- JavaScript modules
- Inital implementation done in an hour, then cleaned it up with ~30 min of refactoring

[View the working example on GitHub pages](https://1marc.github.io/todomvc-vanillajs-2022/)

Related poll: "Would you build a large web app in 2022 with Vanilla JS?" https://twitter.com/1Marc/status/1520146662924206082

Critism, PRs and feedback welcome!
Expand Down

0 comments on commit 854dd40

Please sign in to comment.