-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bb4c938
commit c0666c7
Showing
53 changed files
with
3,246 additions
and
414 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* eslint-disable */ | ||
//prettier-ignore | ||
module.exports = { | ||
name: "@yarnpkg/plugin-after-install", | ||
factory: function (require) { | ||
"use strict";var plugin=(()=>{var s=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var C=Object.prototype.hasOwnProperty;var r=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(o,e)=>(typeof require<"u"?require:o)[e]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')});var I=(t,o)=>{for(var e in o)s(t,e,{get:o[e],enumerable:!0})},h=(t,o,e,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of x(o))!C.call(t,n)&&n!==e&&s(t,n,{get:()=>o[n],enumerable:!(a=g(o,n))||a.enumerable});return t};var k=t=>h(s({},"__esModule",{value:!0}),t);var P={};I(P,{default:()=>y});var d=r("@yarnpkg/core");var f=r("@yarnpkg/core"),c={afterInstall:{description:"Hook that will always run after install",type:f.SettingsType.STRING,default:""}};var p=r("clipanion"),u=r("@yarnpkg/core");var m=r("@yarnpkg/shell"),l=async(t,o)=>{let e=t.get("afterInstall"),a=!!t.projectCwd?.endsWith(`dlx-${process.pid}`);return e&&!a?(o&&console.log("Running `afterInstall` hook..."),(0,m.execute)(e,[],{cwd:t.projectCwd||void 0})):0};var i=class extends p.Command{async execute(){let o=await u.Configuration.find(this.context.cwd,this.context.plugins);return l(o,!1)}};i.paths=[["after-install"]];var w={configuration:c,commands:[i],hooks:{afterAllInstalled:async(t,o)=>{if(o?.mode===d.InstallMode.UpdateLockfile)return;if(await l(t.configuration,!0))throw new Error("The `afterInstall` hook failed, see output above.")}}},y=w;return k(P);})(); | ||
return plugin; | ||
} | ||
}; |
324 changes: 162 additions & 162 deletions
324
.yarn/releases/yarn-4.1.0.cjs → .yarn/releases/yarn-4.1.1.cjs
100755 → 100644
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
yarnPath: .yarn/releases/yarn-4.1.0.cjs | ||
enableGlobalCache: false | ||
|
||
plugins: | ||
- checksum: 0a2a35fbed2f33f0df1ceb1db51bf72554201f994eaecb86cbc62a295c3d05f7cc44fa8be8e64fc5e1c0bee4f529a17a0cc429ea9e3486ad467443291d5a8e3b | ||
path: .yarn/plugins/@yarnpkg/plugin-after-install.cjs | ||
spec: 'https://raw.githubusercontent.com/mhassan1/yarn-plugin-after-install/v0.6.0/bundles/@yarnpkg/plugin-after-install.js' | ||
|
||
yarnPath: .yarn/releases/yarn-4.1.1.cjs | ||
|
||
afterInstall: yarn mkenvlink |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
web: yarn workspace ordbokapi run start:prod | ||
worker: yarn workspace uib-ord-sync run start:prod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
version: '3.8' | ||
services: | ||
redis: | ||
image: redis/redis-stack:7.2.0-v9 | ||
ports: | ||
- '${REDIS_PORT}:6379' | ||
- '${REDIS_INSIGHT_PORT}:8001' | ||
volumes: | ||
- ./.redis:/data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { promises as fs } from 'fs'; | ||
import path from 'path'; | ||
|
||
// makes a link to the .env file in the root in each package directory in the | ||
// monorepo (packages/*) so that each package can access the same environment | ||
// variables | ||
|
||
const rootDir = path.dirname(new URL(import.meta.url).pathname); | ||
|
||
const rootEnvPath = path.join(rootDir, '.env'); | ||
const packagesPath = path.join(rootDir, 'packages'); | ||
|
||
// create .env if it doesn't exist | ||
|
||
try { | ||
await fs.access(rootEnvPath); | ||
} catch (err) { | ||
if (err.code === 'ENOENT') { | ||
await import('./writeenv.mjs'); | ||
} else { | ||
throw err; | ||
} | ||
} | ||
|
||
const packageDirs = await fs.readdir(packagesPath, { withFileTypes: true }); | ||
|
||
for (const packageDir of packageDirs) { | ||
if (!packageDir.isDirectory()) continue; | ||
|
||
const packageEnvPath = path.join(packagesPath, packageDir.name, '.env'); | ||
|
||
try { | ||
await fs.unlink(packageEnvPath); | ||
} catch (err) { | ||
if (err.code !== 'ENOENT') throw err; | ||
} | ||
|
||
await fs.symlink(rootEnvPath, packageEnvPath); | ||
|
||
const relativePath = path.relative(rootDir, packageEnvPath); | ||
console.log(`Laga lenkje frå ${relativePath} til .env`); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,12 +16,16 @@ | |
"packages/*" | ||
], | ||
"scripts": { | ||
"build": "yarn workspaces foreach -ptA --exclude ordbokapi-monorepo run build" | ||
"build": "yarn workspaces foreach -ptA --exclude ordbokapi-monorepo run build", | ||
"mkenvlink": "node mkenvlink.mjs", | ||
"redis:start": "docker-compose -f ./docker-compose.yml up -d", | ||
"redis:stop": "docker-compose -f ./docker-compose.yml down", | ||
"redis:clear": "yarn redis:stop && node -e \"require('fs').rmSync('.redis', { recursive: true, force: true })\"" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^8.42.0", | ||
"prettier": "^3.0.0", | ||
"typescript": "^5.1.3" | ||
"eslint": "^8.57.0", | ||
"prettier": "^3.2.5", | ||
"typescript": "^5.4.2" | ||
}, | ||
"jest": { | ||
"moduleFileExtensions": [ | ||
|
@@ -42,7 +46,6 @@ | |
}, | ||
"volta": { | ||
"node": "21.6.2", | ||
"yarn": "4.1.0" | ||
}, | ||
"packageManager": "[email protected]" | ||
"yarn": "4.1.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"exclude": ["node_modules", "test", "dist", "**/*spec.ts"] | ||
"compilerOptions": { | ||
"rootDir": "./src" | ||
}, | ||
"include": ["src/**/*.ts"], | ||
"exclude": ["node_modules", "test", "dist", "**/*spec.ts"], | ||
"references": [{ "path": "../common" }] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
module.exports = { | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
project: 'tsconfig.json', | ||
tsconfigRootDir: __dirname, | ||
sourceType: 'module', | ||
}, | ||
plugins: ['@typescript-eslint/eslint-plugin'], | ||
extends: [ | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:prettier/recommended', | ||
], | ||
root: true, | ||
env: { | ||
node: true, | ||
jest: true, | ||
}, | ||
ignorePatterns: ['.eslintrc.js'], | ||
rules: { | ||
'@typescript-eslint/interface-name-prefix': 'off', | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"name": "ordbokapi-common", | ||
"version": "1.0.0", | ||
"private": true, | ||
"scripts": { | ||
"build": "tsc", | ||
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", | ||
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix" | ||
}, | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"dependencies": { | ||
"@nestjs/common": "^10.3.3", | ||
"@nestjs/config": "^3.2.0", | ||
"@redis/json": "^1.0.6", | ||
"ioredis": "^5.3.2", | ||
"luxon": "^3.4.4", | ||
"redis": "^4.6.13", | ||
"reflect-metadata": "^0.2.1", | ||
"rxjs": "^7.8.1" | ||
}, | ||
"peerDependencies": { | ||
"@nestjs/common": "^10.3.3", | ||
"@nestjs/config": "^3.2.0" | ||
}, | ||
"devDependencies": { | ||
"@types/luxon": "^3.4.2", | ||
"@types/node": "^20.11.25", | ||
"@typescript-eslint/eslint-plugin": "^7.1.1", | ||
"@typescript-eslint/parser": "^7.1.1", | ||
"eslint": "^8.57.0", | ||
"prettier": "^3.2.5", | ||
"typescript": "^5.4.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export * as providers from './providers'; | ||
export * from './providers'; | ||
export * from './types'; | ||
export * from './utils'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export * from './redis.service'; | ||
export * from './uib-api.service'; | ||
export * from './uib-redis.service'; |
Oops, something went wrong.