🔧 Migrate to pnpm

merge-requests/8/head
Nato Boram 2022-03-10 22:20:29 -05:00
parent 7bd0c946b8
commit d35ebcf80f
No known key found for this signature in database
GPG Key ID: 478E3C64BF88AFFA
9 changed files with 8561 additions and 8318 deletions

View File

@ -1,7 +1,9 @@
image: node:latest image: node:latest
before_script: before_script:
- yarn - curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@6
- pnpm config set store-dir .pnpm-store
- pnpm i
variables: variables:
# https://stackoverflow.com/a/69746937/5083247 # https://stackoverflow.com/a/69746937/5083247
@ -10,15 +12,14 @@ variables:
cache: cache:
key: key:
files: files:
- package.json - pnpm-lock.yaml
- yarn.lock
paths: paths:
- node_modules - .pnpm-store
build: build:
stage: build stage: build
script: script:
- yarn run build:prod - pnpm run build:prod
artifacts: artifacts:
paths: paths:
- dist/angular - dist/angular
@ -26,12 +27,12 @@ build:
test: test:
stage: test stage: test
script: script:
- yarn run lint - pnpm run lint
pages: pages:
stage: deploy stage: deploy
script: script:
- yarn run build:gitlab - pnpm run build:gitlab
- mv dist/angular public - mv dist/angular public
- cp public/index.html public/404.html - cp public/index.html public/404.html
artifacts: artifacts:

View File

@ -1,3 +1,3 @@
{ {
"packageManager": "yarn" "packageManager": "pnpm"
} }

View File

@ -1,6 +1,4 @@
{ {
"line-length": { "line_length": false,
"line_length": 140
},
"no-duplicate-heading": false "no-duplicate-heading": false
} }

View File

@ -14,7 +14,7 @@
".html" ".html"
] ]
}, },
"eslint.packageManager": "yarn", "eslint.packageManager": "pnpm",
"eslint.validate": [ "eslint.validate": [
"javascript", "javascript",
"javascriptreact", "javascriptreact",
@ -29,8 +29,8 @@
"html.format.maxPreserveNewLines": 1, "html.format.maxPreserveNewLines": 1,
"html.format.wrapAttributes": "auto", "html.format.wrapAttributes": "auto",
"html.format.wrapLineLength": 140, "html.format.wrapLineLength": 140,
"npm.packageManager": "yarn", "npm.packageManager": "pnpm",
"tslint.packageManager": "yarn", "tslint.packageManager": "pnpm",
"typescript.preferences.importModuleSpecifier": "relative", "typescript.preferences.importModuleSpecifier": "relative",
"typescript.tsdk": "node_modules\\typescript\\lib", "typescript.tsdk": "node_modules\\typescript\\lib",
"typescript.updateImportsOnFileMove.enabled": "always" "typescript.updateImportsOnFileMove.enabled": "always"

View File

@ -11,33 +11,4 @@ You can view this website on [GitLab Pages](https://natoboram.gitlab.io/public-g
**NOTE :** All of these (except `ipfs.io` and `dweb.link`) are hosted by third-parties and should be treated as such. **NOTE :** All of these (except `ipfs.io` and `dweb.link`) are hosted by third-parties and should be treated as such.
If you'd like to add a new public gateway, please go to If you'd like to add a new public gateway, please go to [github.com/ipfs/public-gateway-checker](https://github.com/ipfs/public-gateway-checker), submit a pull request then open an issue [here](https://gitlab.com/NatoBoram/public-gateway-cacher/issues/new).
[github.com/ipfs/public-gateway-checker](https://github.com/ipfs/public-gateway-checker), submit a pull request then open an issue [here](https://gitlab.com/NatoBoram/public-gateway-cacher/issues/new).
## Angular
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.3.20.
### Development server
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
### Code scaffolding
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
### Build
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
### Running unit tests
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
### Running end-to-end tests
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
### Further help
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).

View File

@ -2,7 +2,7 @@
"$schema": "./node_modules/@angular/cli/lib/config/schema.json", "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1, "version": 1,
"cli": { "cli": {
"packageManager": "yarn", "packageManager": "pnpm",
"analytics": "10b848ad-8b81-4346-852f-5eff89573a85", "analytics": "10b848ad-8b81-4346-852f-5eff89573a85",
"defaultCollection": "@angular-eslint/schematics" "defaultCollection": "@angular-eslint/schematics"
}, },

View File

@ -33,7 +33,7 @@
"test": "ng test", "test": "ng test",
"lint": "ng lint", "lint": "ng lint",
"e2e": "ng e2e", "e2e": "ng e2e",
"publish:ipfs": "yarn run build:ipfs && ipfs add --recursive --chunker=buzhash --cid-version=1 dist/angular", "publish:ipfs": "pnpm run build:ipfs && ipfs add --recursive --chunker=buzhash --cid-version=1 dist/angular",
"postinstall": "ngcc" "postinstall": "ngcc"
}, },
"dependencies": { "dependencies": {

8545
pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load Diff

8272
yarn.lock

File diff suppressed because it is too large Load Diff