【文件属性】:
文件名称:angular-project-template
文件大小:22KB
文件格式:ZIP
更新时间:2021-06-02 07:10:34
JavaScript
角度项目模板
项目设置和工作流程
先决条件
需要以下工具:
创建项目
curl -L https://github.com/wilsonjackson/angular-project-template/archive/master.tar.gz | tar xz && mv angular-project-template-master projectname
请记住将projectname替换为您的项目名称。
安装项目依赖
npm install
运行测试套件
gulp test
运行开发服务器
gulp serve-dev
这将启动一个本地服务器,默认在端口 8080 上运行,它将为应用程序提供服务。 对源文件的更改将实时反映,但对依赖项的更改将需要重新启动服务器,因为它们被积极缓存。
除了主要的应用程序源文件(在src目录中)之外,还将提供仅用于开发的源文件(在dev目
【文件预览】:
angular-project-template-master
----.jshintignore(14B)
----package.json(2KB)
----test()
--------e2e()
----protractor.conf.js(326B)
----gulpfile.js(6KB)
----gulp()
--------tasks()
--------streams()
----src()
--------app.less(0B)
--------file-wrapper.txt(29B)
--------index.html(446B)
--------fish()
--------app-wrapper.txt(46B)
--------app.js(75B)
----dev()
--------dev.js(288B)
----.gitignore(222B)
----karma.conf.js(2KB)
----README.md(2KB)
----.jshintrc(746B)
----.editorconfig(487B)