Skip to content

Commit

Permalink
Updates to easier allow for running in CF workers
Browse files Browse the repository at this point in the history
  • Loading branch information
SvanteRichter committed Sep 13, 2023
1 parent 73cf31d commit 384ce86
Show file tree
Hide file tree
Showing 18 changed files with 153 additions and 84 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ No-dependency, no-build, small JS view-library/framework-ish-thing.
* Small:
* [Smallest framework in krausest benchmarks](https://krausest.github.io/js-framework-benchmark/index.html)
* ~200 LOC
* ~1kb minified and compressed (1142b with brotli, 1314b with gzip, 2819b uncompressed)
* ~1kb minified and compressed (1140b with brotli, 1310b with gzip, 2809b uncompressed)
* Usable without bundling/compilation/transpilation
* Supports HTML, SVG, MathML, Atom feeds and sitemaps.
* Types to validate attributes and children
Expand Down
2 changes: 1 addition & 1 deletion examples/jsx/index.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions examples/jsx/index.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/ssr/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/ssr/index.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions examples/ssr/index.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/todo/index.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions examples/todo/index.min.js.map

Large diffs are not rendered by default.

135 changes: 82 additions & 53 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "skruv",
"version": "0.7.3",
"version": "0.7.4",
"description": "No-dependency, no-build, small JS framework",
"keywords": [],
"bugs": {
Expand Down
2 changes: 2 additions & 0 deletions utils/bundle-react.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import * as esbuild from 'esbuild'

import httpPlugin from './esbuildHttpPlugin.js'
import inlineFile from './esbuildInlineFile.js'
import minifyCssLiteral from './esbuildMinifyCssLiteral.js'

// This file is meant to work with both node and deno
Expand All @@ -26,6 +27,7 @@ if (!input || !output) {
jsx: 'automatic',
jsxImportSource: '@skruv/jsx-react',
plugins: [
inlineFile,
httpPlugin,
minifyCssLiteral
],
Expand Down

0 comments on commit 384ce86

Please sign in to comment.