Skip to content
This repository has been archived by the owner on Aug 9, 2023. It is now read-only.

docs: move storybook #50

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ jobs:

- name: install, build, lint and test
run: |
yarn
yarn bootstrap
yarn build
yarn lint
yarn test
npm ci
npm run bootstrap
npm run build
npm run lint
npm run test

- name: "Deploy to Azure Web App"
uses: azure/webapps-deploy@v2
with:
app-name: ${{ secrets.AZURE_WEBAPP_NAME }}
slot-name: "production"
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: .
package: packages/storybook
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- name: install, lint, and test
run: |
yarn
yarn bootstrap
yarn lint
yarn test
npm ci
npm run bootstrap
npm run lint
npm run test
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"packages": ["packages/nl-design-system/*", "packages/nl-design-system-unstable/*"],
"npmClient": "yarn",
"npmClient": "npm",
"version": "independent"
}
23 changes: 3 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,25 @@
"name": "@nl-design-system-unstable/web-component-poc",
"private": true,
"devDependencies": {
"@babel/core": "^7.12.3",
"@commitlint/cli": "11.0.0",
"@commitlint/config-conventional": "11.0.0",
"@etchteam/storybook-addon-status": "^2.1.0",
"@storybook/addon-essentials": "^6.1.6",
"@storybook/addon-notes": "^5.3.21",
"@storybook/html": "^6.1.6",
"@storybook/theming": "^6.1.6",
"babel-loader": "^8.2.1",
"dompurify": "^2.2.2",
"eslint": "7.13.0",
"eslint-config-prettier": "6.15.0",
"html-validate": "4.0.2",
"husky": "4.3.0",
"lerna": "^3.22.1",
"lint-staged": "10.5.1",
"markdownlint-cli": "0.25.0",
"mdx-embed": "0.0.17",
"npm-package-json-lint": "5.1.0",
"npm-run-all": "4.1.5",
"prettier": "2.1.2",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"storybook-addon-mdx-embed": "0.0.17",
"storybook-design-token": "^0.8.1",
"stylelint": "13.7.2",
"stylelint-config-prettier": "8.0.1",
"ts-dedent": "^2.0.0",
"webpack": "^4.44.2"
"stylelint-config-prettier": "8.0.1"
},
"scripts": {
"bootstrap": "lerna bootstrap",
"build:storybook": "build-storybook --output-dir dist/storybook -s .storybook/static",
"build": "npm-run-all 'build:*'",
"build": "lerna run build",
"storybook": "lerna run storybook",
"lint": "npm-run-all --continue-on-error 'lint:*' && lerna run lint",
"lint:css": "stylelint '**/*.css'",
"lint:js": "eslint '**/*.{js,jsx,ts,tsx}'",
Expand All @@ -51,8 +36,6 @@
"lint-fix:js": "eslint --fix '**/*.{js,jsx,ts,tsx}'",
"lint-fix:md": "markdownlint --fix '**/*.md'",
"prettier": "prettier --write .",
"storybook": "start-storybook -s ./.storybook/static -p 6006",
"start": "node_modules/http-server/bin/http-server dist/storybook/",
"test": "exit 0"
},
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,19 @@
"version": "0.0.1",
"main": "index.js",
"module": "index.js",
"license": "EUPL-1.2"
"license": "EUPL-1.2",
"devDependencies": {
"@etchteam/storybook-addon-status": "^2.1.0",
"@storybook/addon-essentials": "^6.1.6",
"@storybook/addon-notes": "^5.3.21",
"@storybook/html": "^6.1.6",
"@storybook/theming": "^6.1.6",
"dompurify": "^2.2.2",
"mdx-embed": "0.0.17",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"storybook-addon-mdx-embed": "0.0.17",
"storybook-design-token": "^0.8.1",
"ts-dedent": "^2.0.0"
}
}
23 changes: 23 additions & 0 deletions packages/nl-design-system-unstable/button-component/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "@nl-design-system-unstable/button-component",
"author": "Community for NL Design System",
"description": "nl-button-component for NL Design System",
"version": "0.0.1",
"main": "index.js",
"module": "index.js",
"license": "EUPL-1.2",
"devDependencies": {
"@etchteam/storybook-addon-status": "^2.1.0",
"@storybook/addon-essentials": "^6.1.6",
"@storybook/addon-notes": "^5.3.21",
"@storybook/html": "^6.1.6",
"@storybook/theming": "^6.1.6",
"dompurify": "^2.2.2",
"mdx-embed": "0.0.17",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"storybook-addon-mdx-embed": "0.0.17",
"storybook-design-token": "^0.8.1",
"ts-dedent": "^2.0.0"
}
}
23 changes: 23 additions & 0 deletions packages/nl-design-system-unstable/collapse-component/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "@nl-design-system-unstable/collapse-component",
"author": "Community for NL Design System",
"description": "nl-collapse-component for NL Design System",
"version": "0.0.1",
"main": "index.js",
"module": "index.js",
"license": "EUPL-1.2",
"devDependencies": {
"@etchteam/storybook-addon-status": "^2.1.0",
"@storybook/addon-essentials": "^6.1.6",
"@storybook/addon-notes": "^5.3.21",
"@storybook/html": "^6.1.6",
"@storybook/theming": "^6.1.6",
"dompurify": "^2.2.2",
"mdx-embed": "0.0.17",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"storybook-addon-mdx-embed": "0.0.17",
"storybook-design-token": "^0.8.1",
"ts-dedent": "^2.0.0"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "@nl-design-system-unstable/notification-component",
"author": "Community for NL Design System",
"description": "nl-notification-component for NL Design System",
"version": "0.0.1",
"main": "index.js",
"module": "index.js",
"license": "EUPL-1.2",
"devDependencies": {
"@etchteam/storybook-addon-status": "^2.1.0",
"@storybook/addon-essentials": "^6.1.6",
"@storybook/addon-notes": "^5.3.21",
"@storybook/html": "^6.1.6",
"@storybook/theming": "^6.1.6",
"dompurify": "^2.2.2",
"mdx-embed": "0.0.17",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"storybook-addon-mdx-embed": "0.0.17",
"storybook-design-token": "^0.8.1",
"ts-dedent": "^2.0.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,19 @@
"version": "0.0.1",
"main": "index.js",
"module": "index.js",
"license": "EUPL-1.2"
"license": "EUPL-1.2",
"devDependencies": {
"@etchteam/storybook-addon-status": "^2.1.0",
"@storybook/addon-essentials": "^6.1.6",
"@storybook/addon-notes": "^5.3.21",
"@storybook/html": "^6.1.6",
"@storybook/theming": "^6.1.6",
"dompurify": "^2.2.2",
"mdx-embed": "0.0.17",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"storybook-addon-mdx-embed": "0.0.17",
"storybook-design-token": "^0.8.1",
"ts-dedent": "^2.0.0"
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
stories: ['../**/*.stories.@(js|mdx)'],
stories: ['../__stories__/**/*.stories.mdx', '../../!(storybook)/**/*.stories.mdx'],
addons: [
'@storybook/addon-notes/register',
'@etchteam/storybook-addon-status/register',
Expand All @@ -15,4 +15,7 @@ module.exports = {
'storybook-addon-mdx-embed',
'storybook-design-token',
],
core: {
builder: 'webpack5',
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const cssReq = require.context('!!raw-loader!../packages/nl-design-system-unstable', true, /.\.css$/)
const cssTokenFiles = cssReq.keys().map(filename => ({ filename, content: cssReq(filename).default }))
// const cssReq = require.context('!!raw-loader!../..', true, /.\.css$/)
// const cssTokenFiles = cssReq.keys().map(filename => ({ filename, content: cssReq(filename).default }))

const svgIconsReq = require.context('!!raw-loader!../.storybook/static', true, /.\.svg$/)
const svgIconTokenFiles = svgIconsReq.keys().map(filename => ({ filename, content: svgIconsReq(filename).default }))

const designToken = {
files: {
css: cssTokenFiles,
// css: cssTokenFiles,
svgIcons: svgIconTokenFiles,
},
options: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getParams, getTitle } from "./utils.js";
import { Description, Meta } from "@storybook/addon-docs/blocks";
import document from "../__docs__/content-richtlijnen.md";
import document from "@nl-design-system/docs/algemeen/tekst-en-taalgebruik.md";

<Meta title={getTitle("Content Richtlijnen")} parameters={getParams()} />

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getParams } from "../utils.js";
import { Description, Meta } from "@storybook/addon-docs/blocks";
import document from "../../__docs__/form-patterns.md";
import document from "@nl-design-system/docs/patronen/formulieren.md";

<Meta title="Patterns/Forms" parameters={getParams()} />

Expand Down
Loading