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

中江门户网站西安做网站哪里价格低

中江门户网站,西安做网站哪里价格低,完整网站模板下载,企业网站建设方案流程脚手架的开发流程 1 )开发流程 创建 npm 项目创建脚手架入口文件,最上方添加: #!/usr/bin/env node 配置 package.json, 添加 bin 属性编写脚手架代码将脚手架发布到 npm 2 )使用流程 安装脚手架 npm install -g your-own-cli …

脚手架的开发流程


1 )开发流程

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

2 )使用流程

  • 安装脚手架

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

    • your-own-cli

3 )脚手架开发难点

  • 分包: 将复杂的系统拆分成若干个模块,并且合并成一个复杂系统
  • 命令注册,如:
    • $ vue create
    • $ vue add
    • $ vue invoke
    • 这里需要了解,如何注册命令,以及执行命令
  • 参数解析
    • 如:vue command [options] <params>
    • options全称: --version, --help
    • options简写:-V, -h
    • 带params的options: --path /Users/xxx/…/vue-test
    • 帮助文档:
      • global help 是指对主命令进行帮助
        • Usage
        • Options
        • Commands
      • vue的帮助文档示例,这个属于 global help
        $ vue
        Usage: vue <command> [options]Options:-V, --version                              output the version number-h, --help                                 output usage informationCommands: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 [options] [entry]                    serve a .js or .vue file in development mode with zero configbuild [options] [entry]                    build a .js or .vue file in production mode with zero configui [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 configupgrade [semverLevel]                      upgrade vue cli service / plugins (default semverLevel: minor)info                                       print debugging information about your environmentRun vue <command> --help for detailed usage of given command.
        
        • 可见,可通过 vue -V, 或 vue -h 可查看具体的信息
        • global help 只能表示主命令的用法,对于子命令,也同样需要
      • command help 子命令帮助
        • Usage
        • Options
      • 子命令的帮助信息,举例
        $ vue create
        Usage: 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-c, --clone                     Use git clone when fetching remote preset-x, --proxy                     Use specified proxy when creating project-b, --bare                      Scaffold project without beginner instructions--skipGetStarted                Skip displaying "Get started" instructions-h, --help                      output usage informationMissing required argument <app-name>.
        
    • 同样,还有很多,如:
      • 命令行交互: 可以选择
      • 日志打印: 标准打印
      • 命令行文字变色: 错误红色,警告黄色
      • 网络通信:HTTP/WebSocket
      • 文件处理
http://www.yayakq.cn/news/923433/

相关文章:

  • 合肥网站制作QQ画册设计说明怎么写
  • 知名企业网站人才招聘情况网站后台设置关键词在哪设
  • 江西做网站的公司有哪些简洁大气的网站设计
  • 网站禁止pingseo技能培训
  • 象山区网站建设短视频营销成功案例
  • 福州有网站建设的公司清镇网站建设推广
  • 网站代码在哪里修改私人信息调查
  • 制作网站制作建设银行平潭招聘网站
  • 纯文本网站活动策划案模板
  • 盐城网站推广网站建设属于哪个分类编码
  • 网站建设手机端是什么意思免费WAP建导航网站
  • 网站首页轮播图怎么换未来做那些网站致富
  • 网站备案 做网站时就需要吗怎么修改网站标题关键词描述
  • 开源免费企业网站系统电子网站建设价格
  • 网站建设中的ftp地址wordpress时间不准
  • 惠州网站建设 翻译电子商务的发展现状和前景趋势
  • 服装设计网站排行榜前十名苏州seo培训多少钱
  • 网站怎么快速做收录大连市住建局官网
  • 有没有卖设计的网站170个可带链接锚文本外链的网站论坛
  • 开发一个大型网站多少钱宠物美容网站建设的目的
  • iis7搭建网站教程软件开发文档编写规范
  • 高大上网站宿迁房产网户型图
  • 建设网站的项目策划书免费空间 上传网站
  • 口碑好的网站建设加工提供大良网站建设
  • 个人做电商网站icp广东建设营销型网站
  • 湖州医院网站建设方案你学做网站学了多久
  • 国外的建筑设计网站这几年做网站怎么样
  • 山东网站建设找哪家二维码活码生成器在线制作
  • ppt做书模板下载网站有哪些html加入wordpress
  • 阿里巴巴网站建设初衷静态网站制作模板