
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@internetarchive/democracys-library
Advanced tools
A web component that highlights Democracy's Library
Demo App: https://internetarchive.github.io/iaux-democracys-library/main/demo/
yarn install && yarn start
web-dev-server
yarn start
To run a local development server that serves the basic demo located in demo/index.html
To run the suite of Web Test Runner tests, run
yarn run test
To run the tests in watch mode (for <abbr title="test driven development">TDD</abbr>, for example), run
yarn run test:watch
To scan the project for linting errors, run
yarn run lint
You can lint with ESLint and Prettier individually as well
yarn run lint:eslint
yarn run lint:prettier
To automatically fix many linting errors, run
yarn run format
You can format using ESLint and Prettier individually as well
yarn run format:eslint
yarn run format:prettier
For most of the tools, the configuration is in the package.json
to reduce the amount of files in your project.
If you customize the configuration a lot, you can consider moving them to individual files.
https://github.com/organizations/internetarchive/settings/installations/1268216
https://app.codecov.io/gh/internetarchive/<repo-name>/settings/badge
gh-pages
static site generatorLet's start with creating a gh-pages
branch.
This branch is where Github will look for the index.html
to be hosted
git checkout --orphan gh-pages &&
git reset --hard &&
git commit --allow-empty -m "Initializing gh-pages branch" &&
git push origin gh-pages
Settings
-> sidebar Pages
Source
drop-down, choose the branch where you want to host your Github Pages and the directory
where it was hosted
gh-pages
branch for this but you can use other branch name for thisindex.html
that you want to host lives in
gh-pages
You can update the current Github Page without pushing a commit by running:
yarn run ghpages:publish
This build script does the following, see package.json
:
ghpages:publish
ghpages:prepare
in the current branch you are currently working on
gh-pages
branch
ghpages:prepare
ghpages:build
that builds the project dependencies and generates vite
build from itvite.config.ts
related to thisghpages:generate
gh-pages
npm package command to publish/upload the generated files from our vite
build filesgh-pages
branch that we setup earlierThe live demo app URL from current branch will look something like this:
https://<organization_name_or_username>.github.io/<repo_name>/<branch_name>/demo
Things that trigger automatic site generation:
a merge to main
gh-pages-main.yml
https://<organization_name_or_username>.github.io/<repo_name>/main
a pull request against main
pr-preview.yml
https://<organization_name_or_username>.github.io/<repo_name>/pr/<pr-number>/demo
demo
is another directory where the index.html
lives inAnother thing to note: pushing a branch up alone will not trigger site creation.
Happy devving ^_^ 🥳 🎉
FAQs
A web component that highlights Democracy's Library
We found that @internetarchive/democracys-library demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 18 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.