Skip to content

Commit 5182157

Browse files
committed
chore: project created with projen
1 parent 7881533 commit 5182157

34 files changed

+29395
-3315
lines changed

.cypress-cucumber-preprocessorrc.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

.eslintrc

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

.gitattributes

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

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/pull_request_template.md

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Node.js Package
1+
name: Release NPM
22

33
on:
44
release:
Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Build & Test
22
on: [push]
33
jobs:
4-
Build-test:
4+
Setup:
55
runs-on: ubuntu-latest
66
steps:
77
- uses: actions/checkout@v3
@@ -15,11 +15,35 @@ jobs:
1515
run: npm ci
1616
env:
1717
NODE_AUTH_TOKEN: ${{secrets.GPR_NPM_INSTALL_TOKEN}}
18-
- run: npm run build
18+
- name: Build
19+
run: npm run build
20+
- name: Upload build artifact
21+
uses: actions/upload-artifact@v3
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@v3
39+
with:
40+
name: build
41+
path: .next
1942
- run: npm run lint
2043
- run: npm run test:unit
2144

2245
Integration:
46+
needs: Setup
2347
runs-on: ubuntu-latest
2448
steps:
2549
- name: Checkout
@@ -30,6 +54,11 @@ jobs:
3054
registry-url: 'https://npm.pkg.github.com/'
3155
node-version: 18
3256
scope: '@dpc-sdp'
57+
- name: Download build artifact
58+
uses: actions/download-artifact@v3
59+
with:
60+
name: build
61+
path: .next
3362
- name: Cypress run
3463
uses: cypress-io/github-action@v5
3564
env:
@@ -40,7 +69,6 @@ jobs:
4069
API_PORT: '3001'
4170
NODE_AUTH_TOKEN: ${{secrets.GPR_NPM_INSTALL_TOKEN}}
4271
with:
43-
build: npm run build
72+
build: echo "Build already done in Setup job"
4473
start: npm start
4574
wait-on: 'http://localhost:3000/assets/fonts/VIC-Regular.woff2'
46-

.gitignore

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

.npmrc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
@dpc-sdp:registry=https://npm.pkg.github.com
2-
shamefully-hoist=true
3-
strict-peer-dependencies=false

.playground/app.config.ts

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,17 @@
1+
import pkg from './package.json'
2+
import { getDpcPkgs } from '@dpc-sdp/ripple-tide-api/utils'
3+
import { defineAppConfig } from '#imports'
4+
15
export default defineAppConfig({
6+
project: {
7+
name: pkg.name,
8+
version: pkg.version
9+
},
210
ripple: {
3-
featureFlags: {
4-
contentCollectionSearchConnector: 'elasticsearch'
5-
},
6-
theme: {
7-
'rpl-clr-primary': '#6B19A3',
8-
'rpl-clr-footer-alt': '#6B19A3',
9-
'rpl-clr-link': '#6B19A3',
10-
'rpl-clr-type-primary-accessible': '#6B19A3',
11-
'rpl-clr-primary-alt': '#3F006B',
12-
'rpl-clr-type-primary-alt-accessible': '#3F006B',
13-
'rpl-clr-footer': '#3F006B',
14-
'rpl-clr-type-footer-accessible': '#3F006B',
15-
'rpl-clr-primary-alpha': 'rgba(107, 25, 163, 0.5)',
16-
'rpl-clr-accent': '#6DDD97',
17-
'rpl-clr-accent-alt': '#EAFAF0',
18-
'rpl-clr-focus': '#9DEF65',
19-
'rpl-clr-gradient-horizontal':
20-
'linear-gradient(90deg, #382484 0%, #5A0099 20%, #7623B0 35%, #2E7478 50%, #2FA26F 70%, #2FCE6A 80%)',
21-
'rpl-clr-gradient-vertical':
22-
'linear-gradient(180deg, #382484 0%, #5A0099 20%, #7623B0 35%, #2E7478 50%, #2FA26F 70%, #2FCE6A 80%)'
23-
}
11+
packages: getDpcPkgs({ ...pkg.dependencies, ...pkg.devDependencies }),
12+
version: pkg.devDependencies['@dpc-sdp/nuxt-ripple'],
13+
// featureFlags and theme are usually populated from the Tide site taxonomy values. Use these for local testing development. See https://ripple.sdp.vic.gov.au/framework/guides/brand-application
14+
featureFlags: {},
15+
theme: {}
2416
}
2517
})

0 commit comments

Comments
 (0)