项目作者: maystart

项目描述 :
这是一个angular-typescript-gulp搭建的入门项目
高级语言: JavaScript
项目地址: git://github.com/maystart/angularjs2-typescript-gulp.git
创建时间: 2017-08-11T02:38:29Z
项目社区:https://github.com/maystart/angularjs2-typescript-gulp

开源协议:

下载


git: https://github.com/PaPiStart/angularjs2-typescript-gulp.git

概述

angularjs2-typescript-gulp

  1. 前端环境:
  2. 代码管理:git
  3. 开发环境:npm,gulp
  4. 开发框架:angualrjs2,typescript

开发

  1. git clone https://github.com/PaPiStart/angularjs2-typescript-gulp.git
  2. npm install -g cnpm --网速不快,可用淘宝镜像
  3. npm/cnpm install -g gulp
  4. npm/cnpm install
  5. gulp -ws

运行gulp -wsnpm start命令,会监听src目录下所有文件的变更,并且默认会在3000端口启动服务器,然后在浏览器打开 http://localhost:3000
运行gulp -ws命令,会启用后台代理转发。

打包

  1. gulp -wm
  2. -m 压缩文件(imgcsslessjs)
  3. -w 启动编译

运行gulp -wmnpm run bulid命令,编译src下的文件,生成编译后的文件dist,