Skip to content

Commit 52fa361

Browse files
committed
chore: project created with projen
1 parent d68ece0 commit 52fa361

File tree

5 files changed

+19
-83
lines changed

5 files changed

+19
-83
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Build & Test
22
on: [push]
33
jobs:
4-
Setup:
4+
Test:
55
runs-on: ubuntu-latest
66
steps:
77
- uses: actions/checkout@v3
@@ -17,48 +17,8 @@ jobs:
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:

.playground/nuxt.config.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff 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',

.projenrc.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@ import { SdpRplLayer } from '@dpc-sdp/ripple-sdp-projen-config'
22

33
const 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-
128
project.synth();

layers/content-type/components/global/TideExampleContentType.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
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" />
@@ -20,7 +20,7 @@
2020
<template #aboveBody="{ hasBreadcrumbs }">
2121
<TideExampleContentTypeHeader
2222
:header="page.header"
23-
:has-breadcrumbs="hasBreadcrumbs"
23+
:hasBreadcrumbs="hasBreadcrumbs"
2424
/>
2525
</template>
2626
<template #body="{ hasSidebar }">
@@ -32,7 +32,7 @@
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>
@@ -45,7 +45,7 @@
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'
4949
import type { TideExampleContentTypePage } from '../../types'
5050
5151
interface Props {

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)