1.0.0-pre.4 • Published 5 years ago
setup-routify-ts v1.0.0-pre.4
setup-routify-ts (Unofficial)
Use Typescript in Routify Starter Template.
Usage
setup-routify-ts supports creating projects from scratch or converting existing projects. please select according to your needs.
Method 1: Create new Routify Starter Template
Command
npx setup-routify-ts init <project-name> [routify-init-args]Arguments
project-name: Your project name (will be used as the folder name).routify-init-args: Some arguments will be passed tonpx @sveltech/routify initcommand. See Routify Get Started.
Example
npx setup-routify-ts init my-routify-appMethod 2: Convert existing projects to Typescript
Command
npx setup-routify-ts convert [project-directory]Arguments
project-directory: Path to your project folder. Default:.(Current folder).
Example
npx setup-routify-ts convert /home/me/my-routify-appWhat we do
- Create new
tsconfig.jsonfile in root folder. - Add
svelte-checkscript & somedevDependenciestopackage.json. - Rename
src/main.jstosrc/main.ts. - Add
langproperty toscriptelement insrc/App.svelte. - Add some plugins & configurations to
scripts/base.config.js. - Create new
extensions.jsonfile in.vscodedirectory.
Note
Routify repository:
Routify is a work in progress. Since v1.5 we have a stable release. But this is a relatively young project. You can expect it to evolve.
Since Routify is in the progress, a lot of changes are likely to occur. If you find an error or something that is not updated, please inform us in the Issues section or fix it yourself by creating a new Pull Request.
Tested with @sveltech/routify@v1.9.9
1.0.0-pre.4
5 years ago
1.0.0-pre.3
5 years ago
1.0.0-pre.2
5 years ago
1.0.0-pre.1
5 years ago
1.0.0-pre.0
5 years ago