简体   繁体   English

Vue Micro UI / Web组件开发工作流程

[英]Vue Micro UI/Web Components Development Workflow

Seeking some ideas on how to better improve my teams local development workflow... 寻求一些有关如何更好地改善我的团队本地开发工作流程的想法...

We have a Vue CLI shell application project that runs locally via node. 我们有一个通过节点在本地运行的Vue CLI Shell应用程序项目。 Then we have a number of small Vue CLI web-component applications that served up via node. 然后,我们有一些通过节点提供服务的小型Vue CLI Web组件应用程序。

When the shell is ran it reaches out to each web-component application retrieving a manifest.json file which tells the shell where/when to display the respective web-components. 运行外壳程序后,它会到达每个Web组件应用程序,并检索manifest.json文件,该文件告诉外壳程序在何处/何时显示各个Web组件。

Our web-component applications are built using something like... 我们的网络组件应用程序是使用类似...

vue-cli-service build --target wc --name foo 'src/components/*.vue'

Having to continuously build the web-component projects after making a code change... debug... and then rebuild again seems cumbersome. 更改代码后,必须继续构建Web组件项目...调试...,然后重新构建似乎很麻烦。 This is a new application so at the moment the codebase is in constant flux. 这是一个新应用程序,因此目前代码库的流量是恒定的。

Was hoping someone may have suggestions on how or tools we might use to increase our productivity. 希望有人对我们可以用来提高生产率的方式或工具提出建议。

Don't overcomplicate things. 不要使事情过于复杂。

Here's Nuxt.js 这是Nuxt.js

As far as I can tell it does everything you want to do straight out of the box. 据我所知,它可以立即完成您想做的所有事情。 Just set up a basic hello world project with Nuxt and see if it does everything you need it to do for you. 只需使用Nuxt建立一个基本的hello world项目,看看它是否可以为您完成您需要做的一切。 It uses Vue.js and Webpack to build the exact same type of application you'd be developing otherwise with Vue, it just has a nicer layout and easier workflow in general. 它使用Vue.js和Webpack构建与使用Vue开发的应用程序完全相同的应用程序类型,它总体上具有更好的布局和更轻松的工作流程。 It supports hot reloading on file changes, you'd just run nuxt in the root folder of your project and a local server is started that hot reloads your project whenever you save changes to a file. 它支持对文件更改进行热重装,您只需在项目的根文件夹中运行nuxt ,然后启动本地服务器,每当您将更改保存到文件中时,该服务器就会热重装项目。 You then distribute it either as a static application with nuxt generate or build it as a server side rendered application using nuxt build and nuxt start . 然后,您可以使用nuxt generate将其分发为静态应用程序,或者使用nuxt buildnuxt startnuxt build为服务器端渲染的应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM