Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build updates #41

Merged
merged 3 commits into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frameworks/lit-html/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"tsc": "tsc -p ./jsconfig.json --noEmit"
},
"dependencies": {
"lit-html": "^1.3.0"
"lit-html": "^1.4.1"
}
}
11 changes: 2 additions & 9 deletions frameworks/preact-hooks/.babelrc
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
{
"presets": [
[
"@babel/preset-env",
{
"loose": true,
"modules": false
}
],
[
"@babel/preset-react",
{
"pragma": "createElement",
"pragmaFrag": "Fragment"
"runtime": "automatic",
"importSource": "preact"
}
]
]
Expand Down
5 changes: 2 additions & 3 deletions frameworks/preact-hooks/jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"extends": "../../jsconfig.json",
"compilerOptions": {
"jsx": "react",
"jsxFactory": "createElement",
"jsxFragmentFactory": "Fragment"
"jsx": "react-jsx",
"jsxImportSource": "preact"
},
"exclude": ["node_modules", "dist"],
"include": ["./**/*"]
Expand Down
1 change: 0 additions & 1 deletion frameworks/preact-hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
},
"devDependencies": {
"@babel/core": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"@babel/preset-react": "^7.12.10",
"@rollup/plugin-babel": "^6.0.0"
}
Expand Down
2 changes: 1 addition & 1 deletion frameworks/preact-hooks/src/7GUIs-counter/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createElement, render } from "preact";
import { render } from "preact";
import { useState } from "preact/hooks";

function App() {
Expand Down
2 changes: 0 additions & 2 deletions frameworks/preact-hooks/src/7GUIs-flight-booker/DateEntry.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { createElement } from "preact";

export function DateEntry({
label,
date,
Expand Down
2 changes: 0 additions & 2 deletions frameworks/preact-hooks/src/7GUIs-flight-booker/TripType.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { createElement } from "preact";

export const oneWayFlight = "one-way";
export const returnFlight = "return";

Expand Down
2 changes: 1 addition & 1 deletion frameworks/preact-hooks/src/7GUIs-flight-booker/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createElement, render, Fragment } from "preact";
import { render } from "preact";
import { useState } from "preact/hooks";
import { today, validateDate } from "../../../../lib/date";
import { TripType, returnFlight, oneWayFlight } from "./TripType";
Expand Down
2 changes: 1 addition & 1 deletion frameworks/preact-hooks/src/7GUIs-temp-converter/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createElement, render, Fragment } from "preact";
import { render } from "preact";
import { useState } from "preact/hooks";

function App() {
Expand Down
2 changes: 1 addition & 1 deletion frameworks/preact-hooks/src/7GUIs-timer/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createElement, render, Fragment } from "preact";
import { render } from "preact";
import { useState, useRef, useLayoutEffect } from "preact/hooks";

function App() {
Expand Down
2 changes: 1 addition & 1 deletion frameworks/preact-hooks/src/hello-world/index.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { createElement, render } from "preact";
import { render } from "preact";

render(<div>Hello World!</div>, document.getElementById("app"));
11 changes: 2 additions & 9 deletions frameworks/preact/.babelrc
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
{
"presets": [
[
"@babel/preset-env",
{
"loose": true,
"modules": false
}
],
[
"@babel/preset-react",
{
"pragma": "createElement",
"pragmaFrag": "Fragment"
"runtime": "automatic",
"importSource": "preact"
}
]
]
Expand Down
5 changes: 2 additions & 3 deletions frameworks/preact/jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"extends": "../../jsconfig.json",
"compilerOptions": {
"jsx": "react",
"jsxFactory": "createElement",
"jsxFragmentFactory": "Fragment"
"jsx": "react-jsx",
"jsxImportSource": "preact"
},
"exclude": ["node_modules", "dist"],
"include": ["./**/*"]
Expand Down
1 change: 0 additions & 1 deletion frameworks/preact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
},
"devDependencies": {
"@babel/core": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"@babel/preset-react": "^7.12.10",
"@rollup/plugin-babel": "^6.0.0"
}
Expand Down
2 changes: 0 additions & 2 deletions frameworks/preact/src/7GUIs-CRUD/FilterInput.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { createElement } from "preact";

/**
* @param {{ value: string; onInput: preact.JSX.GenericEventHandler<HTMLInputElement>; }} props
*/
Expand Down
2 changes: 0 additions & 2 deletions frameworks/preact/src/7GUIs-CRUD/NameInput.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { createElement } from "preact";

/**
* @param {{ id: string; value: string; onInput: preact.JSX.GenericEventHandler<HTMLInputElement>; label: string; required?: boolean; }} props
*/
Expand Down
1 change: 0 additions & 1 deletion frameworks/preact/src/7GUIs-CRUD/PersonSelect.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { createElement } from "preact";
import { getDisplayName } from "./util";

/**
Expand Down
2 changes: 1 addition & 1 deletion frameworks/preact/src/7GUIs-CRUD/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createElement, render, Component } from "preact";
import { render, Component } from "preact";
import { createApi } from "../../../../lib/crud";
import { NameInput } from "./NameInput";
import { FilterInput } from "./FilterInput";
Expand Down
2 changes: 1 addition & 1 deletion frameworks/preact/src/7GUIs-counter/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createElement, Component, Fragment, render } from "preact";
import { Component, render } from "preact";

class App extends Component {
constructor() {
Expand Down
2 changes: 0 additions & 2 deletions frameworks/preact/src/7GUIs-flight-booker/DateEntry.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { createElement } from "preact";

export function DateEntry({
label,
date,
Expand Down
2 changes: 0 additions & 2 deletions frameworks/preact/src/7GUIs-flight-booker/TripType.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { createElement } from "preact";

export const oneWayFlight = "one-way";
export const returnFlight = "return";

Expand Down
2 changes: 1 addition & 1 deletion frameworks/preact/src/7GUIs-flight-booker/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createElement, render, Fragment, Component } from "preact";
import { render, Component } from "preact";
import { today, validateDate } from "../../../../lib/date";
import { TripType, oneWayFlight, returnFlight } from "./TripType";
import { DateEntry } from "./DateEntry";
Expand Down
2 changes: 1 addition & 1 deletion frameworks/preact/src/7GUIs-temp-converter/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createElement, render, Fragment, Component } from "preact";
import { render, Component } from "preact";

class App extends Component {
constructor() {
Expand Down
2 changes: 1 addition & 1 deletion frameworks/preact/src/7GUIs-timer/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createElement, render, Fragment, Component } from "preact";
import { render, Component } from "preact";

class App extends Component {
constructor() {
Expand Down
2 changes: 1 addition & 1 deletion frameworks/preact/src/hello-world/index.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { createElement, render } from "preact";
import { render } from "preact";

render(<div>Hello World!</div>, document.getElementById("app"));
11 changes: 1 addition & 10 deletions frameworks/react-hooks/.babelrc
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
{
"presets": [
[
"@babel/preset-env",
{
"loose": true,
"modules": false
}
],
"@babel/preset-react"
]
"presets": [["@babel/preset-react", { "runtime": "automatic" }]]
}
4 changes: 1 addition & 3 deletions frameworks/react-hooks/jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{
"extends": "../../jsconfig.json",
"compilerOptions": {
"jsx": "react",
"jsxFactory": "React.createElement",
"jsxFragmentFactory": "React.Fragment"
"jsx": "react-jsx"
},
"exclude": ["node_modules", "dist"],
"include": ["./**/*"]
Expand Down
1 change: 0 additions & 1 deletion frameworks/react-hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
},
"devDependencies": {
"@babel/core": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"@babel/preset-react": "^7.12.10",
"@rollup/plugin-babel": "^6.0.0",
"@rollup/plugin-commonjs": "25.0.0",
Expand Down
2 changes: 0 additions & 2 deletions frameworks/react-hooks/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@ const plugins = environment => [
babelHelpers: "bundled",
exclude: /node_modules/
}),
// @ts-ignore
replace({
preventAssignment: true,
values: {
"process.env.NODE_ENV": JSON.stringify(environment)
}
}),
// @ts-ignore
commonjs()
];

Expand Down
2 changes: 1 addition & 1 deletion frameworks/react-hooks/src/7GUIs-counter/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, Fragment } from "react";
import { useState } from "react";
import ReactDOM from "react-dom";

function App() {
Expand Down
2 changes: 0 additions & 2 deletions frameworks/react-hooks/src/7GUIs-flight-booker/DateEntry.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

export function DateEntry({
label,
date,
Expand Down
2 changes: 0 additions & 2 deletions frameworks/react-hooks/src/7GUIs-flight-booker/TripType.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

export const oneWayFlight = "one-way";
export const returnFlight = "return";

Expand Down
2 changes: 1 addition & 1 deletion frameworks/react-hooks/src/7GUIs-flight-booker/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, Fragment } from "react";
import { useState } from "react";
import ReactDOM from "react-dom";
import { today, validateDate } from "../../../../lib/date";
import { TripType, oneWayFlight, returnFlight } from "./TripType";
Expand Down
2 changes: 1 addition & 1 deletion frameworks/react-hooks/src/7GUIs-temp-converter/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, Fragment } from "react";
import { useState } from "react";
import ReactDOM from "react-dom";

function App() {
Expand Down
8 changes: 1 addition & 7 deletions frameworks/react-hooks/src/7GUIs-timer/index.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import React, {
useEffect,
useLayoutEffect,
useState,
useRef,
Fragment
} from "react";
import { useLayoutEffect, useState, useRef } from "react";
import ReactDOM from "react-dom";

function App() {
Expand Down
1 change: 0 additions & 1 deletion frameworks/react-hooks/src/hello-world/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import ReactDOM from "react-dom";

ReactDOM.render(<div>Hello World!</div>, document.getElementById("app"));
11 changes: 1 addition & 10 deletions frameworks/react/.babelrc
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
{
"presets": [
[
"@babel/preset-env",
{
"loose": true,
"modules": false
}
],
"@babel/preset-react"
]
"presets": [["@babel/preset-react", { "runtime": "automatic" }]]
}
4 changes: 1 addition & 3 deletions frameworks/react/jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{
"extends": "../../jsconfig.json",
"compilerOptions": {
"jsx": "react",
"jsxFactory": "React.createElement",
"jsxFragmentFactory": "React.Fragment"
"jsx": "react-jsx"
},
"exclude": ["node_modules", "dist"],
"include": ["./**/*"]
Expand Down
1 change: 0 additions & 1 deletion frameworks/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
},
"devDependencies": {
"@babel/core": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"@babel/preset-react": "^7.12.10",
"@rollup/plugin-babel": "^6.0.0",
"@rollup/plugin-commonjs": "25.0.0",
Expand Down
2 changes: 0 additions & 2 deletions frameworks/react/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@ const plugins = environment => [
babelHelpers: "bundled",
exclude: /node_modules/
}),
// @ts-ignore
replace({
preventAssignment: true,
values: {
"process.env.NODE_ENV": JSON.stringify(environment)
}
}),
// @ts-ignore
commonjs()
];

Expand Down
2 changes: 0 additions & 2 deletions frameworks/react/src/7GUIs-flight-booker/DateEntry.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

export function DateEntry({
label,
date,
Expand Down
2 changes: 0 additions & 2 deletions frameworks/react/src/7GUIs-flight-booker/TripType.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

export const oneWayFlight = "one-way";
export const returnFlight = "return";

Expand Down
1 change: 0 additions & 1 deletion frameworks/react/src/hello-world/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import ReactDOM from "react-dom";

ReactDOM.render(<div>Hello World!</div>, document.getElementById("app"));
11 changes: 1 addition & 10 deletions frameworks/solid-js/.babelrc
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
{
"presets": [
[
"@babel/preset-env",
{
"loose": true,
"modules": false
}
],
["solid"]
]
"presets": ["solid"]
}
1 change: 0 additions & 1 deletion frameworks/solid-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
},
"devDependencies": {
"@babel/core": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"@rollup/plugin-babel": "6.0.0",
"babel-preset-solid": "^1.8.0"
}
Expand Down
16 changes: 0 additions & 16 deletions frameworks/svelte/babel.config.js

This file was deleted.

Loading
Loading