How do you share the same resource (such as header,footer, components, time controls, etc.) in different front-end projects?

problem description

now our company has several projects that use some common things at the same time. Some are third-party, such as time controls, but the versions used in different projects are different, and it is troublesome to check the previous code every time you use it in different projects. Some of them are made by themselves, and the versions in various projects are inconsistent over a long period of time, which makes it very troublesome to manage. Now the way I know is npm.


set up a gitlab casually
my project is similar to yours. I pulled out a front-end basic library

clipboard.png

clipboard.png

A submodule of

git?
(I don't know if that's what you're asking. )


  • Interface design is as closed and flexible as possible
  • write a document, write a document, write a document

create a scaffolding project for each type of project.

generic components and generic methods generic styles are put in it.

use scaffolding projects to extend the business code.

need to add components, styles, Synchronize scaffolding items.

this not only ensures the standardization of the code, but also avoids writing Synchronize code.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1beb528-31a60.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1beb528-31a60.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?