@caweb/template 1.0.8 → 1.0.10

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.
@@ -8,6 +8,11 @@ on:
8
8
  push:
9
9
  branches:
10
10
  - main
11
+
12
+ permissions:
13
+ id-token: write # Required for OIDC
14
+ contents: read
15
+
11
16
  jobs:
12
17
  publish-npm:
13
18
  runs-on: ubuntu-latest
@@ -15,8 +20,6 @@ jobs:
15
20
  - uses: actions/checkout@v4
16
21
  - uses: actions/setup-node@v4
17
22
  with:
18
- node-version: 20
23
+ node-version: 24
19
24
  registry-url: https://registry.npmjs.org/
20
25
  - run: npm publish
21
- env:
22
- NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
package/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ v1.0.10
2
+ - Fixed issue with utility links not rendering
3
+ - Alert component alert level tag changed from h6 to span
4
+ - Alert component message taken out of div
5
+ - Updated github workflow
6
+ - Updated peer dependencies
7
+
8
+ v1.0.9
9
+ - Updated npm packages
10
+
1
11
  v1.0.8
2
12
  - Updated npm packages
3
13
 
package/README.md CHANGED
@@ -1,6 +1,40 @@
1
- # Official CAWebPublishing Template
1
+ # CAWebPublishing Template
2
+ This is the CAWebPublishing Template built with [handlebars](https://handlebarsjs.com/) and used by the CAWebPublishing Servce for static site generation.
2
3
 
3
- - Logicless [handlebars](https://handlebarsjs.com/) template
4
- - Paths should be absolute and not relative
5
- - Uses @caweb/framework
6
- - Uses @caweb/icon-library
4
+ ## Using npm to start the website locally
5
+
6
+ ``` npm run install ```
7
+ This command will install all the necessary npm packages to your local website directory.
8
+
9
+ ---
10
+
11
+ ``` npm run serve ```
12
+ This command will run the website in your [http://localhost:9000](http://localhost:9000) and watch for any changes made.
13
+
14
+ ---
15
+
16
+ ``` npm run serve:audit ```
17
+ This command does the same as `npm run serve` and will also generate a WordPress CSS Audit, IBM Accessibility Checker Report, and a JSHint Report page as well.
18
+
19
+ ---
20
+
21
+ ## Changing colorscheme
22
+ Since this template utilizes the [@caweb/framework](https://github.com/CAWebPublishing/framework) and [@caweb/icon-library](https://github.com/CAWebPublishing/icon-library) you can change the scheme by running
23
+
24
+ ` npm run serve:scheme:<color> ` - where \<color\> is one of the following:
25
+ - none - *Note: this will disable the [@caweb/framework](https://github.com/CAWebPublishing/framework) and [@caweb/icon-library](https://github.com/CAWebPublishing/icon-library), only do this if providing your own frontend UI
26
+ - delta
27
+ - eureka
28
+ - mono
29
+ - oceanside
30
+ - orangecounty
31
+ - pasorobles
32
+ - sacramento
33
+ - santabarbara
34
+ - santacruz
35
+ - shasta
36
+ - sierra
37
+ - trinity
38
+
39
+ ## Output
40
+ All the web content is generated to the `/build/` folder.
@@ -9,18 +9,16 @@
9
9
  <div class="alert alert-primary alert-dismissible">
10
10
  <div class="container">
11
11
  {{#if this.header }}
12
- <h6 class="alert-level" >
12
+ <span class="alert-level" >
13
13
  {{#if this.icon }}
14
14
  <span class="ca-gov-icon-{{ this.icon }}"></span>
15
15
  {{/if}}
16
16
  {{ this.header }}
17
- </h6>
17
+ </span>
18
18
  {{/if}}
19
19
 
20
20
  {{#if this.msg }}
21
- <div>
22
21
  {{ this.msg }}
23
- </div>
24
22
  {{/if}}
25
23
  {{#if this.url }}
26
24
  <a href="{{ this.url }}" target="_blank" class="alert-link btn btn-outline-dark btn-sm">{{ this.text }}</a>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caweb/template",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "author": "CAWebPublishing",
5
5
  "description": "CAWebPublishing Template",
6
6
  "license": "ISC",
@@ -22,18 +22,31 @@
22
22
  "access": "public"
23
23
  },
24
24
  "scripts": {
25
- "webpack": "webpack",
25
+ "caweb": "caweb",
26
26
  "test": "echo \"Error: run tests from root\" && exit 0",
27
- "testa": "node test.js",
28
- "build": "webpack build --config ./node_modules/@caweb/webpack/webpack.config.js",
29
- "serve:blank": "set NODE_OPTIONS='--template ./patterns/blank.html --search-template ./patterns/search.html' && webpack serve --config ./node_modules/@caweb/webpack/webpack.config.js",
30
- "serve": "set NODE_OPTIONS='--template ./patterns/index.html --search-template ./patterns/search.html' && webpack serve --config ./node_modules/@caweb/webpack/webpack.config.js --host danny.com --port 8888"
31
- },
32
- "dependencies": {
33
- "@caweb/framework": "^1.8.4",
34
- "@caweb/icon-library": "^1.1.3"
27
+ "build": "caweb build",
28
+ "serve": "caweb serve --no-jshint --no-audit --no-a11y --template ./patterns/index.html --search-template ./patterns/search.html",
29
+ "serve:blank": "caweb serve --no-jshint --no-audit --no-a11y --template ./patterns/blank.html --search-template ./patterns/search.html",
30
+ "serve:audit": "caweb serve --template ./patterns/index.html --search-template ./patterns/search.html",
31
+ "serve:scheme:none": "caweb serve --no-jshint --no-audit --no-a11y --template ./patterns/index.html --search-template ./patterns/search.html --scheme false",
32
+ "serve:scheme:delta": "caweb serve --no-jshint --no-audit --no-a11y --template ./patterns/index.html --search-template ./patterns/search.html --scheme delta",
33
+ "serve:scheme:eureka": "caweb serve --no-jshint --no-audit --no-a11y --template ./patterns/index.html --search-template ./patterns/search.html --scheme eureka",
34
+ "serve:scheme:mono": "caweb serve --no-jshint --no-audit --no-a11y --template ./patterns/index.html --search-template ./patterns/search.html --scheme mono",
35
+ "serve:scheme:oceanside": "caweb serve --no-jshint --no-audit --no-a11y --template ./patterns/index.html --search-template ./patterns/search.html --scheme oceanside",
36
+ "serve:scheme:orangecounty": "caweb serve --no-jshint --no-audit --no-a11y --template ./patterns/index.html --search-template ./patterns/search.html --scheme orangecounty",
37
+ "serve:scheme:pasorobles": "caweb serve --no-jshint --no-audit --no-a11y --template ./patterns/index.html --search-template ./patterns/search.html --scheme pasorobles",
38
+ "serve:scheme:sacramento": "caweb serve --no-jshint --no-audit --no-a11y --template ./patterns/index.html --search-template ./patterns/search.html --scheme sacramento",
39
+ "serve:scheme:santabarbara": "caweb serve --no-jshint --no-audit --no-a11y --template ./patterns/index.html --search-template ./patterns/search.html --scheme santabarbara",
40
+ "serve:scheme:santacruz": "caweb serve --no-jshint --no-audit --no-a11y --template ./patterns/index.html --search-template ./patterns/search.html --scheme santacruz",
41
+ "serve:scheme:shasta": "caweb serve --no-jshint --no-audit --no-a11y --template ./patterns/index.html --search-template ./patterns/search.html --scheme shasta",
42
+ "serve:scheme:sierra": "caweb serve --no-jshint --no-audit --no-a11y --template ./patterns/index.html --search-template ./patterns/search.html --scheme sierra",
43
+ "serve:scheme:trinity": "caweb serve --no-jshint --no-audit --no-a11y --template ./patterns/index.html --search-template ./patterns/search.html --scheme trinity"
35
44
  },
36
45
  "devDependencies": {
37
- "@caweb/webpack": "^1.5.7"
46
+ "@caweb/cli": "^1.15.9"
47
+ },
48
+ "peerDependencies": {
49
+ "@caweb/framework": "^1.9.0",
50
+ "@caweb/icon-library": "^1.1.4"
38
51
  }
39
52
  }
@@ -13,9 +13,9 @@
13
13
  </div>
14
14
  <p class="official-tag">Official website of the State of California</p>
15
15
  </div>
16
- {{#if header.utility }}
16
+ {{#if header.utility.links }}
17
17
  <div class="settings-links">
18
- {{#each header.utility }}
18
+ {{#each header.utility.links }}
19
19
  {{#if this.url }}{{#if this.label }}
20
20
  <a href="{{ this.url }}">{{ this.label }}</a>
21
21
  {{/if}}{{/if}}