Skip to content

Latest commit

 

History

History
 
 

rollup-typescript

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

rollup-typescript

This example was scaffolded from the official Svelte TypeScript template.

Add the following fields in you tsconfig.json for autocompleting Carbon Icons:

{
  "extends": "@tsconfig/svelte/tsconfig.json",
  "include": ["src/**/*"],
+  "compilerOptions": {
+   "importsNotUsedAsValues": "remove",
+   "types": ["svelte", "carbon-icons-svelte"]
+  },
  "exclude": ["node_modules/*", "public/*"]
}

Assuming that you use VSCode and have the offical Svelte VSCode extension installed, you should experience some level of code completion for module imports and props.

Available Scripts

yarn dev

Runs the app in development mode.

yarn build

Builds the app in production mode.

yarn start

Serves the app locally. Run yarn build before yarn start.

yarn validate

Runs svelte-check.