A DNA and protein sequence viewer developed and maintained by Anocca.
See documentation
git config --local user.email '<Your GitHub username>@users.noreply.github.com'
pnpm
curl -fsSL https://get.pnpm.io/install.sh | sh -
rush
npm install -g @microsoft/rush
heft
npm install -g @rushstack/heft
api-extractor
npm install -g @microsoft/api-documenter
-
Go to the
website
folder. -
Install dependencies:
yarn install
-
Start the server:
yarn start
-
Make updates in the packages
-
Build your changes
rush build -T @anocca/sequence-viewer-website
-
See result in browser
Go to the website
folder.
Install dependencies: yarn install
Start the server: yarn start
Deploy the docs: GIT_USER=<Your GitHub username> USE_SSH=true yarn deploy
If you've updated the docstrings in the code run:
npm install -g @microsoft/api-documenter
cd website && ./write-docs.sh
This requires api-extractor (npm install -g @microsoft/api-documenter
)
rush change
rush version --bump
NPM_AUTH_TOKEN=npm_... rush publish -p --include-all
The vscode-monorepo-workspace extension can make some of the tooling like prettier and eslint work better in vscode.
When you have made changes, please describe which issue it solves and how it has been tested
⚠ will not work if there are spaces in the file names
git ls-tree --full-tree -r --name-only HEAD | xargs dos2unix
We are using the following settings, which is automatically enforced by the .gitattributes
file:
git config --local core.eol lf # all checked out files should have LF
git config --local core.autocrlf input # convert all added CRLF to LF when staging
cat rush.json | \
grep -A 2 '"packageName": "@anocca' | \
grep -B 2 '"shouldPublish": true' | \
grep 'projectFolder' | \
awk '{ print substr($2, 2, length($2)-3) "/package.json" }' | \
xargs cat | \
grep -B 1 '"version"' | \
sed 'N;N;s/\n/ /g;s/--//' | \
awk '{ print substr($2, 1, length($2)-1) ": " $4 }'