filmov
tv
Sharing JavaScript utility functions across projects

Показать описание
Sharing reusable JavaScript code components between apps and projects is a great way to speed up your development. In this tutorial, you will learn the best way to create and share reusable JavaScript code components, in this case a few utility functions, that you can instantly use and easily manage across all your products and apps.
Thanks to Bit you won’t have to change your codebase architecture, drown in configurations, or work hard to define and manage dependencies just to publish a package. Instead, you can create components that are already independently versioned and reusable, enabling you to install and manage them in any new project that needs them and easily share them across repos and with your teammates.
This video is based on the following tutorial, check it out:
Components used in this demo:
Chapters:
0:00 Introduction
0:15 Initializing a Bit Workspace and creating a utility function component
2:20 Starting the Workspace UI and creating compositions
4:20 Creating tests for the utility function
5:40 Tagging and exporting the component to a remote scope
9:31 Installing the component as a dependency in a new workspace
11:46 Importing and modifying the component
13:19 Auto tagging dependents in a Bit Workspace
Thanks to Bit you won’t have to change your codebase architecture, drown in configurations, or work hard to define and manage dependencies just to publish a package. Instead, you can create components that are already independently versioned and reusable, enabling you to install and manage them in any new project that needs them and easily share them across repos and with your teammates.
This video is based on the following tutorial, check it out:
Components used in this demo:
Chapters:
0:00 Introduction
0:15 Initializing a Bit Workspace and creating a utility function component
2:20 Starting the Workspace UI and creating compositions
4:20 Creating tests for the utility function
5:40 Tagging and exporting the component to a remote scope
9:31 Installing the component as a dependency in a new workspace
11:46 Importing and modifying the component
13:19 Auto tagging dependents in a Bit Workspace