@byu-oit/nuxt-common 3.0.2 → 3.0.3

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.
Files changed (2) hide show
  1. package/README.md +90 -1
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -2,7 +2,96 @@
2
2
 
3
3
  Common packages, plus a small set of plugins, for OIT Vue frontend apps
4
4
 
5
- # IMPORTANT
5
+ ---------
6
+
7
+ # NUXT 2 / VUE 2 EOL Updates
8
+
9
+ ## One-time setup for your own machine
10
+
11
+ ### Get access to HeroDevs npm repository
12
+
13
+ 1. Get the Hero Devs access token. There's only one token, shared across the organization.
14
+ It's saved in LastPass in the "Shared-OIT-AppEng-Developer" folder, with the item name "HeroDev".
15
+
16
+ If you do not have access, then request access from Rose Combs.
17
+
18
+ 2. Run these two commands to update your system's .npmrc file:
19
+
20
+ `npm set --global @neverendingsupport:registry=https://registry.nes.herodevs.com/npm/pkg/`
21
+
22
+ `npm set --global //registry.nes.herodevs.com/npm/pkg/:_authToken={{HERO DEVS ACCESS TOKEN HERE}}`
23
+
24
+ ## Changes For Each Project
25
+
26
+ ### Step 1 - Update package.json
27
+
28
+ 1. Add the following section to your `package.json` config:
29
+ ```json
30
+ "overrides": {
31
+ "nuxt": "npm:@neverendingsupport/nuxt2@2.18.1-nuxt-2.18.6",
32
+ "@nuxt/babel-preset-app": "npm:@neverendingsupport/nuxt2@2.18.1-babel-preset-app-2.18.6",
33
+ "@nuxt/builder": "npm:@neverendingsupport/nuxt2@2.18.1-builder-2.18.6",
34
+ "@nuxt/cli": "npm:@neverendingsupport/nuxt2@2.18.1-cli-2.18.6",
35
+ "@nuxt/components": "npm:@neverendingsupport/nuxt-components@2.2.1-nuxt-components-2.2.2",
36
+ "@nuxt/config": "npm:@neverendingsupport/nuxt2@2.18.1-config-2.18.6",
37
+ "@nuxt/core": "npm:@neverendingsupport/nuxt2@2.18.1-core-2.18.6",
38
+ "@nuxt/generator": "npm:@neverendingsupport/nuxt2@2.18.1-generator-2.18.6",
39
+ "@nuxt/loading-screen": "npm:@neverendingsupport/nuxt-loading-screen@2.0.4-nuxt-loading-screen-2.0.5",
40
+ "@nuxt/nuxt-start": "npm:@neverendingsupport/nuxt2@2.18.1-nuxt-start-2.18.6",
41
+ "@nuxt/server": "npm:@neverendingsupport/nuxt2@2.18.1-server-2.18.6",
42
+ "@nuxt/telemetry": "npm:@neverendingsupport/nuxt-telemetry@1.5.0-nuxt-telemetry-1.5.2",
43
+ "@nuxt/types": "npm:@neverendingsupport/nuxt2@2.18.1-types-2.18.6",
44
+ "@nuxt/utils": "npm:@neverendingsupport/nuxt2@2.18.1-utils-2.18.6",
45
+ "@nuxt/vue-app": "npm:@neverendingsupport/nuxt2@2.18.1-vue-app-2.18.6",
46
+ "@nuxt/vue-renderer": "npm:@neverendingsupport/nuxt2@2.18.1-vue-renderer-2.18.6",
47
+ "@nuxt/webpack": "npm:@neverendingsupport/nuxt2@2.18.1-webpack-2.18.6",
48
+ "@nuxtjs/youch": "npm:@neverendingsupport/nuxt-youch@4.2.3-nuxtjs-youch-4.2.5",
49
+ "nuxt-start": "npm:@neverendingsupport/nuxt2@2.18.1-nuxt-start-2.18.6",
50
+ "vue": "npm:@neverendingsupport/vue2@2.7.22",
51
+ "vuetify": "npm:@neverendingsupport/vuetify@2.7.2-vuetify-2.7.4",
52
+ "vue-server-renderer": "npm:@neverendingsupport/vue2@2.7.22-server-renderer",
53
+ "vue-template-compiler": "npm:@neverendingsupport/vue2@2.7.22-template-compiler",
54
+ "@vue/compiler-sfc": "npm:@neverendingsupport/vue2@2.7.22-compiler-sfc",
55
+ "vuex": "npm:@neverendingsupport/vuex@3.7.0",
56
+ "vue-router": "npm:@neverendingsupport/vue-router@3.6.6",
57
+ "serialize-javascript": "^6.0.2"
58
+ }
59
+ ```
60
+
61
+ 2. If you have `@byu-oit/nuxt-common` in your `dependencies`, then bump its version to `3.0.2`. If you are directly importing Nuxt and/or Vue, then skip to the next step.
62
+ ```json
63
+ "dependencies": {
64
+ [ ... ]
65
+ "@byu-oit/nuxt-common": "3.0.2",
66
+ [ ... ]
67
+ }
68
+ ```
69
+
70
+ 3. Before running `npm install`, visually inspect your `package.json` to see if you have any of the overridden packages already listed in
71
+ `dependencies`, `devDependencies`, and/or `peerDependencies`. If so, then copy the version numbers **from** the `overrides` entries **into** the existing dependency entries.
72
+
73
+ 4. Run `npm install`. If you missed a direct dependency (previous step), then `npm install` will fail with the message
74
+ `Override for [package name] conflicts with direct dependency`. If you get that message, then copy the version number **from** the `overrides` entry **into** the existing dependency entry, and run `npm install` again.
75
+
76
+ That *should* be everything required for local testing. Run your code and make sure everything works.
77
+
78
+ ### Step 2 - Github Actions updates
79
+
80
+ Everywhere in your `.github/workflows` files where you set up Node (most commonly via `uses: actions/setup-node`), add the following step immediately after setup but before any `npm` commands:
81
+ ```yaml
82
+ - name: HeroDevs
83
+ run: |
84
+ npm set --global @neverendingsupport:registry=https://registry.nes.herodevs.com/npm/pkg/ && \
85
+ npm set --global //registry.nes.herodevs.com/npm/pkg/:_authToken=${{secrets.HERO_DEVS_ACCESS_TOKEN}}
86
+ ```
87
+
88
+ That `HERO_DEVS_ACCESS_TOKEN` secret is already set for the whole `byu-oit` Github organization, so no need to individually set it up for your project.
89
+
90
+ # ( -- end of Nuxt 2 EOL instructions -- )
91
+
92
+ ---------
93
+
94
+ # Initial installation of this package
6
95
 
7
96
  This package uses Nuxt 2, which has some... quirks when used with Node 18 or above.
8
97
  To get a clean installation, you *must* use the `--legacy-peer-deps` flag for the *initial* installation:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byu-oit/nuxt-common",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "description": "BYU Front End common module for Nuxt.js",
5
5
  "author": "BYU Apps Custom",
6
6
  "license": "Apache-2.0",
@@ -75,6 +75,7 @@
75
75
  "eslint-plugin-vue": "~9.9.0",
76
76
  "eslint-plugin-vuetify": "~1.1.0",
77
77
  "flush-promises": "~1.0.2",
78
+ "form-data": "^3.0.4",
78
79
  "husky": "~8.0.3",
79
80
  "lodash": "~4.17.21",
80
81
  "lru-cache": "~7.14.1",