Skip to content

Commit

Permalink
refactore(core): transform cofeescript to ES6
Browse files Browse the repository at this point in the history
Merge pull request #1 from meteorrn/decaffeinate
- Decaffeinate to ES6
- Added prettier as linter
- Update tests to use mocha
- Add nyc for code coverage
  • Loading branch information
jankapunkt committed Jan 17, 2022
2 parents 2812f10 + 7b6a954 commit 05f9a2e
Show file tree
Hide file tree
Showing 46 changed files with 11,625 additions and 2,251 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ node_modules
test/browserified.js
dist/
.DS_Store
examples/todomvc-react/node_modules
examples/todomvc-react/node_modules

.nyc_output/
coverage/
7 changes: 7 additions & 0 deletions .mocharc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
recursive: true
reporter: "spec"
retries: 1
slow: 20
timeout: 2000
ui: "bdd"
# for more options see here https://github.com/mochajs/mocha/blob/master/example/config/.mocharc.yml
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
[![Tests](https://github.com/meteorrn/minimongo-cache/actions/workflows/tests.yml/badge.svg)](https://github.com/meteorrn/minimongo-cache/actions/workflows/tests.yml)
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
![GitHub](https://img.shields.io/github/license/meteorrn/minimongo-cache)

This package is used by `@meteorrn/core` to emulate the internal minimongo instance that exists on Meteor web apps. You should not interact with this package directly.
52 changes: 26 additions & 26 deletions examples/todomvc-react/index.html
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en" data-framework="react">
<head>
<meta charset="utf-8">
<title>React • TodoMVC</title>
<link rel="stylesheet" href="node_modules/todomvc-common/base.css">
<link rel="stylesheet" href="node_modules/todomvc-app-css/index.css">
</head>
<body>
<section class="todoapp"></section>
<footer class="info">
<p>Double-click to edit a todo</p>
<p>Created by <a href="http://github.com/petehunt/">petehunt</a></p>
<p>Part of <a href="http://todomvc.com">TodoMVC</a></p>
</footer>
<head>
<meta charset="utf-8" />
<title>React • TodoMVC</title>
<link rel="stylesheet" href="node_modules/todomvc-common/base.css" />
<link rel="stylesheet" href="node_modules/todomvc-app-css/index.css" />
</head>
<body>
<section class="todoapp"></section>
<footer class="info">
<p>Double-click to edit a todo</p>
<p>Created by <a href="http://github.com/petehunt/">petehunt</a></p>
<p>Part of <a href="http://todomvc.com">TodoMVC</a></p>
</footer>

<script src="node_modules/todomvc-common/base.js"></script>
<script src="node_modules/react/dist/react-with-addons.js"></script>
<script src="node_modules/classnames/index.js"></script>
<script src="node_modules/react/dist/JSXTransformer.js"></script>
<script src="node_modules/director/build/director.js"></script>
<script src="node_modules/todomvc-common/base.js"></script>
<script src="node_modules/react/dist/react-with-addons.js"></script>
<script src="node_modules/classnames/index.js"></script>
<script src="node_modules/react/dist/JSXTransformer.js"></script>
<script src="node_modules/director/build/director.js"></script>
<script src="../../dist/minimongo.js"></script>

<script src="js/utils.js"></script>
<script src="js/todoDomain.js"></script>
<!-- jsx is an optional syntactic sugar that transforms methods in React's
<script src="js/utils.js"></script>
<script src="js/todoDomain.js"></script>
<!-- jsx is an optional syntactic sugar that transforms methods in React's
`render` into an HTML-looking format. Since the two models above are
unrelated to React, we didn't need those transforms. -->
<script type="text/jsx" src="js/todoItem.jsx"></script>
<script type="text/jsx" src="js/footer.jsx"></script>
<script type="text/jsx" src="js/app.jsx"></script>
</body>
<script type="text/jsx" src="js/todoItem.jsx"></script>
<script type="text/jsx" src="js/footer.jsx"></script>
<script type="text/jsx" src="js/app.jsx"></script>
</body>
</html>
Loading

0 comments on commit 05f9a2e

Please sign in to comment.