@columbia-libraries/cul-toolkit 5.1.3 → 5.2.0
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/README.md +18 -17
- package/dist/assets/cul-main-menu.json +8 -16
- package/dist/assets/main.css +1 -1
- package/dist/assets/main.js +1 -1
- package/dist/bundles/cul-menu.bundle.es.js +64 -298
- package/dist/bundles/cul-menu.bundle.es.js.map +1 -1
- package/dist/bundles/cul-menu.bundle.js +3 -3
- package/dist/bundles/cul-menu.bundle.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,43 +2,44 @@
|
|
|
2
2
|
|
|
3
3
|
_Version 5.x_
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Requirements
|
|
6
6
|
```
|
|
7
|
-
nodejs >=
|
|
8
|
-
npm >= 10.2
|
|
7
|
+
nodejs >= v22
|
|
9
8
|
```
|
|
10
9
|
|
|
11
|
-
##
|
|
12
|
-
|
|
10
|
+
## Development
|
|
11
|
+
Start the Vite dev server:
|
|
13
12
|
```
|
|
14
|
-
npm
|
|
13
|
+
npm run dev
|
|
15
14
|
```
|
|
16
|
-
|
|
15
|
+
The app is available at http://localhost:5173
|
|
16
|
+
|
|
17
|
+
## Preview production build
|
|
18
|
+
Serve the production build locally:
|
|
17
19
|
```
|
|
18
20
|
npm run preview
|
|
19
21
|
```
|
|
20
22
|
|
|
21
|
-
##
|
|
22
|
-
|
|
23
|
-
```
|
|
24
|
-
npm install
|
|
25
|
-
```
|
|
26
|
-
```
|
|
23
|
+
## Build
|
|
24
|
+
Install dependencies and build:
|
|
25
|
+
```bash
|
|
26
|
+
npm install
|
|
27
27
|
npm run build
|
|
28
28
|
```
|
|
29
|
+
The output is written to the dist/ directory.
|
|
29
30
|
|
|
30
31
|
## Deployment requirements
|
|
31
32
|
|
|
32
33
|
Local machine:
|
|
33
34
|
```
|
|
34
|
-
ruby >= 2.5
|
|
35
|
+
ruby >= 2.7.5 (we currently have a .ruby-version file requiring 2.7.5)
|
|
35
36
|
bundler
|
|
36
37
|
```
|
|
37
38
|
|
|
38
39
|
Remote deployment server:
|
|
39
40
|
```
|
|
40
|
-
node >=
|
|
41
|
-
|
|
41
|
+
node >= 22
|
|
42
|
+
npm >= 10
|
|
42
43
|
```
|
|
43
44
|
## Deploying a versioned release
|
|
44
45
|
|
|
@@ -124,7 +125,7 @@ Requirements:
|
|
|
124
125
|
Create root `.env`:
|
|
125
126
|
|
|
126
127
|
```env
|
|
127
|
-
VITE_CUL_MENU_URL=https://
|
|
128
|
+
VITE_CUL_MENU_URL=https://toolkit.library.columbia.edu/v5/assets/cul-main-menu.json
|
|
128
129
|
```
|
|
129
130
|
|
|
130
131
|
#### main.js
|
|
@@ -4,10 +4,6 @@
|
|
|
4
4
|
"href": "https://library.columbia.edu/services.html",
|
|
5
5
|
"value": "Services & Tools"
|
|
6
6
|
},
|
|
7
|
-
{
|
|
8
|
-
"href": "https://library.columbia.edu/services/faq.html",
|
|
9
|
-
"value": "FAQ"
|
|
10
|
-
},
|
|
11
7
|
{
|
|
12
8
|
"href": "https://library.columbia.edu/using-libraries/alumni.html",
|
|
13
9
|
"value": "For Alumni"
|
|
@@ -78,10 +74,6 @@
|
|
|
78
74
|
"href": "https://library.columbia.edu/libraries/math.html",
|
|
79
75
|
"value": "Mathematics Library"
|
|
80
76
|
},
|
|
81
|
-
{
|
|
82
|
-
"href": "https://library.columbia.edu/libraries/undergraduate.html",
|
|
83
|
-
"value": "Milstein Undergraduate Library"
|
|
84
|
-
},
|
|
85
77
|
{
|
|
86
78
|
"href": "https://library.columbia.edu/libraries/rbml.html",
|
|
87
79
|
"value": "Rare Book & Manuscript Library"
|
|
@@ -117,17 +109,13 @@
|
|
|
117
109
|
"value": "Collection Development"
|
|
118
110
|
},
|
|
119
111
|
{
|
|
120
|
-
"href": "https://library.columbia.edu
|
|
121
|
-
"value": "Digital Collections
|
|
112
|
+
"href": "https://dlc.library.columbia.edu",
|
|
113
|
+
"value": "Digital Collections"
|
|
122
114
|
},
|
|
123
115
|
{
|
|
124
116
|
"href": "https://library.columbia.edu/collections/eresources.html",
|
|
125
117
|
"value": "E-Resources"
|
|
126
118
|
},
|
|
127
|
-
{
|
|
128
|
-
"href": "https://library.columbia.edu/collections/oral-history-portal.html",
|
|
129
|
-
"value": "Oral History Collections"
|
|
130
|
-
},
|
|
131
119
|
{
|
|
132
120
|
"href": "https://resolver.library.columbia.edu/lweb0004",
|
|
133
121
|
"value": "Recommend a Title for Purchase"
|
|
@@ -177,13 +165,17 @@
|
|
|
177
165
|
"value": "Research & Teaching"
|
|
178
166
|
},
|
|
179
167
|
{
|
|
180
|
-
"href": "https://
|
|
181
|
-
"value": "Copyright
|
|
168
|
+
"href": "https://library.columbia.edu/research-teaching/copyright.html",
|
|
169
|
+
"value": "Copyright Information"
|
|
182
170
|
},
|
|
183
171
|
{
|
|
184
172
|
"href": "https://library.columbia.edu/research-teaching/getting-started.html",
|
|
185
173
|
"value": "Getting Started with the Libraries"
|
|
186
174
|
},
|
|
175
|
+
{
|
|
176
|
+
"href": "https://library.columbia.edu/research-teaching/global.html",
|
|
177
|
+
"value": "Global Studies"
|
|
178
|
+
},
|
|
187
179
|
{
|
|
188
180
|
"href": "https://library.columbia.edu/research-teaching/open-scholarship.html",
|
|
189
181
|
"value": "Open Scholarship Services"
|