@prairielearn/compiled-assets 3.0.12 → 3.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/README.md +3 -3
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @prairielearn/compiled-assets
|
|
2
2
|
|
|
3
|
+
## 3.0.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 82f9c2f: Upgrade all JavaScript dependencies
|
|
8
|
+
- Updated dependencies [82f9c2f]
|
|
9
|
+
- @prairielearn/html@4.0.13
|
|
10
|
+
|
|
11
|
+
## 3.0.13
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 03f1008: Upgrade all JavaScript dependencies
|
|
16
|
+
- Updated dependencies [03f1008]
|
|
17
|
+
- @prairielearn/html@4.0.12
|
|
18
|
+
|
|
3
19
|
## 3.0.12
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ This tool is meant to produce many small, independent bundles that can then be i
|
|
|
10
10
|
|
|
11
11
|
Create a directory of assets that you wish to bundle, e.g. `assets/`. Within that directory, create another directory `scripts/`. Any JavaScript or TypeScript files in the root of the `scripts/` directory will become a bundle that can be loaded on a page. For example, the following directory structure would produce bundles named `foo` and `bar`:
|
|
12
12
|
|
|
13
|
-
```
|
|
13
|
+
```text
|
|
14
14
|
├── assets/
|
|
15
15
|
│ ├── scripts/
|
|
16
16
|
│ │ ├── foo.ts
|
|
@@ -19,7 +19,7 @@ Create a directory of assets that you wish to bundle, e.g. `assets/`. Within tha
|
|
|
19
19
|
|
|
20
20
|
You can locate shared code in directories inside this directory. As long as those files aren't in the root of the `scripts/` directory, they won't become separate bundles.
|
|
21
21
|
|
|
22
|
-
```
|
|
22
|
+
```text
|
|
23
23
|
├── assets/
|
|
24
24
|
│ ├── scripts/
|
|
25
25
|
| │ ├── lib/
|
|
@@ -78,5 +78,5 @@ router.get(() => {
|
|
|
78
78
|
For production usage, assets must be precompiled with the `compiled-assets build` command. Note that the source directory and build directory should match the values provided to `assets.init`.
|
|
79
79
|
|
|
80
80
|
```sh
|
|
81
|
-
|
|
81
|
+
compiled-assets build ./assets ./public/build
|
|
82
82
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prairielearn/compiled-assets",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"test": "c8 mocha src/**/*.test.ts"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@prairielearn/html": "^4.0.
|
|
18
|
+
"@prairielearn/html": "^4.0.13",
|
|
19
19
|
"commander": "^13.1.0",
|
|
20
20
|
"esbuild": "^0.25.2",
|
|
21
21
|
"express": "^4.21.2",
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@prairielearn/tsconfig": "^0.0.0",
|
|
30
|
-
"@types/node": "^20.17.
|
|
30
|
+
"@types/node": "^20.17.30",
|
|
31
31
|
"c8": "^10.1.3",
|
|
32
32
|
"chai": "^5.2.0",
|
|
33
33
|
"get-port": "^7.1.0",
|
|
34
34
|
"mocha": "^11.1.0",
|
|
35
35
|
"node-fetch": "^3.3.2",
|
|
36
36
|
"tsx": "^4.19.3",
|
|
37
|
-
"typescript": "^5.8.
|
|
37
|
+
"typescript": "^5.8.3"
|
|
38
38
|
},
|
|
39
39
|
"c8": {
|
|
40
40
|
"reporter": [
|