4 Star 5 Fork 0

王吉/SerialPortBootStrap

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
BSD-2-Clause

1.概要

本脚手架是用来完成Node.js操作测量设备的串口通讯框架.

本框架将封装大部分仪器设备的常用操作指令,目前打算支持的设备有:

  • 测距仪
  • TPS全站仪

2.编译

该框架采用TypeScript编写,当前的编译版本为1.6.2. 要使用TypeScript,你必须先安装TypeScript:

npm install -g TypeScript

3.ES标准

该框架采用ES6语法标准来编写,但运行平台的语法标准是ES5.

因此,你还必须安装babel来对生成的ES6代码进行转换.

npm install -g babel
npm install -g babel-runtime

4.Task

框架采用Gulp来构建任务,目前的Task有:

  • compile:编译TS代码到ES5
  • watch:实时编译TS代码到ES5
  • typedoc:根据注释生成项目ts的documents
  • esdoc:根据注释生成项目的es6的documents
Copyright (c) 2015, jigi330 All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

简介

使用Node.js的Serialport来完成一些设备的自动化测量 展开 收起
NodeJS
BSD-2-Clause
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
NodeJS
1
https://gitee.com/sudowang/SerialPortBootStrap.git
git@gitee.com:sudowang/SerialPortBootStrap.git
sudowang
SerialPortBootStrap
SerialPortBootStrap
master

搜索帮助

Dd8185d8 1850385 E526c682 1850385