Skip to content

Instantly share code, notes, and snippets.

@yoonhoGo
Created September 11, 2018 06:41
Show Gist options
  • Save yoonhoGo/b30528c5e374588f6662472648c5f276 to your computer and use it in GitHub Desktop.
Save yoonhoGo/b30528c5e374588f6662472648c5f276 to your computer and use it in GitHub Desktop.
Nuxt-edge-with-Typescript-boilerplate
// tsconfig.json
{
"compilerOptions": {
/* Basic Options */
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
"allowJs": true, /* Allow javascript files to be compiled. */
"outDir": "./.dist", /* Redirect output structure to the directory. */
/* Strict Type-Checking Options */
"strict": true, /* Enable all strict type-checking options. */
/* Module Resolution Options */
"moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
"baseUrl": "./src", /* Base directory to resolve non-absolute module names. */
"paths": {
"*": ["node_modules/*"],
"~/*": ["src/*"],
"@/*": ["types/*"]
}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
/* Experimental Options */
"experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment