当前位置: 首页 > news >正文

长春网站建设联系吉网传媒优百度正版下载恢复百度

长春网站建设联系吉网传媒优,百度正版下载恢复百度,网站建设的风险,环球资源网站开发流程 创建npm项目创建脚手架入口文件,最上方添加 #!/usr/bin/env/ node配置package.json,添加bin属性编写脚手架代码将脚手架发布到npm 使用流程 安装脚手架 npm install -g your-own-cli使用脚手架 your-own-cli脚手架开发难点解析 分包&…

开发流程

  • 创建npm项目
  • 创建脚手架入口文件,最上方添加
#!/usr/bin/env/ node
  • 配置package.json,添加bin属性
  • 编写脚手架代码
  • 将脚手架发布到npm

使用流程

  • 安装脚手架
npm install -g your-own-cli
  • 使用脚手架
your-own-cli

脚手架开发难点解析

  • 分包:将复杂的系统拆分成若干个模块
  • 命令注册:
vue create
vue add
vue invoke
  • 参数解析
vue command [options] <params>
  • options全称:–version、–help

  • options简写:-V、-h

  • 带params的options: --path /Users/sam/Desktop/vue-test

  • 帮助文档:
    global help:
    Usage
    Options
    Commands
    示例:vue 的帮助信息

Options:-V, --version                              output the version number-h, --help                                 display help for commandCommands:create [options] <app-name>                create a new project powered by vue-cli-serviceadd [options] <plugin> [pluginOptions]     install a plugin and invoke its generator in an already created projectinvoke [options] <plugin> [pluginOptions]  invoke the generator of a plugin in an already created projectinspect [options] [paths...]               inspect the webpack config in a project with vue-cli-serviceserve                                      alias of "npm run serve" in the current projectbuild                                      alias of "npm run build" in the current projectui [options]                               start and open the vue-cli uiinit [options] <template> <app-name>       generate a project from a remote template (legacy API, requires@vue/cli-init)config [options] [value]                   inspect and modify the configoutdated [options]                         (experimental) check for outdated vue cli service / pluginsupgrade [options] [plugin-name]            (experimental) upgrade vue cli service / pluginsmigrate [options] [plugin-name]            (experimental) run migrator for an already-installed cli plugininfo                                       print debugging information about your environmenthelp [command]                             display help for commandRun vue <command> --help for detailed usage of given command.
  • command help
    Usage
    Options
    vue create的帮助信息:
Usage: vue create [options] <app-name>create a new project powered by vue-cli-serviceOptions:-p, --preset <presetName>       Skip prompts and use saved or remote preset-d, --default                   Skip prompts and use default preset-i, --inlinePreset <json>       Skip prompts and use inline JSON string as preset-m, --packageManager <command>  Use specified npm client when installing dependencies-r, --registry <url>            Use specified npm registry when installing dependencies (only for npm)-g, --git [message]             Force git initialization with initial commit message-n, --no-git                    Skip git initialization-f, --force                     Overwrite target directory if it exists--merge                         Merge target directory if it exists-c, --clone                     Use git clone when fetching remote preset-x, --proxy <proxyUrl>          Use specified proxy when creating project-b, --bare                      Scaffold project without beginner instructions--skipGetStarted                Skip displaying "Get started" instructions-h, --help                      display help for command

还有很多,比如:

  • 命令行交互
  • 日志打印
  • 命令行文字变色
  • 网络通信:HTTP/WebSocket
  • 文件处理
    等等…
http://www.mmbaike.com/news/61801.html

相关文章:

  • 建网站 找个人百度官方优化指南
  • 东营本地网站有哪些营销网站
  • 怎么提高网站的百度收录品牌推广网络公司
  • wordpress评分杂志优化营商环境应当坚持什么原则
  • 专业提供网站建设服务重庆seo海洋qq
  • o2o网站建设公司青岛百度快速排名优化
  • 网站的空间租用费文娱热搜榜
  • 自己做的网站怎么发布上seo研究中心论坛
  • 个人网站设计与实现源码青岛网站seo分析
  • 公司网站用哪个软件做北京seo网站开发
  • 亚马逊服务器做影视网站二级域名查询入口
  • 惠州网站建设培训济南seo快速霸屏
  • 企业网站开发是什么品牌广告和效果广告的区别
  • 网站如何在百度搜索到yahoo搜索
  • 牌具做网站镇江网站定制
  • 网站建设与维护是做什么指数型基金
  • 网站开发背景及意义百度关键词优化服务
  • python语言北京百度seo排名点击软件
  • 在哪个平台做网站好国内最好用免费建站系统
  • 网站网页公司推广方案
  • wordpress置顶文章没用seo关键词平台
  • 如何做网络营销推广文seo关键词首页排名代发
  • 日木女人做爰视频网站seo岗位职责
  • 什么叫网站备案seo排名优化软件免费
  • 后台很慢wordpressseo关键词大搜
  • 网站主持人制作西安疫情最新消息1小时内
  • 做网站客服去哪应聘北京百度快速排名
  • 注册装修公司要多少钱才能注册怎么制作seo搜索优化
  • 平面设计套用模板网站在线查网站的ip地址
  • 网站推广适合哪种公司做小程序生成平台系统