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

会展网站建设成功的原因网页与网站设计什么是主题

会展网站建设成功的原因,网页与网站设计什么是主题,asp网站开发实例书籍,什么是网站镜像脚手架的开发流程 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/114364/

相关文章:

  • 缙云做网站seo快排技术教程
  • 有关做洁净工程的企业网站建设自己的网站怎么做
  • 之江汇学校网站建设湖南建设网塔吊证查询
  • 郑州网站seo诊断杭州网站设计网站
  • 班级网站设计房屋平面设计软件手机版
  • 德州网站建设自己做的网站显示不出来
  • 外协加工网最新订单兰州网络优化seo
  • 德网站建设网站建设属不属于无形资产
  • 网站的功能包括哪些内容那个网站可以做恒指 买涨买跌
  • 芜湖市建设工程质量监督站网站给网站做路由
  • 索牛网站建设制作彩页用什么软件
  • 2019年做网站网易企业邮箱1
  • 深圳服饰网站建设wordpress做注册登陆界面
  • 苏州做网站知识的分享域名注册查询入口
  • 网站地图 百度建工作室网站
  • 世安建设有限网站深圳市布尔工业设计有限公司
  • 安徽省城乡和建设厅网站微信企业app下载安装
  • 深圳网站建设vr知识苏州公司网站
  • 网站改版建设公司菜鸟教程wordpress模板
  • 网站空间分类wordpress 会员开卡消费
  • p2p贷款网站开发个人主机做网站
  • 做网站论文wordpress 4.7.9
  • 网站开发业务流程图怎样做简单公司网站
  • 网站网址黄页大全免费做电商一般注册什么公司
  • 微网站 建设方案宁波大型网站推广服务
  • 热门的网站模板昆山网站设计哪家好
  • asp个人网站源码下载百度云网盘资源搜索引擎
  • logo设计网站官网理财网站如何做推广方案
  • 外国网站代理一笔签名设计在线
  • 特殊信息收费的网站有哪些最好建站网站