Skip to content

Commit

Permalink
feat: 🔥 v0.0.3
Browse files Browse the repository at this point in the history
Updating to v0.0.3
  • Loading branch information
sebastienrousseau committed Oct 11, 2023
1 parent 9b87c67 commit b676b6e
Show file tree
Hide file tree
Showing 73 changed files with 4,241 additions and 671 deletions.
8 changes: 2 additions & 6 deletions . jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@
"camelcase": true,
"curly": true,
"eqeqeq": true,
"esnext": true,
"esversion": 8,
"forin": true,
"freeze": true,
"immed": true,
"indent": 2,
"iterator":true,
"lastsemic": true,
"latedef": true,
"maxcomplexity": 5,
Expand All @@ -26,12 +24,10 @@
"nonbsp": true,
"nonew": true,
"onecase": true,
"quotmark": true,
"quotmark": "single",
"regexp": true,
"smarttabs": true,
"strict": true,
"trailing": true,
"undef": true,
"unused": true,
"white": true
"unused": true
}
10 changes: 5 additions & 5 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": [
"@sebastienrousseau/eslint-config"
]
}
// {
// "extends": [
// "@sebastienrousseau/eslint-config"
// ]
// }
75 changes: 37 additions & 38 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,74 +17,68 @@
# Build tasks
#

# @HELP Link local packages together and install remaining package dependencies.
bootstrap:
@echo
@echo "Link local packages together and install remaining package dependencies."
@npx yarn bootstrap

# @HELP Run an npm `build` script in each package that contains that script.
# @HELP Concurrently Building All Packages
build:
@echo
@echo "Run an npm `build` script in each package that contains that script."
@npx yarn build
@echo "Concurrently Building All Packages"
@npx lerna run build --stream

#
# Clean up tasks
#

# @HELP Remove the `node_modules` directory from all packages.
# @HELP Concurrently Cleaning All Packages
clean:
@echo
@echo "Remove the `node_modules` directory from all packages."
@npx yarn clean
@echo "Concurrently Cleaning All Packages"
@npx lerna run clean --stream

#
# Documentation tasks
#

# @HELP Generate documentation for all packages.
# @HELP Concurrently Generating Documentation for All Packages
docs:
@echo
@echo "Generate documentation for all packages."
@npx yarn doc
@echo "Concurrently Generating Documentation for All Packages"
@npx lerna run docs --stream

#
# Maintenance tasks
#

# @HELP Run `npm run lint` in each package.
# @HELP Concurrently Linting All Packages
lint:
@echo
@echo "Run `npm run lint` in each package."
@npx yarn lint
@echo "Concurrently Linting All Packages"
@npx lerna run lint --stream

# @HELP Run `npm run fix` in each package.
fix:
# @HELP Fix Lint Issues Across All Packages Without Exiting on Error
lint-fix:
@echo
@echo "Run `npm run fix` in each package."
@npx yarn fix
@echo "Fix Lint Issues Across All Packages Without Exiting on Error"
@npx lerna run lint:fix --no-bail

# @HELP Run `npm run markdown` in each package.
# @HELP Running Remark and Markdown Scripts Across All Packages
markdown:
@echo
@echo "Run `npm run markdown` in each package."
@npx yarn markdown
@echo "Running Remark and Markdown Scripts Across All Packages"
@npx lerna exec -- yarn run remark ./*.md --rc-path ./.remarkrc --quiet && lerna exec yarn markdown --parallel

# @HELP Run `npm run prettier` in each package.
prettier:
# @HELP Concurrently Formatting All Packages
format:
@echo
@echo "Run `npm run prettier` in each package."
@npx yarn prettier
@echo "Concurrently Formatting All Packages"
@npx lerna run format --stream

#
# Publishing tasks
#

# @HELP Publish packages in the current project.
# @HELP Perform a Yarn Release
release:
@echo
@echo "Publish packages in the current project."
@echo "Perform a Yarn Release"
@npx yarn release

#
Expand Down Expand Up @@ -127,7 +121,7 @@ test:
node_modules: package.json
@echo
@echo "Install all packages in the current project."
@npm install
@pnpm install

#
# Run Crypto Service Suite tasks
Expand All @@ -137,31 +131,31 @@ node_modules: package.json
rsa-2048:
@echo
@echo "Generate RSA-2048 key."
@npx ts-node packages/crypto-lib/src/bin/crypto-lib.ts --name "Jane Doe" --email "[email protected]" --passphrase "123456789abcdef" --type "rsa" --curve "" --bits 2048 --expiration 0 --format armored --sign true
@npx ts-node packages/crypto-lib/src/bin/crypto-lib.ts --name "Jane Doe" --email "[email protected]" --passphrase "123456789abcdef" --type "rsa" --curve "" --bits 2048 --expiration 0 --format armored --sign true || echo "An error occurred while generating the RSA-2048 key."

# @HELP Generate RSA-4096 key.
rsa-4096:
@echo
@echo "Generate RSA-4096 key."
npx ts-node packages/crypto-lib/src/bin/crypto-lib.ts --name "Jane Doe" --email "[email protected]" --passphrase "123456789abcdef" --type "rsa" --curve "" --bits 4096 --expiration 0 --format armored --sign true
@npx ts-node packages/crypto-lib/src/bin/crypto-lib.ts --name "Jane Doe" --email "[email protected]" --passphrase "123456789abcdef" --type "rsa" --curve "" --bits 4096 --expiration 0 --format armored --sign true

# @HELP Generate Curve 25519 key pair.
curve-25519:
@echo
@echo "Generate Curve 25519 key pair."
npx ts-node packages/crypto-lib/src/bin/crypto-lib.ts --name "Jane Doe" --email "[email protected]" --passphrase "123456789abcdef" --type "ecc" --curve curve25519 --bits null --expiration 0 --format armored --sign true
@npx ts-node packages/crypto-lib/src/bin/crypto-lib.ts --name "Jane Doe" --email "[email protected]" --passphrase "123456789abcdef" --type "ecc" --curve curve25519 --bits null --expiration 0 --format armored --sign true

# @HELP Generate p256 key pair.
curve-p256:
@echo
@echo "Generate p256 key pair."
npx ts-node packages/crypto-lib/src/bin/crypto-lib.ts --name "Jane Doe" --email "[email protected]" --passphrase "123456789abcdef" --type "ecc" --curve p256 --bits null --expiration 0 --format armored --sign true
@npx ts-node packages/crypto-lib/src/bin/crypto-lib.ts --name "Jane Doe" --email "[email protected]" --passphrase "123456789abcdef" --type "ecc" --curve p256 --bits null --expiration 0 --format armored --sign true

# @HELP Generate p384 key pair.
curve-p384:
@echo
@echo "Generate p384 key pair."
npx ts-node packages/crypto-lib/src/bin/crypto-lib.ts --name "Jane Doe" --email "[email protected]" --passphrase "123456789abcdef" --type "ecc" --curve p384 --bits null --expiration 0 --format armored --sign true
@npx ts-node packages/crypto-lib/src/bin/crypto-lib.ts --name "Jane Doe" --email "[email protected]" --passphrase "123456789abcdef" --type "ecc" --curve p384 --bits null --expiration 0 --format armored --sign true

# @HELP Generate p521 key pair.
curve-p521:
Expand Down Expand Up @@ -195,6 +189,11 @@ curve-brainpoolP512r1:

# @HELP Display the help menu.
help:
@ echo
@ echo 'The Crypto Service Suite'
@ echo
@ echo 'https://crypto-service.co/'
@ echo
@ echo
@ echo ' Usage:'
@ echo ''
Expand All @@ -210,4 +209,4 @@ help:
@ echo ''


.PHONY: bootstrap, build, clean, docs, lint, fix, markdown, prettier, release, start, start-crypto-lib, start-crypto-server, test, node_modules, rsa-2048, rsa-4096, curve-25519, curve-p256, curve-p384, curve-p521, curve-secp256k1, curve-brainpoolP256r1, curve-brainpoolP384r1, curve-brainpoolP512r1, help
.PHONY: build, clean, docs, lint, lint-fix, markdown, prettier, release, start, start-crypto-lib, start-crypto-server, test, node_modules, rsa-2048, rsa-4096, curve-25519, curve-p256, curve-p384, curve-p521, curve-secp256k1, curve-brainpoolP256r1, curve-brainpoolP384r1, curve-brainpoolP512r1, help
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ The Crypto Service Suite Suite encompasses four products, [Crypto API][18],
Service Suite Applications.

[![Getting Started][getting started]](#getting-started)
[![Download Crypto Service Suite v0.0.2][download]][9]
[![Download Crypto Service Suite v0.0.3][download]][9]

Crypto Service Suite code is safe by design, and runs lightning-fast. It is
based on [OpenPGP.js][1] - a JavaScript implementation of the OpenPGP protocol.
Expand Down Expand Up @@ -186,7 +186,7 @@ Update your apps to use new features, and test your apps against API changes.
|Date|Download|Release Note|
| :-: | :-: | :-: |
|May 17, 2022|⬇️ [0.0.1][8]|📝 [Crypto Service Suite 0.0.1 Release Note][10]|
|May 30, 2022|⬇️ [0.0.2][9]|📝 [Crypto Service Suite 0.0.2 Release Note][11]|
|May 30, 2022|⬇️ [0.0.3][9]|📝 [Crypto Service Suite 0.0.3 Release Note][11]|

![divider][divider]

Expand Down Expand Up @@ -264,9 +264,9 @@ these people and a bunch of awesome
[6]: https://github.com/sebastienrousseau/crypto-service/tree/main/packages/crypto-lib
[7]: https://github.com/sebastienrousseau/crypto-service/tree/main/packages/crypto-server
[8]: https://github.com/sebastienrousseau/crypto-service/archive/refs/tags/sebastienrousseau-crypto-service-0.0.1.zip
[9]: https://github.com/sebastienrousseau/crypto-service/archive/refs/tags/sebastienrousseau-crypto-service-0.0.2.zip
[9]: https://github.com/sebastienrousseau/crypto-service/archive/refs/tags/sebastienrousseau-crypto-service-0.0.3.zip
[10]: https://github.com/sebastienrousseau/crypto-service/releases/tag/sebastienrousseau-crypto-service-0.0.1
[11]: https://github.com/sebastienrousseau/crypto-service/releases/tag/sebastienrousseau-crypto-service-0.0.2
[11]: https://github.com/sebastienrousseau/crypto-service/releases/tag/sebastienrousseau-crypto-service-0.0.3
[12]: https://nodejs.org/en/
[13]: https://www.npmjs.com/
[14]: https://yarnpkg.com/getting-started
Expand Down
1 change: 0 additions & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@
},
"packages": ["packages/*"],
"npmClient": "yarn",
"useWorkspaces": true,
"version": "independent"
}
25 changes: 13 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dependencies": {
"lerna": "^5.5.4"
"lerna": "^7.3.1"
},
"description": "The Crypto Service Suite is a powerful and intuitive suite of security tools that provides numerous Cryptographic JavaScript functions and standardized REST APIs to manage encryption keys, perform common cryptographic operations such as key generation, data encryption, digital signing, and signature verification.",
"engines": {
Expand All @@ -17,35 +17,36 @@
"registry": "https://npm.pkg.github.com"
},
"scripts": {
"bootstrap": "lerna bootstrap",
"build": "lerna run build --stream",
"clean": "lerna run clean --stream",
"docs": "lerna run docs --stream",
"lint:fix": "lerna run lint:fix --no-bail",
"lint": "lerna run lint --stream",
"markdown": "yarn run remark ./*.md --rc-path ./.remarkrc --quiet && lerna exec yarn markdown --parallel",
"markdown": "lerna exec -- yarn run remark ./*.md --rc-path ./.remarkrc --quiet && lerna exec yarn markdown --parallel",
"prepare": "husky install",
"format": "lerna run format --stream",
"release:cs": "mkdirp ./dist && mkdirp ./dist/crypto-cli && mkdirp ./dist/crypto-lib && mkdirp ./dist/crypto-server && cp -r ./packages/crypto-cli/dist/* && cp -r ./packages/crypto-lib/dist/* ./dist/crypto-lib/ && cp -r ./packages/crypto-server/dist/* ./dist/crypto-server/",
"release:prepare": "lerna run release:prepare --stream",
"release:publish": "lerna run release:publish --stream",
"release": "yarn install && yarn release:prepare && yarn release:publish && yarn clean",
"start:crypto-lib": "lerna run yarn start --scope=@sebastienrousseau/crypto-lib",
"start:crypto-server": "lerna run yarn start --scope=@sebastienrousseau/crypto-server",
"start:crypto-lib": "lerna run start --scope=@sebastienrousseau/crypto-lib",
"start:crypto-server": "lerna run start --scope=@sebastienrousseau/crypto-server",
"start": "lerna run start --stream",
"test": "lerna run test --stream"
},
"useWorkspaces": true,
"version": "0.0.2",
"version": "0.0.3",
"workspaces": [
"packages/*"
],
"devDependencies": {
"@commitlint/cli": "^17.1.2",
"@commitlint/config-conventional": "^17.1.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.1",
"mkdirp": "^1.0.4",
"rimraf": "^3.0.2"
"@commitlint/cli": "^17.7.2",
"@commitlint/config-conventional": "^17.7.0",
"eslint-plugin-prettier": "^5.0.0",
"husky": "^8.0.3",
"mkdirp": "^3.0.1",
"rimraf": "^5.0.5",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
}
}
8 changes: 2 additions & 6 deletions packages/crypto-api/. jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@
"camelcase": true,
"curly": true,
"eqeqeq": true,
"esnext": true,
"esversion": 8,
"forin": true,
"freeze": true,
"immed": true,
"indent": 2,
"iterator":true,
"lastsemic": true,
"latedef": true,
"maxcomplexity": 5,
Expand All @@ -26,12 +24,10 @@
"nonbsp": true,
"nonew": true,
"onecase": true,
"quotmark": true,
"quotmark": "single",
"regexp": true,
"smarttabs": true,
"strict": true,
"trailing": true,
"undef": true,
"unused": true,
"white": true
"unused": true
}
4 changes: 2 additions & 2 deletions packages/crypto-api/.markdownlintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/node_modules/
*.json
/.git/
/assets/
/.github/
/assets/
/node_modules/
2 changes: 1 addition & 1 deletion packages/crypto-api/.npmignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.DS_Store
.git*
.vscode/
assets/
coverage/
docs/
assets/
Makefile
node_modules
test/
4 changes: 2 additions & 2 deletions packages/crypto-api/.remarkignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
tmp
build
dist
coverage
dist
tmp
Loading

0 comments on commit b676b6e

Please sign in to comment.