Skip to content

Commit

Permalink
[+] Add yarn subcommands
Browse files Browse the repository at this point in the history
  • Loading branch information
hykilpikonna committed Jan 6, 2023
1 parent 327e4b6 commit 13e34d3
Show file tree
Hide file tree
Showing 4 changed files with 393 additions and 3 deletions.
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"type": "module",
"private": true,
"scripts": {
"build": "node --loader ts-node/esm/transpile-only scripts/build.ts"
"build": "node --loader ts-node/esm/transpile-only scripts/build.ts",
"build-preview": "yarn build && scripts/preview.sh",
"preview": "yarn build-preview && http-server dist"
},
"dependencies": {
"@mdx-js/mdx": "^2.1.5",
Expand All @@ -26,6 +28,8 @@
"xdm": "^3.4.0"
},
"devDependencies": {
"@types/js-yaml": "^4.0.5"
"@octokit/core": "^4.1.0",
"@types/js-yaml": "^4.0.5",
"http-server": "^14.1.1"
}
}
1 change: 1 addition & 0 deletions scripts/preview.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ tar -xf web.tgz --strip-components=1

# Replace data host url to "/"
sed -i 's/"https:\/\/data.one-among.us"/window.location.origin/g' ./**/*.js

2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"resolveJsonModule": true,
"isolatedModules": true,
"strict": false,
"module": "ES2020",
"module": "esnext",
"strictBindCallApply": true,
"baseUrl": "./",
"outDir": "./dist"
Expand Down
Loading

0 comments on commit 13e34d3

Please sign in to comment.