惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog RSS Feed
有赞技术团队
有赞技术团队
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
阮一峰的网络日志
阮一峰的网络日志
V
V2EX
Y
Y Combinator Blog
Jina AI
Jina AI
G
Google Developers Blog
Last Week in AI
Last Week in AI
博客园 - 叶小钗
H
Hackread – Cybersecurity News, Data Breaches, AI and More
L
LangChain Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
V
Visual Studio Blog
aimingoo的专栏
aimingoo的专栏
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
J
Java Code Geeks
Stack Overflow Blog
Stack Overflow Blog
IT之家
IT之家
The GitHub Blog
The GitHub Blog
D
Docker
量子位
罗磊的独立博客
腾讯CDC

Deno

Deno 2.8 | Deno Claw Patrol: an open-source security firewall for agents | Deno Fresh 2.3: Zero JS by default, View Transitions, and Temporal support | Deno Deno 2.7: Temporal API, Windows ARM, and npm overrides | Deno Build a dinosaur runner game with Deno, pt. 6 | Deno Build a dinosaur runner game with Deno, pt. 5 | Deno Deno Deploy is Generally Available | Deno Introducing Deno Sandbox | Deno Build a dinosaur runner game with Deno, pt. 4 | Deno Build a dinosaur runner game with Deno, pt. 3 | Deno Build a dinosaur runner game with Deno, pt. 2 | Deno React / Next.js Denial-of-Service Vulnerability: Deno Deploy users protected | Deno Deno 2.6: dx is the new npx | Deno Build a dinosaur runner game with Deno, pt. 1 | Deno React Server Functions / Next.js Vulnerability: Deno Deploy users protected | Deno My highlights from the new Deno Deploy | Deno Deno's Other Open Source Projects | Deno How Deno protects against npm exploits | Deno Help Us Raise $200k to Free JavaScript from Oracle | Deno Deno 2.5: Permissions in the config file | Deno Fresh 2.0 Graduates to Beta, Adds Vite Support | Deno Deno 2.4: deno bundle is back | Deno JavaScript™ Trademark Update | Deno What's coming to JavaScript | Deno A brief history of JavaScript | Deno Reports of Deno's Demise Have Been Greatly Exaggerated | Deno An Update on Fresh | Deno How Plaid migrated 100 services to a new database platform 5x faster with Deno | Deno Deno 2.3: Improved deno compile, local npm packages, and more | Deno Add JSR packages with pnpm and Yarn | Deno
Introducing Simpler Project Creation in Deno Deploy | Deno
2024-04-03 · via Deno

Deno Deploy, our multi-tenant V8 isolate cloud, is one of the simplest and fastest ways to deploy and run JavaScript and TypeScript on the web. It also natively supports npm: specifiers, as well as offers built-in cloud primitives — KV, queues, and cron — that become globally distributed for optimal performance. We’ve been continuously improving Deno Deploy with new onboarding tutorials in Playgrounds and more features in deployctl to manage the entire lifecycle of a deployment.

Today, we’re thrilled to announce a simpler, improved new project creation flow in Deno Deploy. Connecting your GitHub repo now includes automatic framework detection, optional build step support depending on your project, seamless CI/CD setup using GitHub Actions, and a more transparent build process.

Deploying a Fresh project with a build step. Video truncated for brevity.

In this blog post, we’ll cover:

  • Connecting a GitHub repo
  • Adding an optional build step
  • More transparent build and deploy step
  • Better success page with resources
  • What’s next

Connecting a GitHub repo

When you signup for a new Deno Deploy account, you’ll be greeted with this new welcome screen.

The new welcome page in Deno Deploy gives you options for how to create a new project.

From here, you can create a new Deploy project from an existing GitHub repo, go through our learning tutorials via playgrounds, or go directly to your dashboard.

Let’s create a new Deploy project from an existing GitHub repo, so we’ll click on “I have an existing project”. The next screen allows you to connect to an existing GitHub project, as well as offer the option to deploy from the command line using deployctl .

Creating a new project

Let’s filter for our project, “my-fresh-app”, and select it. Note the 🍋 icon beside the project means Deno Deploy has detected that repo to be a Fresh project. Once you’ve selected your project, additional configuration fields will appear below.

Automatically detecting a Fresh project and using Automatic preset.

Since Deno Deploy detected my project is using the Fresh framework, it automatically selected the Fresh (Automatic) framework preset. These configuration steps are tailored to your project — specifically, what framework it uses — streamlining the setup process.

Adding an optional build step

Previously, if you wanted to add a build step to your deployment process to Deno Deploy, you would have to manually add a GitHub Action .yml file to your .github/workflows/ directory. With this update, if your project needs a build step, Deno Deploy will commit that GitHub Action file to your repo automatically. Let’s take a look at our Fresh example.

As of Fresh 1.6, you have the ability to optimize performance with Ahead-of-time builds, which require a build step. If we look at the dropdown, we have the option to select Fresh (with Build step).

Fresh has two presets: automatic and with build step.

Selecting Fresh (with Build step) will pre-fill the advanced configuration fields with the necessary commands Fresh needs to use Ahead-of-time builds:

Selecting the preset of Fresh with Build step.

To see what other configuration presets look like, here’s an example of a Svelte app. Note the Svelte icon beside the repo name, which indicates a Svelte app was detected.

Selecting Svelte preset will give pre-configured Svelte-specific installation and build commands.

Deno Deploy automatically fills the configuration fields with Svelte install and build commands.

This updated project creation flow makes it easier to connect and deploy any GitHub repo — whether it needs a build step or not — and seamlessly integrate that into your git flow. Then, next time you merge to your main branch, and your project will automatically deploy to Deno Deploy. You’ve setup CI/CD in just a few clicks!

More transparent build and deploy step

A lot happens behind the scenes when you hit “Deploy” that we previously did not expose in the UI, which made it difficult to surface and diagnose issues. Our new flow now includes more detailed build and deploy steps.

For projects that have build steps, the deployment page will show all the steps required in deploying your project. Let’s take our Fresh (with Build step) example:

Deploying a Fresh project with a build step. Video truncated for brevity.

During the building process, you can click on “View logs” and be taken directly to your GitHub repo’s Actions section to view more detailed logging from the build.

Viewing logs during the “Deploying” step will show you live streaming logs of your project being deployed to the Deno Deploy infrastructure.

Better success page with resources

Finally, after your project is created, you can check it out live on the web at your very own deno.dev URL. If you’re ready to take things a step further, we’ve made it simpler to level up your newly deployed project by providing shortcuts to jump to settings and add a custom domain or environmental variables.

Your new successful deployment page offers resources to help further setup your project.

What’s next

Our new project creation flow with GitHub Actions means you can add a CI/CD build and deploy process to your GitHub repo in just a few clicks. This, along with the onboarding tutorials via Playgrounds will make it easier to started on Deno Deploy.

While we continue to improve the platform, we love your feedback! If there are any feature requests or issues, please let us know here.