File tree Expand file tree Collapse file tree 5 files changed +19
-83
lines changed
layers/content-type/components/global Expand file tree Collapse file tree 5 files changed +19
-83
lines changed Original file line number Diff line number Diff line change 11name : Build & Test
22on : [push]
33jobs :
4- Setup :
4+ Test :
55 runs-on : ubuntu-latest
66 steps :
77 - uses : actions/checkout@v3
1717 NODE_AUTH_TOKEN : ${{secrets.GPR_NPM_INSTALL_TOKEN}}
1818 - name : Build
1919 run : npm run build
20- - name : Upload build artifact
21- uses : actions/upload-artifact@v4
22- with :
23- name : build
24- path : .next
25-
26- Unit :
27- needs : Setup
28- runs-on : ubuntu-latest
29- steps :
30- - uses : actions/checkout@v3
31- - uses : actions/setup-node@v3
32- with :
33- always-auth : true
34- registry-url : ' https://npm.pkg.github.com/'
35- node-version : 18
36- scope : ' @dpc-sdp'
37- - name : Download build artifact
38- uses : actions/download-artifact@v4
39- with :
40- name : build
41- path : .next
4220 - run : npm run lint
4321 - run : npm run test:unit
44-
45- Integration :
46- needs : Setup
47- runs-on : ubuntu-latest
48- steps :
49- - name : Checkout
50- uses : actions/checkout@v3
51- - uses : actions/setup-node@v3
52- with :
53- always-auth : true
54- registry-url : ' https://npm.pkg.github.com/'
55- node-version : 18
56- scope : ' @dpc-sdp'
57- - name : Download build artifact
58- uses : actions/download-artifact@v4
59- with :
60- name : build
61- path : .next
6222 - name : Cypress run
6323 uses : cypress-io/github-action@v5
6424 env :
Original file line number Diff line number Diff line change @@ -3,26 +3,6 @@ export default defineNuxtConfig({
33 compatibilityDate : '{{{compatibilityDate}}}' ,
44 modules : [ '@nuxt/eslint' ] ,
55
6- extends : [
7- '@dpc-sdp/nuxt-ripple' ,
8- '@dpc-sdp/nuxt-ripple-analytics' ,
9- '@dpc-sdp/nuxt-ripple-preview' ,
10- '@dpc-sdp/ripple-sdp-core' ,
11- '..'
12- ] ,
13-
14- modules : [ '@nuxt/eslint' ] ,
15-
16- extends : [
17- '@dpc-sdp/nuxt-ripple' ,
18- '@dpc-sdp/nuxt-ripple-analytics' ,
19- '@dpc-sdp/nuxt-ripple-preview' ,
20- '@dpc-sdp/ripple-sdp-core' ,
21- '..'
22- ] ,
23-
24- modules : [ '@nuxt/eslint' ] ,
25-
266 extends : [
277 '@dpc-sdp/nuxt-ripple' ,
288 '@dpc-sdp/nuxt-ripple-analytics' ,
Original file line number Diff line number Diff line change @@ -2,11 +2,7 @@ import { SdpRplLayer } from '@dpc-sdp/ripple-sdp-projen-config'
22
33const project = new SdpRplLayer ( {
44 name : 'ripple-lib-starter' ,
5- siteProjectName : 'reference-sdp-vic-gov-au' ,
6- defaultReleaseBranch : 'main' ,
7- addCypress : true ,
8- addExamples : true
5+ defaultReleaseBranch : 'main'
96} )
107
11-
128project . synth ( ) ;
Original file line number Diff line number Diff line change 22 <TideBaseLayout
33 :site =" site"
44 :page =" page"
5- :site-section =" page.siteSection"
6- :page-title =" page.title"
7- :page-language =" page.lang"
8- :updated-date =" page.changed || page.created"
9- :show-content-rating =" page.showContentRating"
5+ :siteSection =" page.siteSection"
6+ :pageTitle =" page.title"
7+ :pageLanguage =" page.lang"
8+ :updatedDate =" page.changed || page.created"
9+ :showContentRating =" page.showContentRating"
1010 >
1111 <template #aboveHeader >
1212 <slot name =" aboveHeader" />
2020 <template #aboveBody =" { hasBreadcrumbs } " >
2121 <TideExampleContentTypeHeader
2222 :header =" page.header"
23- :has-breadcrumbs =" hasBreadcrumbs"
23+ :hasBreadcrumbs =" hasBreadcrumbs"
2424 />
2525 </template >
2626 <template #body =" { hasSidebar } " >
3232 <TideDynamicComponents
3333 v-if =" page.bodyComponents?.length > 0"
3434 :components =" page.bodyComponents"
35- :has-sidebar =" hasSidebar"
35+ :hasSidebar =" hasSidebar"
3636 />
3737 </template >
3838 <template #sidebar >
4545</template >
4646
4747<script setup lang="ts">
48- import type { TideSiteData } from ' @dpc-sdp/ripple-tide-api/types'
48+ import { TideSiteData } from ' @dpc-sdp/ripple-tide-api/types'
4949import type { TideExampleContentTypePage } from ' ../../types'
5050
5151interface Props {
You can’t perform that action at this time.
0 commit comments