在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):vendure-ecommerce/vendure开源软件地址(OpenSource Url):https://github.com/vendure-ecommerce/vendure开源编程语言(OpenSource Language):TypeScript 92.5%开源软件介绍(OpenSource Introduction):VendureA headless GraphQL ecommerce framework built on Node.js with Nest & TypeScript, with a focus on developer productivity and ease of customization. www.vendure.io
StructureThis project is a monorepo managed with Lerna. Several npm packages are published from this repo, which can be found in the
DevelopmentThe following instructions are for those who want to develop the Vendure core framework or plugins (e.g. if you intend to make a pull request). For instructions on how to build a project using Vendure, please see the Getting Started guide. 1. Install top-level dependencies
The root directory has a
2. Bootstrap the packages
This runs the Lerna "bootstrap" command, which cross-links monorepo dependencies. 3. Build all packages
Packages must be built (i.e. TypeScript compiled, admin ui app built, certain assets copied etc.) before being used. Note that this can take a few minutes. 4. Set up the serverThe server requires an SQL database to be available. The simplest option is to use SQLite, but if you have Docker available you can use the dev-server docker-compose file which will start up both MariaDB and Postgres as well as their GUI management tools. Vendure uses TypeORM, and officially supports MySQL, PostgreSQL and SQLite, though other TypeORM-supported databases may work.
5. Run the dev server
Or if you are in the root package
If you do not specify the 6. Launch the admin ui
Code generationgraphql-code-generator is used to automatically create TypeScript interfaces for all GraphQL server operations and admin ui queries. These generated interfaces are used in both the admin ui and the server. Running
TestingServer Unit TestsThe core and several other packages have unit tests which are can be run all together by running Unit tests are co-located with the files which they test, and have the suffix End-to-end TestsCertain packages have e2e tests, which are located at e2e tests use the When debugging e2e tests, set an environment variable Release ProcessAll packages in this repo are released at every version change (using Lerna's fixed mode). This simplifies both the development (tracking multiple disparate versions is tough) and also the developer experience for users of the framework (it is simple to see that all packages are up-to-date and compatible). To make a release:
1. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论