Skip to content

Commit 2f67b78

Browse files
committed
new dynamic js
1 parent 44fcc95 commit 2f67b78

20 files changed

+3781
-0
lines changed

17_dynamic-javascript/.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# build output
2+
dist/
3+
.output/
4+
5+
# dependencies
6+
node_modules/
7+
8+
# logs
9+
npm-debug.log*
10+
yarn-debug.log*
11+
yarn-error.log*
12+
pnpm-debug.log*
13+
14+
15+
# environment variables
16+
.env
17+
.env.production
18+
19+
# macOS-specific files
20+
.DS_Store

17_dynamic-javascript/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# 01_basics
2+
[../01_basics](../01_basics)
3+
4+
This is a minimal example that shows the node version running
5+
6+
<img src="../media/01_basics.png" width="400">
7+
8+
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/MicroWebStacks/astro-examples/tree/main/01_basics)
9+
[![open in Codesandbox](../media/codesandbox.svg)](https://codesandbox.io/s/github/MicroWebStacks/astro-examples/tree/main/01_basics)
10+
[![open in Gitpod](../media/gitpod.svg)](https://gitpod.io/?on=gitpod#https://github.com/MicroWebStacks/astro-examples/tree/main/01_basics)
11+
12+
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import node from '@astrojs/node'
2+
import { defineConfig } from 'astro/config';
3+
4+
export default defineConfig({
5+
output: "server",
6+
adapter: node({
7+
mode: 'standalone'
8+
})
9+
});

17_dynamic-javascript/build.cmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm run build

17_dynamic-javascript/dev.cmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm run dev

17_dynamic-javascript/install.cmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm install

17_dynamic-javascript/package.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "@example/basics",
3+
"type": "module",
4+
"version": "0.0.1",
5+
"private": true,
6+
"scripts": {
7+
"dev": "astro dev",
8+
"start": "astro dev",
9+
"build": "astro build",
10+
"preview": "node dist/server/entry.mjs",
11+
"astro": "astro"
12+
},
13+
"dependencies": {
14+
"astro": "^1.8.0",
15+
"@astrojs/node": "^4.0.0"
16+
}
17+
}

0 commit comments

Comments
 (0)