当前位置: 首页 > 软件库 > 手机/移动开发 > >

nativescript-dev-typescript

TypeScript support for NativeScript projects
授权协议 Apache-2.0 License
开发语言 JavaScript TypeScript
所属分类 手机/移动开发
软件类型 开源软件
地区 不详
投 递 者 淳于嘉树
操作系统 iOS
开源组织
适用人群 未知
 软件概览

NativeScript TypeScript

nativescript-dev-typescript is deprecated in favour of bundle workflow, which will be introduced with CLI v6.0. More info about the upcoming new approach can be found here.

A package providing TypeScript support for NativeScript.

NativeScript is a framework which enables developers to write truly native mobile applications for Android and iOS using JavaScript and CSS. Angular is one of the most popular open source JavaScript frameworks for application development. We worked closely with developers at Google to make Angular in NativeScript a reality. The result is a software architecture that allows you to build mobile apps using the same framework—and in some cases the same code—that you use to build Angular web apps, with the performance you’d expect from native code. Read more about building truly native mobile apps with NativeScript and Angular.

How to use in NativeScript projects

$ npm install -D nativescript-dev-typescript

The above command adds nativescript-dev-typescript package as dev dependency and installs the necessary hooks. TypeScript compilation happens when the project is prepared for build. A file named tsconfig.json that specifies compilation options will be created in the project folder and should be committed to source control. Read more about tsconfig.json options.

How it works

When the plugin installed what it will do out of the box is to add

  • tsconfig.json file to the project (if it doesn't exist),
  • typescript as dev dependency
  • before-prepare hook which takes care to transpile all files before preparing your project
  • before-watch hook to start the typescript watcher and transpile on every typescript change during project livesync
  • after-watch hook to stop the typescript watcher after the livesync is stopped

How to use in NativeScript plugins

This package is not meant to be used in plugins. It's applicable for NativeScript projects only.

Contribute

We love PRs! Check out the contributing guidelines. If you want to contribute, but you are not sure where to start - look for issues labeled help wanted.

Get Help

Please, use github issues strictly for reporting bugs or requesting features. For general questions and support, check out the NativeScript community forum or ask our experts in NativeScript community Slack channel.

  • uniapp配置eslint、typescript-eslint 安装eslint yarn add eslint eslint-plugin-vue vue-eslint-parser -D eslint-plugin-vue使用文档 安装typscript相关插件 必须保证tyscript和typescript-eslint/parser已经安装才能进行下一步@typescript-eslin

  •     使用cra创建项目 在项目中使用ts npx create-react-app 项目名 --template typescript 为什么使用cra呢?因为它会自动安装并配置ts相关的包,以及jest测试包等常用的包,以及一些常用的webpack配置,比如热重载、优化后的打包配置等,还直接配置好了对es6+的各自新特性的支持。而且,如果将来cra增加了新功能,我们可以只修改package.

  • NativeScript 6.0是Progress开源框架的最新版本,用于使用JavaScript, TypeScript或Angular构建本机移动应用程序。 此更新提供了更快的应用程序更新和较小的应用程序二进制文件。 [使用Visual Studio代码? 不要为每个开发人员错过这10个Visual Studio Code扩展 。 •了解最新版本的Visual Studio Code中的新增功

  • react+umi+dva+typescript创建及配置项目方案总结 背景描述: Umi是蚂蚁金服开源的 react 应用框架,是可扩展的企业级应用框架。Umi 以路由为基础的,同时支持配置式路由和约定式路由,保证路由的功能完备,并以此进行功能扩展。然后配以生命周期完善的插件体系,覆盖从源码到构建产物的每个生命周期,支持各种功能扩展和业务需求。具有以下优势: 可扩展,Umi 实现了完整的生命周期

  • 内容:项目打包部署、图表、服务器端渲染、typescript 日期:2020-09-14` 一、项目打包部署 1.打包 npm run build 2.部署 (1)备份本地数据文件,然后在服务器上创建一个数据库,并导入已备份的数据库 (2)将接口项目上传到服务器,然后通过pm2把接口项目运行起来 (3)代理配置 把打包好的项目文件上传到服务器上,并配置域名进行解析 如果线上服务器用的是nginx

  • 前言 前阵子在自己学习React,最开始上手使用的creat-react-app来创建自己的项目,2版本之后的create-react-app已经支持了很多功能,比如sass、数据mock、typescript支持等等,也升级了相关依赖babel、webpack到一个最新的版本,具体可以参照Create React App 中文文档,但是它将项目的webpack配置等内容给藏起来了,想要自己配置的

  • 使用 NativeScript ,我们可以很容易的调用平台的原生 API,在开发过程中,我们可以添加这些 API 的 d.ts 文件来提供智能感知,帮助我们更方便的构建媲美原生的 APP。 首先通过 npm 下载 d.ts 文件 npm i --save-dev tns-platform-declarations 然后添加引用,修改项目根目录下的 reference.d.ts 内容设置为下面的代码

  • 原文: Getting Started with React TypeScript and Webpack 作者:Grant 译者:博轩 我会通过这篇文章,为大家讲述,如何使用 React,TypeScript 和 Webpack 来构建一个项目。 开始 这是一篇关于如何使用 React,TypeScript 和 Webpack 来构建一个非常基础的项目的教程。您可以继续阅读,或者直接在 gith

 相关资料
  • The source code has been moved into the main NativeScript monorepo and all issues are handled in the main repo now. This repository is now in read-only mode (archived) for reference. NativeScript Webp

  • SASS CSS pre-processor for NativeScript projects nativescript-dev-sass is deprecated in favour of bundle workflow, which will be introduced with CLI v6.0. More info about the upcoming new approach can

  • nativescript-dev-appium A package to help with writing and executing e2e Appium tests. Features Requirеments Setup Structure Files Preview Usage Blogs Demos Videos Custom Appium Capabilities Options T

  • 概述 本文主要介绍 canal 产品整体设计,帮助你快速地熟悉代码脉络。如果你对 canal 还一无所知,只是知道他能进行数据迁移同步,那么建议先行阅读 [[Introduction]] 和 [[AdminGuide]] 两篇文档了解。 产品设计 server 代表一个 canal 运行实例,对应于一个 jvm instance 对应于一个数据队列 (1个 canal server 对应 1..n

  • dev-setup 搭建本地开发环境相关文档。

  • Dev C++是一个Windows环境下的一个适合于初学者使用的轻量级 C/C++ 集成开发环境(IDE)。它是一款自由软件,遵守GPL许可协议分发源代码。它集合了MinGW中的GCC编译器、GDB调试器和AStyle格式整理器等众多自由软件。 Dev C++使用MinGW/GCC编译器,遵循C/C++标准。开发环境包括多页面窗口、工程编辑器以及调试器等,在工程编辑器中集合了编辑器、编译器、连接程