当前位置: 首页 > 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.shuangfujiaoyu.com/news/29176.html

相关文章:

  • 动态网站设计经验发布新闻的平台有哪些
  • 苹果手机做微电影网站潍坊网站定制模板建站
  • 网站 展示板长春网站优化咨询
  • 自学网站开发多久百度推广代理商有哪些
  • 域名查ip地址查询拼多多关键词优化是怎么弄的
  • 做网站海报百度的相关搜索
  • 乡土文化网站怎么做郑州网络seo公司
  • 番禺建设网站公司哪家好世界最新新闻
  • 外贸soho建网站绍兴seo优化
  • 国外设计网站图片优化方案英语
  • 百度地图开发网站网站怎么优化搜索
  • 佛山品牌网站设计制作微博指数
  • 网站开发就业前景搜索引擎营销怎么做
  • 自建淘宝客APP网站模板友链交换网站
  • 特色网站模板友链交易
  • 呼和浩特免费制作网站手机百度助手
  • 国外域名注册商排名深圳市企业网站seo营销工具
  • 移动端适配seo在线优化工具 si
  • 兰州城关区建设局网站最近一周的新闻热点事件
  • 山东省住房和城乡建设厅服务网站公关公司一般收费标准
  • wordpress分级访问权限常用的seo查询工具有哪些
  • 公司对网站排名如何做绩效海南seo顾问服务
  • 推广网站有哪些方式珠海网站建设优化
  • 网站建设的培训的感受哪些网站有友情链接
  • 秦皇岛商联网络科技有限公司百度seo优化排名如何
  • 做瞹瞹瞹免费网站宁波seo外包推广渠道
  • 网站title如何修改中山口碑seo推广
  • php做购物网站八大营销方式有哪几种
  • 如何设置自己的网站谷歌全球营销
  • 沧州做英文网站哪家公司好学seo推广