@newjersey/njwds 2.7.0 → 2.8.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
CHANGED
|
@@ -47,8 +47,12 @@ The NJWDS package also includes pre-compiled files in the `src/` directory. Spec
|
|
|
47
47
|
|
|
48
48
|
### View component library locally or development
|
|
49
49
|
|
|
50
|
+
#### Start the local development server
|
|
50
51
|
- Run `npm start` to build the component library, launch a web server to host it, and live reload on development changes.
|
|
51
52
|
|
|
53
|
+
#### Preview the static site
|
|
54
|
+
- To view the static site, start a local server within the `/build` directory (e.g. using VSCode's Live Server extension). The server won't live reload on development changes. However, **it's crucial to preview the static site before deployment in order to ensure the Fractal docs site works as expected**, as `npm start` might not catch issues with static asset paths, etc.
|
|
55
|
+
|
|
52
56
|
### Deploy the component library
|
|
53
57
|
|
|
54
58
|
- Run `npm run deploy`
|
package/package.json
CHANGED
|
@@ -9,7 +9,14 @@
|
|
|
9
9
|
<a href="https://nj.gov">{{ banner.stateOfNjText }}</a>
|
|
10
10
|
</div>
|
|
11
11
|
<ul class="grid-col-auto display-flex flex-align-center">
|
|
12
|
-
<li>
|
|
12
|
+
<li>
|
|
13
|
+
<a
|
|
14
|
+
href="https://nj.gov/governor/"
|
|
15
|
+
target="_blank"
|
|
16
|
+
>
|
|
17
|
+
{{ banner.governorName }} • {{ banner.ltGovernorName }}
|
|
18
|
+
</a>
|
|
19
|
+
</li>
|
|
13
20
|
<li class="grid-col-auto">
|
|
14
21
|
<a
|
|
15
22
|
class="display-flex flex-align-center"
|
|
@@ -2,7 +2,7 @@ label: Feedback widget
|
|
|
2
2
|
default: success
|
|
3
3
|
|
|
4
4
|
context:
|
|
5
|
-
mockFetchScriptSrc: "
|
|
5
|
+
mockFetchScriptSrc: "../../public/js/mockFetch.js"
|
|
6
6
|
widgetVersion: "latest"
|
|
7
7
|
feedbackApiUrl: "https://innovation.nj.gov/app/feedback/dev"
|
|
8
8
|
mockSuccessResponse: { status: 200, body: { message: "Success", feedbackId: 1 } }
|