denoland / tic-tac-toe Goto Github PK
View Code? Open in Web Editor NEWA global, real-time multiplayer TicTacToe game for Deno ๐ฆ
Home Page: https://tic-tac-toe-game.deno.dev
License: MIT License
A global, real-time multiplayer TicTacToe game for Deno ๐ฆ
Home Page: https://tic-tac-toe-game.deno.dev
License: MIT License
I'm just playing around with the project (thanks for putting it out) and I came across import_map.json
. It seems a little redundant if there's already the deno.json
, which in this case is importing the import map. Just wondering if there's something in the code which requires this configuration, if it's some kind of best practices, or something else?
Why not take import_map.json
:
{
"imports": {
"๐ ๏ธ/": "./utils/",
"๐๏ธ/": "./islands/",
"๐งฑ/": "./components/",
"$fresh/": "https://deno.land/x/[email protected]/",
"preact": "https://esm.sh/[email protected]",
"preact/": "https://esm.sh/[email protected]/",
"preact-render-to-string": "https://esm.sh/*[email protected]",
"@preact/signals": "https://esm.sh/*@preact/[email protected]",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected]",
"twind": "https://esm.sh/[email protected]",
"twind/": "https://esm.sh/[email protected]/",
"$std/": "https://deno.land/[email protected]/"
}
}
and pop it into to deno.json
such that it deno.json
looks like:
{
"tasks": {
"start": "deno run -A --unstable --watch=static/,routes/ dev.ts"
},
"imports": {
"๐ ๏ธ/": "./utils/",
"๐๏ธ/": "./islands/",
"๐งฑ/": "./components/",
"$fresh/": "https://deno.land/x/[email protected]/",
"preact": "https://esm.sh/[email protected]",
"preact/": "https://esm.sh/[email protected]/",
"preact-render-to-string": "https://esm.sh/*[email protected]",
"@preact/signals": "https://esm.sh/*@preact/[email protected]",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected]",
"twind": "https://esm.sh/[email protected]",
"twind/": "https://esm.sh/[email protected]/",
"$std/": "https://deno.land/[email protected]/"
}
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "preact"
}
}
I'm new to the world of fresh and deno...I have looked all over deno and Fresh's documentation, used the --help tag....and I have found no documentation on how to proceed. I've searched for hours for the solution. Perhaps I have spend another few hours figuring it out...but I've been cramming so much new stuff into my head with fresh and deno that it's hard to want to keep searching for answers to all the errors. Anyways thanks for making this project freely available. I hope to get it running to test out DenoKV and authentication. Cheers
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.