All Projects → lamualfa → routify-ts

lamualfa / routify-ts

Licence: WTFPL License
Use Typescript in Routify Starter Template.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to routify-ts

sveltober
Cybernetically enhanced October applications
Stars: ✭ 19 (-9.52%)
Mutual labels:  svelte
clui
A command system with extra steps
Stars: ✭ 18 (-14.29%)
Mutual labels:  svelte
p5-svelte
Easily add p5 sketches to a Svelte project 🍛 🌱
Stars: ✭ 94 (+347.62%)
Mutual labels:  svelte
svelte-router
Router component for Svelte
Stars: ✭ 63 (+200%)
Mutual labels:  svelte
memento-svelte-electron-typescript
Template to create a desktop app with Svelte, TailwindCSS, Electron and TypeScript (with electron-updater, electron-reload and electron-builder)
Stars: ✭ 27 (+28.57%)
Mutual labels:  svelte
svelvg
Convert SVG files into Svelte components with TypeScript definitions
Stars: ✭ 19 (-9.52%)
Mutual labels:  svelte
svelte-meteor-data
Reactively track Meteor data inside Svelte components
Stars: ✭ 14 (-33.33%)
Mutual labels:  svelte
svelte-headlessui
Unofficial Svelte port of Headless UI components
Stars: ✭ 564 (+2585.71%)
Mutual labels:  svelte
svelte-hamburgers
Custom Hamburger Icons in Svelte with ease
Stars: ✭ 27 (+28.57%)
Mutual labels:  svelte
agnosticui
AgnosticUI is a set of UI primitives that start their lives in clean HTML and CSS. These standards compliant components are then copied to our framework implementations in: React, Vue 3, Angular, and Svelte.
Stars: ✭ 326 (+1452.38%)
Mutual labels:  svelte
svelte-generic-crud-table
Agnostic web-component for object-arrays with CRUD functionality.
Stars: ✭ 38 (+80.95%)
Mutual labels:  svelte
http-interceptors
The Web apps in this monorepo make HTTP requests and require uniform consistency in how they are executed and handled. This monorepo demonstrates the same app written with Angular and with Svelte. Each app uses HTTP interceptors. The Angular app uses HttpClient and its interceptors while the Svelte app uses Axios and its interceptors.
Stars: ✭ 46 (+119.05%)
Mutual labels:  svelte
dotto.x
A tiny state manager for React, Svelte, Vue and vanilla JS
Stars: ✭ 104 (+395.24%)
Mutual labels:  svelte
svelte-fast-dimension
Fast dimension bindings using ResizeObservers
Stars: ✭ 23 (+9.52%)
Mutual labels:  svelte
svelte-flat-ui
Flat UI Independent JS Components + English Docs =
Stars: ✭ 45 (+114.29%)
Mutual labels:  svelte
svelte-trivia
A Quiz app completely made using Svelte
Stars: ✭ 25 (+19.05%)
Mutual labels:  svelte
svelte-style-directive
A custom Svelte preprocessor to add support for style directive.
Stars: ✭ 19 (-9.52%)
Mutual labels:  svelte
plate-app
🍛 What's on your Plate?
Stars: ✭ 49 (+133.33%)
Mutual labels:  svelte
programmingtil-svelte
No description or website provided.
Stars: ✭ 59 (+180.95%)
Mutual labels:  svelte
blog-template
A markdown-style blog template for Sapper
Stars: ✭ 29 (+38.1%)
Mutual labels:  svelte

NPM Version NPM Downloads Github License Dependencies

routify-ts

Use Typescript in Routify Starter Template.

Important

  • This library does not have support for Routify v3 template project (PR Welcome).
  • The script name has been changed from setup-routify-ts to routify-ts.
  • This routify-ts script designed for Routify Starter Template. Not for Svelte Template.
  • This documentation is shown for @sveltech/routify version 2. For versions below 2, please visit v1.0.0.
  • Please backup your project folder before use routify-ts convert command. You don't need to do that for init command.

Usage

We have 2 methods to add Typescript support to Routify Starter Template. You can choose whichever one suits your needs.

Support methods:


Create new Routify Starter Template from Scratch

With this method, routify-ts will create a Routify Starter Template and then add additional configurations for Typescript purposes.

Command

npx 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 to npx @sveltech/routify init command. See Routify Get Started.

Example

npx routify-ts init my-routify-app

Convert existing projects to Typescript

routify-ts will add additional configurations for Typescript needs to an existing project.

Important - Try to do backups to prevent conflicts in case of conflicts with the configuration that you have made.

Command

npx routify-ts convert [project-directory]

Arguments

  • project-directory: Path to your project folder. Default: .(Current folder).

Example

npx routify-ts convert /home/me/my-routify-app

What we do

  • Create new tsconfig.json file in root folder.
  • Add svelte-check script & some devDependencies to package.json.
  • Rename src/main.js to src/main.ts.
  • Add lang property to script element in src/App.svelte.
  • Add some plugins & configurations to rollup.config.js file.
  • Create new extensions.json file in .vscode directory.

Tested with @roxi/[email protected]


Related

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].