Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
9ecd844
build: added yarn settings
bhorai-atl Sep 24, 2025
fc35103
build: added yarn.lock instead of package.lock
bhorai-atl Sep 24, 2025
8c7e5a7
build: updated scripts section
bhorai-atl Sep 24, 2025
8d7dd26
build: updated ci workflows
bhorai-atl Sep 24, 2025
a5d7ad3
test: updated e2e Dockerfile
bhorai-atl Sep 24, 2025
84a2da5
refactor: removed audit-cli config
bhorai-atl Sep 24, 2025
701174f
chore: updated gitignore
bhorai-atl Sep 24, 2025
da4aeea
build: enabled corepack before caching
bhorai-atl Sep 24, 2025
6bc2887
build: added immutable param
bhorai-atl Sep 24, 2025
3691552
build: removed --recursive flag
bhorai-atl Sep 24, 2025
93c3794
build: added recursive flag
bhorai-atl Sep 24, 2025
6eaecba
chore: removed overrides
bhorai-atl Sep 24, 2025
26f7da2
build: updated audit
bhorai-atl Sep 24, 2025
964f5c8
build: added devDependencies
bhorai-atl Oct 2, 2025
6cee15c
build: updated bundle size
bhorai-atl Oct 2, 2025
6f51491
docs: changed npm to yarn
bhorai-atl Oct 2, 2025
c4d0a47
build: updated pre-commit hook
bhorai-atl Oct 2, 2025
ac12cd6
build: updated scripts section
bhorai-atl Oct 2, 2025
cc8a19c
build: added --no-dependencies flag
bhorai-atl Oct 2, 2025
77a11f0
build: move to dependencies
bhorai-atl Oct 2, 2025
23adbd0
build: updated vscodeignore
bhorai-atl Oct 2, 2025
501cb09
build: updated maxAssetSize
bhorai-atl Oct 2, 2025
16cd7a8
build: updated set version in package.json
bhorai-atl Oct 3, 2025
d0099fe
build: updated yarnrc config
bhorai-atl Oct 3, 2025
c3b38d9
build: added @atlaskit/link-provider
bhorai-atl Oct 3, 2025
70f8a7c
chore: updated gitignore
bhorai-atl Oct 3, 2025
ff724cf
docs: added comment for pdfjs-dist
bhorai-atl Oct 6, 2025
7738345
build: updated asset max size
bhorai-atl Oct 6, 2025
3af3278
build: upgrade editor dependencies
bhorai-atl Oct 8, 2025
a916c0b
build: updated yarn.lock
bhorai-atl Oct 16, 2025
13310e2
chore: updated yarn.lock
bhorai-atl Oct 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .audit-ci.json

This file was deleted.

4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ In particular, if you're making changes not covered by tests - please describe t

Basic checks:

- [ ] `npm run lint`
- [ ] `npm run test`
- [ ] `yarn lint`
- [ ] `yarn test`

Advanced checks:
- [ ] If Atlassian employee & Bitbucket changes: did you test with DC in mind? [See Instructions](https://www.loom.com/share/71e5d17734a547f68fd6128be6cd760e?sid=835e58a7-1240-498d-b2d7-fa7fdf8ffa36)
Expand Down
41 changes: 28 additions & 13 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,25 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- name: Enable Corepack
run: corepack enable

- name: Cache Yarn dependencies
uses: actions/cache@v4
with:
path: .yarn/cache
key: yarn-cache-${{ hashFiles('yarn.lock') }}
restore-keys: yarn-cache-

- name: Install dependencies
run: |
npm ci --no-audit
run: yarn install --immutable

- name: Run vulnerability audit
# "There is no Vulnerability in Media Viewer after 48.5.4. since it was fixed by patching, but npm audit still reports it.",
# So that switched to audit-ci with allowlist
run: npx audit-ci --config=".audit-ci.json"
run: yarn npm audit --recursive --no-deprecations

- name: Run linter
run: npm run lint
run: yarn lint

ci-matrix:
needs: [lint]
Expand Down Expand Up @@ -63,22 +69,31 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- name: Enable Corepack
run: corepack enable

- name: Cache Yarn dependencies
uses: actions/cache@v4
with:
path: .yarn/cache
key: yarn-cache-${{ hashFiles('yarn.lock') }}
restore-keys: yarn-cache-

- name: Install dependencies
run: npm ci --no-audit
run: yarn install --immutable

- name: Run unit tests
if: matrix.kind == 'unit'
run: npm run test
run: yarn test

- name: Build and package the extension
if: matrix.kind == 'e2e'
run: npm run extension:package
run: yarn extension:package

- name: Generate SSL certs for E2E test
if: matrix.kind == 'e2e'
run: npm run test:e2e:sslcerts
run: yarn test:e2e:sslcerts

- name: Fetch E2E image
if: matrix.kind == 'e2e'
Expand All @@ -88,7 +103,7 @@ jobs:

- name: Run E2E (${{ matrix.target }})
if: matrix.kind == 'e2e'
run: npm run test:e2e:docker
run: yarn test:e2e:docker
env:
TARGET: ${{ matrix.target }}

Expand Down
23 changes: 16 additions & 7 deletions .github/workflows/release-nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,34 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- name: Enable Corepack
run: corepack enable

- name: Cache Yarn dependencies
uses: actions/cache@v4
with:
path: .yarn/cache
key: yarn-cache-${{ hashFiles('yarn.lock') }}
restore-keys: yarn-cache-

- name: Set version in package.json
run: npm version $PACKAGE_VERSION --no-git-tag-version --allow-same-version -f
run: yarn version $PACKAGE_VERSION --immediate

- name: Install dependencies
run: npm ci --no-audit
run: yarn install --immutable

- name: Build and package the extension for pre-release
run: npm run extension:package:prerelease
run: yarn extension:package:prerelease

- name: Run linter
run: npm run lint
run: yarn lint

- name: Run unit tests
run: npm run test:nocoverage
run: yarn test:nocoverage

- name: Generate SSL certs for E2E test
run: npm run test:e2e:sslcerts
run: yarn test:e2e:sslcerts

- name: Fetch E2E image
run: |
Expand Down
23 changes: 16 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,25 +43,34 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- name: Enable Corepack
run: corepack enable

- name: Cache Yarn dependencies
uses: actions/cache@v4
with:
path: .yarn/cache
key: yarn-cache-${{ hashFiles('yarn.lock') }}
restore-keys: yarn-cache-

- name: Set version in package.json
run: npm version $PACKAGE_VERSION --no-git-tag-version --allow-same-version -f
run: yarn version $PACKAGE_VERSION --immediate

- name: Install dependencies
run: npm ci --no-audit
run: yarn install --immutable

- name: Build and package the extension
run: npm run extension:package
run: yarn extension:package

- name: Run linter
run: npm run lint
run: yarn lint

- name: Run unit tests
run: npm run test:nocoverage
run: yarn test:nocoverage

- name: Generate SSL certs for E2E test
run: npm run test:e2e:sslcerts
run: yarn test:e2e:sslcerts

- name: Fetch E2E image
run: |
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ node_modules
launch.json
*.vsix
.yo-*

.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
yarn-error.log

*.pem
*.crt
*.p12
Expand Down
2 changes: 1 addition & 1 deletion .vscode/launch.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"envFile": "${workspaceFolder}/.env"
},
{
// This configuration requires npm run dev to be running externally
// This configuration requires yarn dev to be running externally
// It will pick up the re-compiled extension code but not hot-swap it
"name": "Extension (watch/external)",
"type": "extensionHost",
Expand Down
102 changes: 63 additions & 39 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -1,57 +1,81 @@
# Allowed:
# ---- ALLOWED ----
# build/
# resources/
# images/
# LICENSE

__mocks__/
__tests__/
.generated/
e2e/
.npm/
# ---- IGNORED ----

# Don't package anything from here specifically:
resources/rovo-dev/
# Source code
src/**

# Test
testsutil/**
__mocks__/**
__tests__/**
e2e/**
coverage/**
test-results/**
.vscode-test/**
*.test.ts
*.test.tsx
*.spec.ts
*.spec.tsx

# Build configs
webpack.*
tsconfig.json
tsconfig.notest.json
eslint.config.mjs
jest.config.ts
jest.react.config.ts
jest.unit.config.ts
playwright.config.js
.prettierignore
.nvmrc

# Dev files
.env
.env.example
.nvmrc
.prettierignore
.devcontainer/**
.github/**
.vscode/**
.readme/**
devhtml/**
scripts/**
.gitignore
bitbucket-pipelines.yml
CODEOWNERS
changelog.md
nightlyver.sh
package.json
readme.md
eslint.config.mjs
tsconfig.json
tsconfig.notest.json
vscode-stylenames.txt
.devcontainer/
.github/
coverage/
scripts/
test-results/

.vscode/
.vscode-test/
out/test/
.eslintcache

# node_modules
node_modules/**
!node_modules/@vscode/codicons/dist/**

# Yarn cache and internals
.yarn/**
!.yarn/releases
!.yarn/plugins
.yarnrc.yml
yarn.lock

# Source maps
**/*.map
out/**/*.map
src/
testsutil/
.gitignore
bitbucket-pipelines.yml
build/**/*.map

# Certificates
*.pem
*.crt
*.p12
*.vsix
*.orig
node_modules/
!node_modules/@vscode/codicons/dist/**
webpack.*
build/**/*.map
.readme/
devhtml/
jest.config.ts
jest.react.config.ts
jest.unit.config.ts
playwright.config.js

# Generated files
.generated/**
.npm/**

# Don't package anything from here specifically:
resources/rovo-dev/**
12 changes: 12 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
compressionLevel: mixed

enableGlobalCache: false

npmAuditExcludePackages:
# This package isnt used directly in the code but remains as a dependency of @atlaskit/media-viewer package for internal support reasons
# TODO: Remove this once @atlaskit/media-viewer is updated to a version that doesn't depend on this package
# See https://asecurityteam.atlassian.net/browse/PBAC-2014

- pdfjs-dist

nodeLinker: node-modules
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ https://support.atlassian.com/bitbucket-cloud/docs/use-the-atlassian-for-vs-code

Running and debugging the extension:

- Atlassian for VS Code is a node project, as such you'll need to run `npm install` before building.
- Atlassian for VS Code is a node project, as such you'll need to run `yarn install` before building.
- To debug the extension from within VS Code you'll need a `launch.json`.
** An example `launch.json` that will be suitable for most users is included as `.vscode/launch.json.example`.
** To use the example file simply copy it to `launch.json`.
Expand Down Expand Up @@ -119,7 +119,7 @@ VSCode provides some very helpful [documentation](https://code.visualstudio.com/
To run `atlascode` in such a way, please follow the VSCode documentation:

- Install [Dev Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) VSCode Extension
- Run `npm install` like you normally would
- Run `yarn install` like you normally would
- In VSCode, choose `Dev Containers: Rebuild and Reopen in Container` from the command pallette
- Wait for the VSCode to re-open in the container evnironment - you'll be able to see the difference in the header/search bar
- Proceed to run or debug the extension as usual - it will now be running as it would in remote execution
Expand All @@ -133,7 +133,7 @@ Note: for advanced use-cases, it is possible to run scripts in dev containers vi
## Tests

```
npm run test
yarn test
```

## Contributions
Expand Down
2 changes: 1 addition & 1 deletion e2e/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM node:23-slim
# Install dependencies and xvfb
RUN apt-get update \
&& apt-get install -y wget gpg xauth curl git \
&& npm install --global playwright@1.56.1 \
&& yarn global add playwright@1.56.1 \
&& npx playwright install --with-deps chromium

# install code-server
Expand Down
Loading
Loading