Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions generatedsvelte/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "gsochub",
"name": "gsochub-svelte",
"version": "0.0.1",
"type": "module",
"private": "true",
"scripts": {
"compile": "cd .. && bun run compile",
"dev": "bun run compile && vite dev",
"build": "bun run compile && vite build",
"preview": "vite preview",
"compile": "bun src/lib/util/main.ts && bun src/compiler/scripts/main.ts",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"format": "prettier --write .",
Expand Down
2 changes: 1 addition & 1 deletion generatedsvelte/src/compiler/scripts/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { transformDataItems } from './transform/transformDataItems';
import { extractData, extractSourcePath } from './extract/extractData';
//import { installPackages } from "./install/installPackages";

const rootDir = path.resolve(process.cwd(), '../');
const rootDir = process.cwd();
const srcPath = path.join(rootDir, 'src');
const buildPathAppDir = path.join(rootDir, 'generatedsvelte/src/routes');
// Global Set to keep track of installed packages
Expand Down
2 changes: 1 addition & 1 deletion generatedsvelte/src/lib/util/countRcStats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as path from "path";
const RC_URL = import.meta.env.RC_URL;
const RC_USER_TOKEN = import.meta.env.RC_USER_TOKEN;
const RC_USER_ID = import.meta.env.RC_USER_ID;
const rootDir = path.resolve(process.cwd(), '../');
const rootDir = process.cwd();
const outputFileDir = path.join(rootDir, '/build/rcstats.js');
const maxRetries = 3;
let validResponse = false;
Expand Down
2 changes: 1 addition & 1 deletion generatedsvelte/src/lib/util/countStats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as path from 'path';
const URL = import.meta.env.VITE_URL;
const USER_TOKEN = import.meta.env.VITE_USER_TOKEN;
const USERID = import.meta.env.VITE_USERID;
const rootDir = path.resolve(process.cwd(), '../');
const rootDir = process.cwd();
const outputFileDir = path.join(rootDir, '/build/stats.js');
const maxRetries = 3;
let validResponse = false;
Expand Down
2 changes: 1 addition & 1 deletion generatedsvelte/src/lib/util/fetchContributors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface Contributor {

const LEADERBOARD_URL = import.meta.env.VITE_LEADERBOARD_URL;
const LB_DATE_URL = import.meta.env.VITE_LB_DATE_URL;
const rootDir = path.resolve(process.cwd(), '../');
const rootDir = process.cwd();
const lastUpdatedDir = path.join(rootDir, '/build/lastUpdated.js');
const defaultFileDir = path.join(rootDir, '/build/contributorDataSortM.js');
const contributorDataSortPDir = path.join(rootDir, '/build/contributorDataSortP.js');
Expand Down
2 changes: 1 addition & 1 deletion generatedsvelte/src/lib/util/fetchEventData.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as fs from 'fs';
import * as path from 'path';
const EVENT_DATA_URL = import.meta.env.VITE_EVENT_DATA_URL;
const rootDir = path.resolve(process.cwd(), '../');
const rootDir = process.cwd();
const outputFileDir = path.join(rootDir, '/build/eventData.js');
const maxRetries = 3;
let validResponse = false;
Expand Down
2 changes: 1 addition & 1 deletion generatedsvelte/src/lib/util/fetchThreads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ for(let i = 0; i < ROOM_NAME.length; i++){
const THREAD_COUNT = 5;
const USER_TOKEN = import.meta.env.VITE_USER_TOKEN;
const USERID = import.meta.env.VITE_USERID;
const rootDir = path.resolve(process.cwd(), '../');
const rootDir = process.cwd();
const maxRetries = 3;

let validResponse = false;
Expand Down
19 changes: 19 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "gsochub-framework",
"version": "0.0.1",
"type": "module",
"private": "true",
"scripts": {
"postinstall": "cd generatedsvelte && bun install",
"compile": "bun generatedsvelte/src/lib/util/main.ts && bun generatedsvelte/src/compiler/scripts/main.ts",
"build": "bun run compile && cd generatedsvelte && bun run build"
},
"devDependencies": {
"@types/node": "^22.16.4",
"typescript": "^5.8.2"
},
"volta": {
"node": "20.10.0"
}
}