|
1 | | -# [0_basic](../../entry_point_many_2.test.mjs#L21) |
| 1 | +# [0_basic](../../entry_point_many_2.test.mjs#L22) |
2 | 2 |
|
3 | 3 | ```js |
4 | 4 | run() |
5 | 5 | ``` |
6 | 6 |
|
7 | | -# 1/2 write 11 files into "./git_ignored/" |
8 | | - <details> |
9 | | - <summary>details</summary> |
| 7 | +# 1/2 write 2 files into "./git_ignored/" |
10 | 8 |
|
11 | | -## node_modules/foo/a.js |
12 | | -```js |
13 | | - |
14 | | -``` |
15 | | - |
16 | | -## node_modules/foo/b.js |
17 | | -```js |
18 | | - |
19 | | -``` |
20 | | - |
21 | | -## node_modules/foo/foo.js |
22 | | -```js |
23 | | - |
24 | | -``` |
25 | | - |
26 | | -## node_modules/foo/package.json |
27 | | -```json |
28 | | -{ |
29 | | - "name": "foo", |
30 | | - "private": true, |
31 | | - "exports": { |
32 | | - ".": "./foo.js", |
33 | | - "./a": "./a.js", |
34 | | - "./b": "./b.js" |
35 | | - } |
36 | | -} |
37 | | -``` |
38 | | - |
39 | | -## about.html |
40 | | -```html |
41 | | -<!DOCTYPE html> |
42 | | -<html> |
43 | | - <head> |
44 | | - <title>Title</title> |
45 | | - <meta charset="utf-8"> |
46 | | - <link rel="icon" href="data:,"> |
47 | | - <script type="importmap" jsenv-injected-by="@jsenv/importmap-node-module"> |
48 | | - { |
49 | | - "imports": {}, |
50 | | - "scopes": {} |
51 | | - } |
52 | | - </script> |
53 | | - </head> |
54 | | - |
55 | | - <body> |
56 | | - <script type="module" src="./about.js"></script> |
57 | | - </body> |
58 | | -</html> |
59 | | -``` |
60 | | - |
61 | | -## about.js |
62 | | -```js |
63 | | -import "foo"; |
64 | | -import "foo/b"; |
65 | | - |
66 | | -``` |
67 | | - |
68 | | -## index.html |
69 | | -```html |
70 | | -<!DOCTYPE html> |
71 | | -<html> |
72 | | - <head> |
73 | | - <title>Title</title> |
74 | | - <meta charset="utf-8"> |
75 | | - <link rel="icon" href="data:,"> |
76 | | - </head> |
77 | | - |
78 | | - <body> |
79 | | - <script type="module" src="./index.js"></script> |
80 | | - </body> |
81 | | -</html> |
82 | | -``` |
83 | | - |
84 | | -## index.js |
85 | | -```js |
86 | | -import "foo"; |
87 | | -import "foo/a"; |
88 | | - |
89 | | -``` |
90 | | - |
91 | | -## package.json |
92 | | -```json |
93 | | -{ |
94 | | - "name": "root", |
95 | | - "private": true, |
96 | | - "type": "module", |
97 | | - "dependencies": { |
98 | | - "foo": "./node_modules/foo/" |
99 | | - } |
100 | | -} |
101 | | -``` |
102 | | - |
103 | | -## index.html |
104 | | - |
105 | | -``` |
106 | | -<!DOCTYPE html> |
107 | | -<html> |
108 | | - <head> |
109 | | - <title>Title</title> |
110 | | - <meta charset="utf-8"> |
111 | | - <link rel="icon" href="data:,"> |
112 | | - <script type="importmap" jsenv-injected-by="@jsenv/importmap-node-module"> |
113 | | - { |
114 | | - "imports": { |
115 | | - "foo/a": "./node_modules/foo/a.js", |
116 | | - "foo": "./node_modules/foo/foo.js" |
117 | | - }, |
118 | | - "scopes": {} |
119 | | - } |
120 | | - </script> |
121 | | - </head> |
122 | | -
|
123 | | - <body> |
124 | | - <script type="module" src="./index.js"></script> |
125 | | - </body> |
126 | | -``` |
127 | | -see [git_ignored/index_1.html](git_ignored/index_1.html) for more |
128 | | - |
129 | | -## about.html |
130 | | - |
131 | | -``` |
132 | | -<!DOCTYPE html> |
133 | | -<html> |
134 | | - <head> |
135 | | - <title>Title</title> |
136 | | - <meta charset="utf-8"> |
137 | | - <link rel="icon" href="data:,"> |
138 | | - <script type="importmap" jsenv-injected-by="@jsenv/importmap-node-module"> |
139 | | - { |
140 | | - "imports": { |
141 | | - "foo/b": "./node_modules/foo/b.js", |
142 | | - "foo": "./node_modules/foo/foo.js" |
143 | | - }, |
144 | | - "scopes": {} |
145 | | - } |
146 | | - </script> |
147 | | - </head> |
148 | | -
|
149 | | - <body> |
150 | | - <script type="module" src="./about.js"></script> |
151 | | - </body> |
152 | | -``` |
153 | | -see [git_ignored/about_1.html](git_ignored/about_1.html) for more |
154 | | - |
155 | | -</details> |
| 9 | +see [./git_ignored/](./git_ignored/) |
156 | 10 |
|
157 | 11 | # 2/2 resolve |
158 | 12 |
|
|
0 commit comments