This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import defaultExport from 'react' | |
export * from 'react' | |
export default defaultExport |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "@es/react", | |
"version": "1.0.0", | |
"description": "", | |
"license": "UNLICENSED", | |
"module": "index.js", | |
"dependencies": { | |
"react": "*" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const browserSyncFactory = require('browser-sync') | |
const history = require('connect-history-api-fallback') | |
const babel = require("@babel/core") | |
const fs = require('fs') | |
const browserSync = browserSyncFactory.create() | |
browserSync.watch('app/**/*').on("change", browserSync.reload) | |
browserSync.watch('.tmp/**/*').on("change", browserSync.reload) | |
browserSync.watch('views/*.jsx', function (event, file) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="importmap"> | |
{ | |
"imports": { | |
"react": "/web_modules/@es/react.js", | |
"react-dom": "/web_modules/@es/react-dom.js" | |
} | |
} | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"webmodules": { | |
"webDependencies": [ | |
"@es/react", | |
"@es/react-dom" | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import ReactDOM from 'react-dom' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// m: Mithril lib | |
// I: Immutable JS | |
// M: Most Core | |
import { m, I, M } from './vendor.mjs' | |
// Function to generate mithril component with stream integration | |
import { mm } from './mm.mjs' | |
// We import component View e VM | |
import mainView from './view/main.mjs' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// m: Mithril lib | |
import { m } from '../vendor.mjs' | |
export default function itemView ( | |
/* Immutable component state */ | |
{ item, editing, editingText }, | |
/* Trigger functions returned by Item VM */ | |
{ | |
_$keyup, | |
_$input, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// m: Mithril lib | |
// M: Most Core lib | |
import { m, M } from '../vendor.mjs' | |
// T: Triggers imported from High-Leve model Todo | |
// $list: Stream imported from High-Leve model Todo | |
import { T as TodoT, $list, enter, esc } from '../model/todo.mjs' | |
// Utility function to generate many streams/triggers | |
import { adapters } from '../mm.mjs' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// I: Immutable js library | |
// M: Most js | |
// m: Mithril | |
import { m, I, M } from './vendor.mjs' | |
export { mm, adapters, route } | |
// ... | |
// Function that generate mithril components based on most streams | |
// initialState: Map of initial state. Streams returned by VM will be matched by name to update this keys values. |