Rate this page:
For this introduction, you will be creating a set of extensions for the pull request page in Bitbucket Server 7.0, and explore all the capabilities that Client-side Extensions brings to you as a front-end developer creating Atlassian Plugins.
The Bitbucket Server team provides a template to create a Bitbucket Plugin with all the tools already configured for you, including Client-side Extensions (CSE).
You can grab a copy by cloning Bitbucket CSE template:
git clone firstname.lastname@example.org:atlassianlabs/bitbucket-client-side-extensions-template.git
You will need to install:
To install all the dependencies for the first time, run:
To start Bitbucket from your project, run:
Once the Bitbucket starts, you should see this message in the terminal:
bitbucket started successfully in XYZs at http://localhost:7990/bitbucket
Now, you can open the browser and navigate to http://localhost:7990/bitbucket
The local instance of Bitbucket requires you to log in using those credentials:
The template comes with watchmode and hot reload configured for your front-end code. You can run the CSE watch server by executing:
You will need to open a pull request in your local copy of Bitbucket.
The Bitbucket CSE template provides a testing project called , and inside, a testing repository called .
Let's create a PR in that repository:
Now, create a folder to use as your working directory and store the code for your extensions.
Open the Bitbucket CSE template you cloned, and:
That's it! You're now ready to create your first extension!
Rate this page: