cryptid-org / cryptid-js Goto Github PK
View Code? Open in Web Editor NEWBrowser-friendly Identity-based Encryption library powered by WebAssembly.
License: Apache License 2.0
Browser-friendly Identity-based Encryption library powered by WebAssembly.
License: Apache License 2.0
cryptid-js is currently managed by the default Node package manager, npm. However, there is a much better solution for this task, pnpm (https://github.com/pnpm/pnpm).
The public API lacks proper typing making it hard to consume by clients.
Introduce typings or TypeScript in the public API.
Once you start linting your code, there's no way back: you want to lint everything! For example, commit messages. Enforcing format and structure in commit messages allows for automatic semver bumps, changelog generation, repository analytics and also looks good. See https://www.conventionalcommits.org/en/v1.0.0/
Because cryptid-js lacks this facility, we should definitely add commitlinting.
Currently, cryptid-js has absolutely no linting or formatting rules: you can freely write code any way you want, commit it and push it. No restrictions, no checks. You can use tabs in one file and spaces in another (the horror! ๐ข).
To improve upon this situation, we should set up a linting and formatting toolchain using eslint (https://eslint.org/) and prettier (https://prettier.io/).
lint
and lint:fix
scripts in the package.json.
lint:fix
should run the linter with the --fix
flag.Please use the following settings for prettier:
{
"singleQuote": true,
"printWidth": 120,
"semi": false
}
As a bigger goal, we want a nice Continuous Delivery pipeline for cryptid-js. However, even the greatest journey starts with a single step, so for a starter, let's implement a Continuous Integration workflow.
Create a new GitHub Actions workflow that
master
master
lint
script and fails if the codebase is not properly linted/formatted.Depends on #7
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.