chore: manage the repo with task, improve on taskfile

This commit is contained in:
Michele Cereda
2024-11-03 12:55:03 +01:00
parent 032c348fd1
commit bf330beabe
5 changed files with 47 additions and 42 deletions

View File

@@ -1,12 +1,26 @@
# Node Package Manager CLI
## Table of contents <!-- omit in toc -->
1. [TL;DR](#tldr)
1. [Further readings](#further-readings)
## TL;DR
<details>
<summary>Setup</summary>
```sh
# Disable SSL verification.
npm config set 'strict-ssl'='false'
# Use custom CA certificates.
npm config set 'cafile'='path/to/ca/cert.pem'
```
</details>
<details>
<summary>Usage</summary>
```sh
# Search for packages.
npm search 'typescript'
@@ -22,17 +36,15 @@ npm i -g '@pnp/cli-microsoft365@latest'
npm clean-install '@pnp/cli-microsoft365'
npm ci -g '@pnp/cli-microsoft365@latest'
# Update packages.
npm update
npm up --save
# Remove packages.
npm uninstall '@pnp/cli-microsoft365'
```
```sh
# Disable SSL verification.
npm config set 'strict-ssl'='false'
# Use a custom CA certificate.
npm config set 'cafile'='path/to/ca/cert.pem'
```
</details>
## Further readings

View File

@@ -37,8 +37,9 @@ Cons:
# Install the executable.
brew install 'go-task'
choco install 'go-task'
sudo dnf install 'go-task'
sudo snap install 'task' --classic
dnf install 'go-task'
snap install 'task' --classic
zypper install 'https://github.com/go-task/task/releases/download/v3.39.2/task_linux_amd64.rpm'
# Setup the shell's completion.
task --completion 'fish' > ~/'.config/fish/completions/task.fish'
@@ -72,6 +73,7 @@ task --completion 'bash' > '/etc/bash_completion.d/task'
```sh
task 'assets' 'build'
task --dry 'bootstrap'
```
If task names are omitted, a task named `default` will be assumed.