Common code referenced across Bitwarden JavaScript projects.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Hinton 732f28d905 Fix failing tests 4 years ago
.github Apply prettier 4 years ago
.husky Add Prettier configuration (#574) 4 years ago
.vscode Apply prettier 4 years ago
angular Merge branch 'master' of github.com:bitwarden/jslib into feature/workspaces 4 years ago
common Merge branch 'master' of github.com:bitwarden/jslib into feature/workspaces 4 years ago
electron Fix failing tests 4 years ago
node Fix failing tests 4 years ago
.editorconfig Add Prettier configuration (#574) 4 years ago
.git-blame-ignore-revs Add .git-blame-ignore-revs and prettier instructions (#585) 4 years ago
.gitattributes Apply Prettier (#581) 4 years ago
.gitignore setup karma testing 8 years ago
.prettierignore Add Prettier configuration (#574) 4 years ago
.prettierrc.json Add Prettier configuration (#574) 4 years ago
CONTRIBUTING.md Apply prettier 4 years ago
LICENSE.txt license and contrib 8 years ago
README.md Apply prettier 4 years ago
SECURITY.md Apply prettier 4 years ago
package-lock.json Fix failing tests 4 years ago
package.json Apply prettier 4 years ago
tsconfig.json Apply prettier 4 years ago
tslint.json Apply prettier 4 years ago

README.md

Github Workflow build on master

Bitwarden JavaScript Library

Common code referenced across Bitwarden JavaScript projects.

Requirements

  • Node.js v16.13.1 or greater
  • NPM v8
  • Git
  • node-gyp

Windows

  • Microsoft Build Tools 2015 in Visual Studio Installer
  • Windows 10 SDK 17134 either by downloading it seperately or through the Visual Studio Installer.

Prettier

We recently migrated to using Prettier as code formatter. All previous branches will need to updated to avoid large merge conflicts using the following steps:

  1. Check out your local Branch
  2. Run git merge 8b2dfc6cdcb8ff5b604364c2ea6d343473aee7cd
  3. Resolve any merge conflicts, commit.
  4. Run npm run prettier
  5. Commit
  6. Run git merge -Xours 193434461dbd9c48fe5dcbad95693470aec422ac
  7. Push

Git blame

We also recommend that you configure git to ignore the prettier revision using:

git config blame.ignoreRevsFile .git-blame-ignore-revs