搭建乙個簡單的ts小工程

2021-10-13 21:06:30 字數 657 閱讀 8830

第一步:執行命令建立工程,選擇任意目錄

mkdir helloworld

cd .

/helloworld

mkdir src

mkdir bin

cnpm install glup

cnpm install browserify vinyl-source-stream tsify

cnpm install typescript

code .

第二步:安裝除錯外掛程式

流程就是寫ts**,使用browserify source tsify集成為乙個js檔案,再用html啟動這個js檔案,就是這麼easy

新建bin/helloweb.html

<

!doctype html>

typescript hello web<

/title>

<

/head>

搭建乙個簡單的mvc(一)

框架的基本結構 先定義乙個入口檔案index.php.作用是1 定義常量 2 載入函式庫 3 啟動框架 header content type text html charset utf 8 define mulu trim str replace dir 定義框架所在目錄 define core ...

乙個簡單的CMake工程示例

在工程目錄下,構建目錄src,include,lib,bin。在src目錄下存放源 檔案,include目錄下存放標頭檔案,lib目錄用於存放生成的庫 動態庫或者靜態庫 bin目錄存放最終生成的可執行檔案。src目錄存放main.cpp和lib demo.cpp的原始檔 main.cpp inclu...

搭建乙個簡單的dubbo專案

dependency groupid com.alibaba groupid artifactid dubbo artifactid version 2.5.7 version dependency dependency groupid com.github.sgroschupf groupid a...