feat: use import maps instead of deps files (#209)

This commit updates fresh to use import maps instead of deps files in generated projects.
This commit is contained in:
Luca Casonato
2022-05-23 19:35:15 +02:00
committed by GitHub
parent fd1346ed6b
commit 80598d07fd
71 changed files with 188 additions and 141 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
/** @jsx h */
import { h, tw } from "../deps.client.ts";
import { h } from "$fresh/runtime.ts";
import { tw } from "../utils/twind.ts";
export function RoundedButton(props: h.JSX.HTMLAttributes<HTMLButtonElement>) {
return (
+3 -1
View File
@@ -1,6 +1,8 @@
/** @jsx h */
import { apply, h, tw } from "../deps.client.ts";
import { h } from "$fresh/runtime.ts";
import { apply, tw } from "../utils/twind.ts";
import {
CATEGORIES,
TableOfContentsCategory,
+2 -1
View File
@@ -1,6 +1,7 @@
/** @jsx h */
import { h, tw } from "../deps.client.ts";
import { h } from "$fresh/runtime.ts";
import { tw } from "../utils/twind.ts";
const LINKS = [
{
+2 -1
View File
@@ -1,6 +1,7 @@
/** @jsx h */
import { h, tw } from "../deps.client.ts";
import { h } from "$fresh/runtime.ts";
import { tw } from "../utils/twind.ts";
export function IconMinus() {
return (
+2 -1
View File
@@ -1,6 +1,7 @@
/** @jsx h */
import { h, tw } from "../deps.client.ts";
import { h } from "$fresh/runtime.ts";
import { tw } from "../utils/twind.ts";
export default function NavigationBar(props: { active: string }) {
const items = [
+2 -1
View File
@@ -1,6 +1,7 @@
/** @jsx h */
import { h, tw } from "../deps.client.ts";
import { h } from "$fresh/runtime.ts";
import { tw } from "../utils/twind.ts";
export default function WarningBanner() {
const warning = tw`bg-yellow-100 border(1 yellow-200) p-4 mb-4`;