Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

Commit

Permalink
produserer d.ts-filer ved bygg
Browse files Browse the repository at this point in the history
  • Loading branch information
hallvardastark committed Nov 7, 2023
1 parent f0cf4ef commit 47341dd
Show file tree
Hide file tree
Showing 15 changed files with 51 additions and 20 deletions.
3 changes: 2 additions & 1 deletion packages/etablert-tilsyn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@
"scripts": {
"test": "jest --maxWorkers=2",
"test-watch": "jest --watch",
"build": "webpack --config webpack/webpack-config.production.js",
"build": "webpack --config webpack/webpack-config.production.js && yarn ts-declarations",
"dev": "node webpack/webpack-config.development.js",
"majorVersion": "node ./majorVersion.js",
"lint": "eslint 'src/**/*.{ts,tsx,js,jsx}'",
"ts-check": "tsc --pretty --noEmit",
"ts-declarations": "tsc",
"api-mock": "ts-node mock/api-mock.ts",
"cypress:headless": "cypress open",
"test:e2e": "start-server-and-test dev http://localhost:8484 cypress:headless"
Expand Down
5 changes: 4 additions & 1 deletion packages/etablert-tilsyn/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
"target": "esnext",
"typeRoots": ["../../node_modules/@types"],
"esModuleInterop": true,
"allowJs": true
"allowJs": true,
"outDir": "./build/",
"emitDeclarationOnly": true
},
"include": ["src", "@types"],
"exclude": ["node_modules", "build", "**/*.spec.ts", "**/*.spec.tsx", "./cypress.config.ts"]
}
3 changes: 2 additions & 1 deletion packages/inntektsmelding/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@
"scripts": {
"test": "jest --passWithNoTests --maxWorkers=2",
"test-watch": "jest --watch",
"build": "webpack --config webpack/webpack-config.production.js",
"build": "webpack --config webpack/webpack-config.production.js && yarn ts-declarations",
"dev": "node webpack/webpack-config.development.js",
"api-mock": "ts-node mock/api-mock.ts",
"majorVersion": "node ./majorVersion.js",
"lint": "eslint 'src/**/*.{ts,tsx,js,jsx}'",
"ts-check": "tsc --pretty --noEmit",
"ts-declarations": "tsc",
"start:e2e": "nodemon mock/api-mock.ts & node webpack/webpack-config.development.js",
"storybook": "start-storybook -p 6006 -s public",
"build-storybook": "build-storybook"
Expand Down
13 changes: 8 additions & 5 deletions packages/inntektsmelding/src/stories/MainComponent.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
import React from 'react';
import { ComponentStory } from '@storybook/react';
import { rest } from 'msw';
import { ComponentStory, ComponentMeta } from '@storybook/react';
import MainComponent from '../ui/MainComponent';
import React from 'react';
import inntektsmeldingPropsMock, {
aksjonspunkt9071FerdigProps,
aksjonspunkt9071Props,
} from '../../mock/inntektsmeldingPropsMock';
import ferdigvisning, {
alleErMottatt,
ikkePaakrevd,
ikkePaakrevdOgManglerInntektsmelding,
manglerFlereInntektsmeldinger,
manglerInntektsmelding,
} from '../../mock/mockedKompletthetsdata';
import inntektsmeldingPropsMock, { aksjonspunkt9071FerdigProps, aksjonspunkt9071Props } from '../../mock/inntektsmeldingPropsMock';
import MainComponent from '../ui/MainComponent';

export default {
args: inntektsmeldingPropsMock,
argTypes: { onFinished: { action: 'clicked' } },
title: 'Inntektsmelding',
component: MainComponent,
} as ComponentMeta<typeof MainComponent>;
};

const Template: ComponentStory<typeof MainComponent> = (args: any) => <MainComponent data={args} />;

Expand Down
5 changes: 4 additions & 1 deletion packages/inntektsmelding/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
"target": "esnext",
"typeRoots": ["../../node_modules/@types"],
"types": ["node", "jest"],
"esModuleInterop": true
"esModuleInterop": true,
"outDir": "./build/",
"emitDeclarationOnly": true
},
"include": ["src", "@types"],
"exclude": ["build"]
}
3 changes: 2 additions & 1 deletion packages/medisinsk-vilkår/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@
"test": "cross-env DEBUG=test JEST_PUPPETEER_CONFIG=./jest-puppeteer.config.js jest --maxWorkers=2 --detectOpenHandles --config=./jest.config.js ",
"test-watch": "jest --watch",
"test-update-snapshots": "cross-env DEBUG=test JEST_PUPPETEER_CONFIG=./jest-puppeteer.config.js jest --maxWorkers=2 --detectOpenHandles --config=./jest.config.js -u",
"build": "cross-env NODE_ENV=production webpack --config webpack/webpack-config.production.js",
"build": "cross-env NODE_ENV=production webpack --config webpack/webpack-config.production.js && yarn ts-declarations",
"dev": "node webpack/webpack-config.development.js",
"api-mock-ls": "nodemon mock/api-mock-livets-sluttfase.ts",
"majorVersion": "node ./majorVersion.js",
"lint": "eslint 'src/**/*.{ts,tsx,js,jsx}'",
"ts-check": "tsc --pretty --noEmit",
"ts-declarations": "tsc",
"cypress:headless": "cypress run",
"test:e2e": "start-server-and-test dev http://localhost:8081 cypress:headless",
"start-ls:e2e": "nodemon mock/api-mock-livets-sluttfase.ts & node webpack/webpack-config.development.js"
Expand Down
5 changes: 4 additions & 1 deletion packages/medisinsk-vilkår/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
"typeRoots": ["../../node_modules/@types"],
"types": ["node", "jest"],
"esModuleInterop": true,
"allowJs": true
"allowJs": true,
"outDir": "./build/",
"emitDeclarationOnly": true
},
"include": ["src", "@types"],
"exclude": ["node_modules", "build", "**/*.spec.ts", "**/*.spec.tsx", "dist", "./cypress.config.ts"]
}
3 changes: 2 additions & 1 deletion packages/om-barnet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@
"scripts": {
"test": "jest",
"test-watch": "jest --watch",
"build": "cross-env NODE_ENV=production webpack --config webpack/webpack-config.production.js",
"build": "cross-env NODE_ENV=production webpack --config webpack/webpack-config.production.js && yarn ts-declarations",
"dev": "node webpack/webpack-config.development.js",
"majorVersion": "node ./majorVersion.js",
"lint": "eslint 'src/**/*.{ts,tsx,js,jsx}'",
"ts-check": "tsc --pretty --noEmit",
"ts-declarations": "tsc",
"api-mock": "ts-node mock/api-mock.ts"
},
"pre-commit": [
Expand Down
5 changes: 4 additions & 1 deletion packages/om-barnet/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
"typeRoots": ["../../node_modules/@types"],
"types": ["node", "jest"],
"esModuleInterop": true,
"allowJs": true
"allowJs": true,
"outDir": "./build/",
"emitDeclarationOnly": true
},
"include": ["src", "@types"],
"exclude": ["node_modules", "build", "**/*.spec.ts", "**/*.spec.tsx", "dist", "./cypress.config.ts"]
}
3 changes: 2 additions & 1 deletion packages/omsorgen-for/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@
"scripts": {
"test": "jest --passWithNoTests --maxWorkers=2",
"test-watch": "jest --watch",
"build": "webpack --config webpack/webpack-config.production.js",
"build": "webpack --config webpack/webpack-config.production.js && yarn ts-declarations",
"api-mock": "ts-node mock/api-mock.ts",
"dev": "node webpack/webpack-config.development.js",
"majorVersion": "node ./majorVersion.js",
"lint": "eslint 'src/**/*.{ts,tsx,js,jsx}'",
"ts-check": "tsc --pretty --noEmit",
"ts-declarations": "tsc",
"start:e2e": "nodemon mock/api-mock.ts & node webpack/webpack-config.development.js"
},
"keywords": [],
Expand Down
5 changes: 4 additions & 1 deletion packages/omsorgen-for/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
"target": "esnext",
"typeRoots": ["./node_modules/@types"],
"esModuleInterop": true,
"allowJs": true
"allowJs": true,
"outDir": "./build/",
"emitDeclarationOnly": true
},
"include": ["src", "@types"],
"exclude": ["node_modules", "build"]
}
3 changes: 2 additions & 1 deletion packages/omsorgsdager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@
],
"scripts": {
"test": "jest --maxWorkers=2 --detectOpenHandles --config=./jest.config.js",
"build": "cross-env NODE_ENV=production webpack --config webpack/webpack-config.production.js",
"build": "cross-env NODE_ENV=production webpack --config webpack/webpack-config.production.js && yarn ts-declarations",
"dev": "node webpack/webpack-config.development.js",
"lint": "eslint src/**/*.{ts,tsx,js,jsx}",
"lint:css": "stylelint src/**/*.{less,css}",
"ts-check": "tsc --pretty --noEmit",
"ts-declarations": "tsc",
"checkPackageUpgrade": "yarn test && yarn lint && yarn lint:css && yarn build"
},
"keywords": [],
Expand Down
5 changes: 4 additions & 1 deletion packages/omsorgsdager/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
"target": "esnext",
"typeRoots": ["../../node_modules/@types"],
"esModuleInterop": true,
"allowJs": true
"allowJs": true,
"outDir": "./build/",
"emitDeclarationOnly": true
},
"include": ["src", "@types"],
"exclude": ["node_modules", "build", "**/*.spec.ts", "**/*.spec.tsx"]
}
5 changes: 3 additions & 2 deletions packages/uttak/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@
"scripts": {
"test": "jest --passWithNoTests --maxWorkers=2",
"test-watch": "jest --watch",
"build": "webpack --config webpack/webpack-config.production.js",
"build": "webpack --config webpack/webpack-config.production.js && yarn ts-declarations",
"dev": "node webpack/webpack-config.development.js",
"api-mock": "ts-node mock/api-mock.ts",
"majorVersion": "node ./majorVersion.js",
"lint": "eslint 'src/**/*.{ts,tsx,js,jsx}'",
"ts-check": "tsc --pretty --noEmit"
"ts-check": "tsc --pretty --noEmit",
"ts-declarations": "tsc"
},
"pre-commit": [
"lint",
Expand Down
5 changes: 4 additions & 1 deletion packages/uttak/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
"typeRoots": ["../../node_modules/@types"],
"types": ["node", "jest"],
"esModuleInterop": true,
"allowJs": true
"allowJs": true,
"outDir": "./build/",
"emitDeclarationOnly": true
},
"include": ["src", "@types"],
"exclude": ["node_modules", "build", "**/*.spec.ts", "**/*.spec.tsx", "dist"]
}

0 comments on commit 47341dd

Please sign in to comment.