File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3737 - name : 📦 Install dependencies
3838 run : npm ci
3939 working-directory : Website
40- - name : 🔨 Build
41- run : npm run build
40+ - name : 🗃️ Move stub data
41+ run : npm run prepipeline
4242 working-directory : Website
4343 - name : 📝 Lint
4444 run : npm run lint
4545 working-directory : Website
46+ - name : 🔨 Build
47+ run : npm run build
48+ working-directory : Website
Original file line number Diff line number Diff line change 66 "dev" : " next dev" ,
77 "build" : " next build" ,
88 "start" : " next start" ,
9- "lint" : " next lint"
9+ "lint" : " next lint" ,
10+ "prepipeline" : " node scripts/copyStub.js"
1011 },
1112 "dependencies" : {
1213 "@radix-ui/react-collapsible" : " ^1.1.1" ,
Original file line number Diff line number Diff line change 1+ const fs = require ( 'fs' ) ;
2+ const path = require ( 'path' ) ;
3+
4+ const source = path . resolve ( __dirname , '../stubs/Data.ts' ) ;
5+ const destination = path . resolve ( __dirname , '../generated/Data.ts' ) ;
6+
7+ fs . mkdirSync ( path . dirname ( destination ) , { recursive : true } ) ;
8+ fs . copyFileSync ( source , destination ) ;
9+
10+ console . log ( `Stub Data.ts copied to ${ destination } ` ) ;
Original file line number Diff line number Diff line change 1+ /// Used in github workflow to generate stubs for data
2+ /// This file is a stub and should not be modified directly.
3+
4+ import { GroupType } from "@/lib/Types" ;
5+
6+ export let Groups : GroupType [ ] = [
7+ {
8+ "Name" :"Untitled" ,
9+ "Entities" :[ ]
10+ }
11+ ] ;
You can’t perform that action at this time.
0 commit comments