🔧 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
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:
# https://stackoverflow.com/a/69746937/5083247
@ -10,15 +12,14 @@ variables:
cache:
key:
files:
- package.json
- yarn.lock
- pnpm-lock.yaml
paths:
- node_modules
- .pnpm-store
build:
stage: build
script:
- yarn run build:prod
- pnpm run build:prod
artifacts:
paths:
- dist/angular
@ -26,12 +27,12 @@ build:
test:
stage: test
script:
- yarn run lint
- pnpm run lint
pages:
stage: deploy
script:
- yarn run build:gitlab
- pnpm run build:gitlab
- mv dist/angular public
- cp public/index.html public/404.html
artifacts:

View File

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

View File

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

View File

@ -14,7 +14,7 @@
".html"
]
},
"eslint.packageManager": "yarn",
"eslint.packageManager": "pnpm",
"eslint.validate": [
"javascript",
"javascriptreact",
@ -29,8 +29,8 @@
"html.format.maxPreserveNewLines": 1,
"html.format.wrapAttributes": "auto",
"html.format.wrapLineLength": 140,
"npm.packageManager": "yarn",
"tslint.packageManager": "yarn",
"npm.packageManager": "pnpm",
"tslint.packageManager": "pnpm",
"typescript.preferences.importModuleSpecifier": "relative",
"typescript.tsdk": "node_modules\\typescript\\lib",
"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.
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).
## 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).
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).

View File

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

View File

@ -33,7 +33,7 @@
"test": "ng test",
"lint": "ng lint",
"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"
},
"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