4000-520-616
欢迎来到免疫在线!(蚂蚁淘生物旗下平台)  请登录 |  免费注册 |  询价篮
主营:原厂直采,平行进口,授权代理(蚂蚁淘为您服务)
咨询热线电话
4000-520-616
当前位置: 首页 > 新闻动态 >
热卖商品
新闻详情
fife
来自 : www.npmjs.com/package/fife 发布时间:2021-03-26
skip to package search or skip to main content or skip to sign up or skip to sign in or skip to footer❤Neuron Powered MotorizationProductsProTeamsPricingDocumentationCommunitynpm

SearchSign UpSign InHave ideas to improve npm?Join in the discussion! »fife0.2.2 • Public • Published 5 years ago

Readme

Explore BETA

15Dependencies

0Dependents

5Versions

fife

基于NodeJS用于前端项目开发的命令行工具

简介

此命令行工具提供以下功能:

生成前端种子项目及常用组件(目前仅能生成AngularJS项目);快速运行一个前端服务器在开发过程中对项目文件做变更监听,实时刷新浏览器(livereload)拭目以待……

安装

安装到全局

$ npm install -g fife

安装到项目中

$ npm install fife

使用方法

$ fife generate  dir_name 
启动服务器,与此同时会启动文件变更实时监听(livereload)
$ fife runserver
启动实时监听
$ fife livereload

注:此命令仅仅会启动一个实时监听的服务器,无法自动向 html 文件中注入 livereload.js ,所以要保证 livereload 的正常执行,必须手动在html文件中 body 标签的尾部加上如下代码

 script document.write(\' script src= http://\'    + (location.host || \'localhost\').split(\':\')[0]    + \':35729/livereload.js?snipver=1 /\'    + \'script \') /script  
打包项目(目前包含压缩、合并 javascript 文件,编译、压缩 less 文件,更新相应文件的引用,这三种功能)
$ fife build

MIT license

The MIT License (MIT)

Copyright (c) 2014 XiaoShengtao scdzwyxst@gmail.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Software ), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED AS IS , WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Keywordsfront-endlesslivereloadbuildInstall

npm i fife

Downloads

Weekly Downloads

18

Version

0.2.2

License

MIT

Homepage

github.com/PeachScript/fife#readme

Repository

Git

github.com/PeachScript/fife

Last publish

5 years ago

Collaborators\"avatar\"

Try on RunKit

Report malware

Return to top of pageSupportHelpCommunityAdvisoriesStatusContact npmCompanyAboutBlogPressTerms PoliciesPoliciesTerms of UseCode of ConductPrivacy

本文链接: http://fifechemical.immuno-online.com/view-780884.html

发布于 : 2021-03-26 阅读(0)
公司介绍
品牌分类
联络我们
服务热线:4000-520-616
(限工作日9:00-18:00)
QQ :1570468124
手机:18915418616