-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2264535
commit 8f5b947
Showing
5 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ | |
- Mobx -> React | ||
- MobxStateTree + GraphQL | ||
- Workflow: GitHub Actions | ||
- Node Lib | ||
|
||
## Scripts | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "vite-plugin-starter", | ||
"version": "0.0.1", | ||
"description": "", | ||
"main": "./dist/index.js", | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "tsc", | ||
"dev": "tsnd --respawn --transpile-only src/index.ts", | ||
"watch": "tsc --watch", | ||
"check": "tsc --noEmit" | ||
}, | ||
"devDependencies": { | ||
"vite": "^2.7.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Plugin } from 'vite'; | ||
|
||
export function vitePluginStarter(options: Record<string, unknown>): Plugin { | ||
return { | ||
name: 'vite-plugin-starter', | ||
enforce: 'pre', | ||
apply: (config, env) => true, | ||
config: (config, env) => config, | ||
configResolved: async (config) => {}, | ||
configureServer: (server) => {}, | ||
// resolveId | ||
// load | ||
handleHotUpdate: async (ctx) => {}, | ||
transform: (code: any) => { | ||
return code; | ||
}, | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"extends": "../../tsconfig.base.json", | ||
"compilerOptions": { | ||
"target": "ES2018", | ||
"module": "commonjs", | ||
"lib": [ | ||
"esnext" | ||
], | ||
"rootDir": "src", | ||
"outDir": "dist", | ||
"esModuleInterop": true, | ||
"skipLibCheck": true, | ||
"declaration": true, | ||
"emitDecoratorMetadata": true, | ||
"experimentalDecorators": true | ||
}, | ||
"include": [ | ||
"src" | ||
] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.