@caweb/template 1.0.10 → 1.0.11

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
@@ -1,10 +1,10 @@
1
1
  # CAWebPublishing Template
2
2
  This is the CAWebPublishing Template built with [handlebars](https://handlebarsjs.com/) and used by the CAWebPublishing Servce for static site generation.
3
3
 
4
- ## Using npm to start the website locally
4
+ ## Using npm to test the website locally
5
5
 
6
6
  ``` npm run install ```
7
- This command will install all the necessary npm packages to your local website directory.
7
+ This command will install all the necessary npm packages to test your markup.
8
8
 
9
9
  ---
10
10
 
package/package.json CHANGED
@@ -1,15 +1,22 @@
1
1
  {
2
2
  "name": "@caweb/template",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "author": "CAWebPublishing",
5
5
  "description": "CAWebPublishing Template",
6
6
  "license": "ISC",
7
- "main": "src/index.html",
8
7
  "homepage": "https://github.com/CAWebPublishing/template#readme",
9
8
  "repository": {
10
9
  "type": "git",
11
10
  "url": "git+https://github.com/CAWebPublishing/template.git"
12
11
  },
12
+ "files": [
13
+ "components",
14
+ "content",
15
+ "forms",
16
+ "media",
17
+ "patterns",
18
+ "semantics"
19
+ ],
13
20
  "keywords": [
14
21
  "caweb",
15
22
  "cagov",
@@ -22,31 +29,28 @@
22
29
  "access": "public"
23
30
  },
24
31
  "scripts": {
25
- "caweb": "caweb",
32
+ "webpack": "webpack",
26
33
  "test": "echo \"Error: run tests from root\" && exit 0",
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"
34
+ "serve": "webpack serve --config ./node_modules/@caweb/webpack/webpack.config.js ./node_modules/@caweb/webpack/tests/webpack.tests.js --merge",
35
+ "serve:blank": "set NODE_OPTIONS='--template ./patterns/blank.html --search-template ./patterns/search.html' && npm run serve",
36
+ "serve:delta": "set NODE_OPTIONS='--template ./patterns/default.html --search-template ./patterns/search.html --scheme delta' && npm run serve",
37
+ "serve:eureka": "set NODE_OPTIONS='--template ./patterns/default.html --search-template ./patterns/search.html --scheme eureka' && npm run serve",
38
+ "serve:mono": "set NODE_OPTIONS='--template ./patterns/default.html --search-template ./patterns/search.html --scheme mono' && npm run serve",
39
+ "serve:oceanside": "set NODE_OPTIONS='--template ./patterns/default.html --search-template ./patterns/search.html --scheme oceanside' && npm run serve",
40
+ "serve:orangecounty": "set NODE_OPTIONS='--template ./patterns/default.html --search-template ./patterns/search.html --scheme orangecounty' && npm run serve",
41
+ "serve:pasorobles": "set NODE_OPTIONS='--template ./patterns/default.html --search-template ./patterns/search.html --scheme pasorobles' && npm run serve",
42
+ "serve:sacramento": "set NODE_OPTIONS='--template ./patterns/default.html --search-template ./patterns/search.html --scheme sacramento' && npm run serve",
43
+ "serve:santabarbara": "set NODE_OPTIONS='--template ./patterns/default.html --search-template ./patterns/search.html --scheme santabarbara' && npm run serve",
44
+ "serve:santacruz": "set NODE_OPTIONS='--template ./patterns/default.html --search-template ./patterns/search.html --scheme santacruz' && npm run serve",
45
+ "serve:shasta": "set NODE_OPTIONS='--template ./patterns/default.html --search-template ./patterns/search.html --scheme shasta' && npm run serve",
46
+ "serve:sierra": "set NODE_OPTIONS='--template ./patterns/default.html --search-template ./patterns/search.html --scheme sierra' && npm run serve",
47
+ "serve:trinity": "set NODE_OPTIONS='--template ./patterns/default.html --search-template ./patterns/search.html --scheme trinity' && npm run serve"
44
48
  },
45
49
  "devDependencies": {
46
- "@caweb/cli": "^1.15.9"
47
- },
48
- "peerDependencies": {
49
50
  "@caweb/framework": "^1.9.0",
50
51
  "@caweb/icon-library": "^1.1.4"
52
+ },
53
+ "dependencies": {
54
+ "@caweb/webpack": "^1.6.0"
51
55
  }
52
56
  }
@@ -35,10 +35,10 @@
35
35
  <div id="main-content" class="main-content" tabindex="-1">
36
36
  <main class="main-primary">
37
37
 
38
- {{#if htmlWebpackPlugin.options.templateParameters.bodyHtmlSnippet }}
39
- {{{ htmlWebpackPlugin.options.templateParameters.bodyHtmlSnippet }}}
38
+ {{#if partial }}
39
+ {{{ partial }}}
40
40
  {{else}}
41
- {{> index }}
41
+ {{> index }}
42
42
  {{/if}}
43
43
 
44
44
  </main>
package/.distignore DELETED
@@ -1,21 +0,0 @@
1
- # A set of files you probably don't want in your WordPress.org distribution
2
- .babelrc
3
- .deployignore
4
- .distignore
5
- .editorconfig
6
- .eslintignore
7
- .eslintrc
8
- .git
9
- .gitignore
10
- .github
11
- .gitlab-ci.yml
12
- .travis.yml
13
- .DS_Store
14
- .*~
15
- private
16
- tests
17
- vendor
18
- node_modules
19
- *.sql
20
- *.tar.gz
21
- *.zip
@@ -1,25 +0,0 @@
1
- # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
- # For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3
-
4
- name: Publish Template
5
-
6
- on:
7
- workflow_dispatch:
8
- push:
9
- branches:
10
- - main
11
-
12
- permissions:
13
- id-token: write # Required for OIDC
14
- contents: read
15
-
16
- jobs:
17
- publish-npm:
18
- runs-on: ubuntu-latest
19
- steps:
20
- - uses: actions/checkout@v4
21
- - uses: actions/setup-node@v4
22
- with:
23
- node-version: 24
24
- registry-url: https://registry.npmjs.org/
25
- - run: npm publish
package/CHANGELOG.md DELETED
@@ -1,40 +0,0 @@
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
-
11
- v1.0.8
12
- - Updated npm packages
13
-
14
- v1.0.7
15
- - Updated npm packages
16
-
17
- v1.0.6
18
- - Updated npm packages
19
-
20
- v1.0.5
21
- - Fixed issue with search.html
22
-
23
- v1.0.4
24
- - Updated logo.png so that it uses a .png instead of .webp
25
- - Updated content/index.html to provide instructions
26
-
27
- v1.0.3
28
- - Card component card-title element changed from div to H5
29
-
30
- v1.0.2
31
- - Removed divi reference
32
-
33
- v1.0.1
34
- - Fixed issue with alerts component
35
-
36
- v1.0.0
37
- - Removed templating out of @caweb/html-webpack-plugin and into it's own individual package
38
- - Updated nav.header and utility.links references
39
- - Added new navFooter partial
40
- - Added Card component