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

深圳手机网站制作公司排名百度官方下载

深圳手机网站制作公司排名,百度官方下载,网线制作的标准,网站建设与制作与维护ppt脚手架的开发流程 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/978118/

相关文章:

  • 网站服务器如何管理做暧暧暖网站欧美
  • 做黑网站赚钱吗html静态网站开发自我介绍
  • 济南模版网站网站色彩搭配方案
  • 广州做网站的哪家好网络营销自学网站
  • 网站开发者取色工具广西南宁网络营销网站
  • 手机能访问asp网站网站制作哪些类型
  • 专门做朋友圈小视频的网站技术支持 郑州做网站
  • 网站的demo怎么做杭州建设培训中心网站
  • 山东川畅信息技术有限公司网站建设上海企业网站制作费用
  • 制作什么网站好wordpress网址转跳页面插件
  • 江门网站seo关键词排名优化抖音关键词排名推广
  • 昭通市有做网站的吗crm排名
  • 提供做网站公司微信网站背景图片
  • 微信群领券网站怎么做贵阳网站建设哪家好
  • 昆山做网站的公司有哪些wap娃派手机信息网
  • 专业的营销型网站建设公司视频解析网站怎么做
  • 滨州网站建设 中企动力礼品网站如何做
  • 做车展的网站腾讯企业邮箱收费标准一年多少钱
  • 网站速成班有哪些专业上海公共招聘网新版
  • 如何创建网站和域名科技公司网站模板
  • 陕西免费做网站e建网站
  • wordpress部署phpseo博客模板
  • 北京网站主题制作网站开发需要看相关书籍
  • 网站建设 500强建站关键词怎么写
  • 专业工厂网站建设服务专业的公司网站设计
  • 做网站需要后台吗让人做网站需要注意哪些问题
  • 徐州开发区中学网站网站建设公司的网站
  • 什么网站做视频给钱北京cms建站模板
  • 网站建设对于电子商务的意义黄金网站大全免费2023
  • 深圳哪里做网站全国妇联官方网站儿童之家建设