-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Oppdatere redis, node og storybook (#1125)
* feat(Oppdatere redis-tilkobling): oppdatere redistilkobling til siste versjon affects: @navikt/familie-backend * Oppdatere til node 18 for bygging * chore(Storybook): oppdaterer storybook for å støtte node18-versjon av byggeprosessen affects: @navikt/familie-backend, @navikt/familie-dokumentliste, @navikt/familie-tidslinje * chore(Tving oppdatering av pakker for å deploye canary): tving oppdatering av pakker for å deploye c affects: @navikt/familie-backend, @navikt/familie-dokumentliste, @navikt/familie-tidslinje
- Loading branch information
1 parent
1f116a0
commit 6bd8a5d
Showing
15 changed files
with
4,280 additions
and
4,916 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ tsconfig.tsbuildinfo | |
docs | ||
*.log | ||
.idea | ||
|
||
storybook-static |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import type { StorybookConfig } from '@storybook/react-webpack5'; | ||
|
||
|
||
const storybookConfig: StorybookConfig = { | ||
stories: ['../packages/familie-*/src/**/*.stories.@(tsx|mdx)', '../packages/familie-*/*.stories.@(tsx|mdx)'], | ||
addons: ['@storybook/addon-essentials', '@storybook/addon-a11y', '@storybook/addon-storysource', '@storybook/addon-mdx-gfm'], | ||
typescript: { | ||
check: true, | ||
checkOptions: {}, | ||
reactDocgen: 'react-docgen-typescript', | ||
reactDocgenTypescriptOptions: { | ||
shouldExtractLiteralValuesFromEnum: true, | ||
}, | ||
}, | ||
framework: { | ||
name: '@storybook/react-webpack5', | ||
options: {}, | ||
}, | ||
docs: { | ||
autodocs: true, | ||
}, | ||
async webpackFinal(config) { | ||
if (config.module && config.module.rules) { | ||
config.module.rules.push({ | ||
test: /\.(less)$/, | ||
use: [{ | ||
loader: 'style-loader', | ||
}, { | ||
loader: 'css-loader', | ||
options: { | ||
modules: { | ||
compileType: 'icss', | ||
}, | ||
}, | ||
}, { | ||
loader: require.resolve('less-loader'), | ||
}], | ||
}); | ||
config.module.rules.push({ | ||
test: /\.mjs$/, | ||
include: /node_modules/, | ||
type: 'javascript/auto', | ||
}); | ||
} | ||
if (config.resolve && config.resolve.extensions) { | ||
config.resolve.extensions.push('.less'); | ||
|
||
} | ||
return config; | ||
}, | ||
|
||
} | ||
; | ||
|
||
export default storybookConfig; |
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,16 @@ | ||
{ | ||
"sourceType": "unambiguous", | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"targets": { | ||
"chrome": 100 | ||
} | ||
} | ||
], | ||
"@babel/preset-typescript", | ||
"@babel/preset-react" | ||
], | ||
"plugins": [] | ||
} |
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,83 +1,89 @@ | ||
{ | ||
"name": "familie-felles-frontend", | ||
"private": true, | ||
"repository": "https://github.com/navikt/familie-felles-frontend.git", | ||
"license": "MIT", | ||
"scripts": { | ||
"ct": "git-cz", | ||
"bootstrap": "lerna bootstrap --use-workspaces --no-ci", | ||
"build": "lerna run build", | ||
"storybook": "start-storybook -p 8000", | ||
"build-storybook": "build-storybook", | ||
"deploy-storybook": "storybook-to-ghpages", | ||
"lint": "eslint './packages/**/*.{ts,tsx}'", | ||
"lint:fix": "eslint './packages/**/*.{ts,tsx}' --fix", | ||
"publish:ci": "lerna publish -y --no-verify-access", | ||
"publish:canary": "lerna publish --canary", | ||
"publish:canary:ci": "lerna publish -y --no-verify-access --canary" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "pretty-quick --staged" | ||
} | ||
}, | ||
"lint-staged": { | ||
"./packages/**/*.{js,ts,tsx}": [ | ||
"eslint --fix" | ||
] | ||
}, | ||
"config": { | ||
"commitizen": { | ||
"path": "./node_modules/cz-lerna-changelog" | ||
} | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^17.6.1", | ||
"@commitlint/config-conventional": "^17.4.4", | ||
"@storybook/addon-a11y": "^6.5.12", | ||
"@storybook/addon-essentials": "^6.5.12", | ||
"@storybook/addon-storysource": "^6.5.12", | ||
"@storybook/react": "^6.5.12", | ||
"@storybook/storybook-deployer": "^2.8.12", | ||
"awesome-typescript-loader": "^5.2.1", | ||
"babel-loader": "^8.2.5", | ||
"classnames": "^2.3.2", | ||
"commitizen": "^4.3.0", | ||
"copyfiles": "^2.4.1", | ||
"css-loader": "^5.0.1", | ||
"cz-lerna-changelog": "^2.0.3", | ||
"eslint": "^8.36.0", | ||
"eslint-config-airbnb": "^19.0.4", | ||
"eslint-config-prettier": "^8.8.0", | ||
"eslint-loader": "^4.0.2", | ||
"eslint-plugin-flowtype": "8.0.3", | ||
"eslint-plugin-import": "^2.27.5", | ||
"eslint-plugin-jsx-a11y": "^6.7.1", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"eslint-plugin-react": "^7.32.2", | ||
"eslint-plugin-react-hooks": "^4.6.0", | ||
"@typescript-eslint/eslint-plugin": "^5.58.0", | ||
"@typescript-eslint/parser": "^5.58.0", | ||
"lerna": "^5.6.2", | ||
"less": "^4.1.3", | ||
"less-loader": "^7.3.0", | ||
"lint-staged": "^13.2.0", | ||
"lodash.throttle": "^4.1.1", | ||
"prettier": "^2.8.7", | ||
"pretty-quick": "^3.1.3", | ||
"prop-types": "^15.8.1", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-is": "^18.2.0", | ||
"rollup-plugin-less": "^1.1.3", | ||
"storybook-addon-react-docgen": "^1.2.42", | ||
"style-loader": "^1.3.0", | ||
"ts-loader": "^9.4.1", | ||
"tslint": "^6.1.3", | ||
"tslint-config-prettier": "^1.18.0", | ||
"typescript": "^4.9.4" | ||
}, | ||
"workspaces": [ | ||
"packages/*" | ||
"name": "familie-felles-frontend", | ||
"private": true, | ||
"repository": "https://github.com/navikt/familie-felles-frontend.git", | ||
"license": "MIT", | ||
"scripts": { | ||
"ct": "git-cz", | ||
"bootstrap": "lerna bootstrap --use-workspaces --no-ci", | ||
"build": "lerna run build", | ||
"storybook": "storybook dev -p 8000", | ||
"build-storybook": "storybook build", | ||
"deploy-storybook": "storybook-to-ghpages", | ||
"lint": "eslint './packages/**/*.{ts,tsx}'", | ||
"lint:fix": "eslint './packages/**/*.{ts,tsx}' --fix", | ||
"publish:ci": "lerna publish -y --no-verify-access", | ||
"publish:canary": "lerna publish --canary", | ||
"publish:canary:ci": "lerna publish -y --no-verify-access --canary" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "pretty-quick --staged" | ||
} | ||
}, | ||
"lint-staged": { | ||
"./packages/**/*.{js,ts,tsx}": [ | ||
"eslint --fix" | ||
] | ||
}, | ||
"config": { | ||
"commitizen": { | ||
"path": "./node_modules/cz-lerna-changelog" | ||
} | ||
}, | ||
"devDependencies": { | ||
"@babel/preset-env": "^7.22.9", | ||
"@babel/preset-react": "^7.22.5", | ||
"@babel/preset-typescript": "^7.22.5", | ||
"@commitlint/cli": "^17.6.1", | ||
"@commitlint/config-conventional": "^17.4.4", | ||
"@storybook/addon-a11y": "^7.0.27", | ||
"@storybook/addon-essentials": "^7.0.27", | ||
"@storybook/addon-mdx-gfm": "^7.0.27", | ||
"@storybook/addon-storysource": "^7.0.27", | ||
"@storybook/react": "^7.0.27", | ||
"@storybook/react-webpack5": "^7.0.27", | ||
"@storybook/storybook-deployer": "^2.8.16", | ||
"@typescript-eslint/eslint-plugin": "^5.58.0", | ||
"@typescript-eslint/parser": "^5.58.0", | ||
"awesome-typescript-loader": "^5.2.1", | ||
"babel-loader": "^8.2.5", | ||
"classnames": "^2.3.2", | ||
"commitizen": "^4.3.0", | ||
"copyfiles": "^2.4.1", | ||
"css-loader": "^5.0.1", | ||
"cz-lerna-changelog": "^2.0.3", | ||
"eslint": "^8.36.0", | ||
"eslint-config-airbnb": "^19.0.4", | ||
"eslint-config-prettier": "^8.8.0", | ||
"eslint-loader": "^4.0.2", | ||
"eslint-plugin-flowtype": "8.0.3", | ||
"eslint-plugin-import": "^2.27.5", | ||
"eslint-plugin-jsx-a11y": "^6.7.1", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"eslint-plugin-react": "^7.32.2", | ||
"eslint-plugin-react-hooks": "^4.6.0", | ||
"lerna": "^5.6.2", | ||
"less": "^4.1.3", | ||
"less-loader": "^7.3.0", | ||
"lint-staged": "^13.2.0", | ||
"lodash.throttle": "^4.1.1", | ||
"prettier": "^2.8.7", | ||
"pretty-quick": "^3.1.3", | ||
"prop-types": "^15.8.1", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-is": "^18.2.0", | ||
"rollup-plugin-less": "^1.1.3", | ||
"storybook": "^7.0.27", | ||
"storybook-addon-react-docgen": "^1.2.43", | ||
"style-loader": "^1.3.0", | ||
"ts-loader": "^9.4.1", | ||
"tslint": "^6.1.3", | ||
"tslint-config-prettier": "^1.18.0", | ||
"typescript": "^4.9.4" | ||
}, | ||
"workspaces": [ | ||
"packages/*" | ||
] | ||
} |
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
Oops, something went wrong.