frontend / storybox Goto Github PK
View Code? Open in Web Editor NEWStorybook-Tailwind distribution for Styleguide projects
Home Page: https://frontend-storybox.vercel.app/
License: MIT License
Storybook-Tailwind distribution for Styleguide projects
Home Page: https://frontend-storybox.vercel.app/
License: MIT License
Add more default documentation pages:
To be inspired, take a look at:
svg-sprite
module (f.ex "icons:build": "svg-sprite -s --symbol-inline --symbol-dest public --symbol-sprite icons.svg src/assets/icons/*.svg",
)๐ก If it's easier, start from a blank base to re-setup the Storybook project.
When building the styleguide, storybook doesn't find the styles.css
. Might have been introduced by 1.0.3
Steps to reproduce:
npx frontend-storybox@latest
yarn build:styleguide
npx http-server storybook-static/
[2021-10-13T08:25:50.192Z] "GET /styles.css" Error (404): "Not found"
Drop Webpack in favor of Vite/Rollup:
After successfully migrating to 1.0.2 following the guide instructions, the build
command fails with these errors:
ERROR in ./src/modules/slider-vanilla.tsx
Module build failed (from ./node_modules/ts-loader/index.js):
TypeError: loaderContext.getOptions is not a function
at getLoaderOptions (/Users/nelson/work/theodora-base-theme/styleguide/node_modules/ts-loader/dist/index.js:91:41)
at Object.loader (/Users/nelson/work/theodora-base-theme/styleguide/node_modules/ts-loader/dist/index.js:14:21)
ERROR in ./src/modules/header-vanilla.tsx
Module build failed (from ./node_modules/ts-loader/index.js):
TypeError: loaderContext.getOptions is not a function
at getLoaderOptions (/Users/nelson/work/theodora-base-theme/styleguide/node_modules/ts-loader/dist/index.js:91:41)
at Object.loader (/Users/nelson/work/theodora-base-theme/styleguide/node_modules/ts-loader/dist/index.js:14:21)
Might be related to TypeStrong/ts-loader#595
Add placeholder generation script and documentation. Something like:
"images:build": "npx zx bin/generate-image.mjs",
and for bin/generate-image.mjs
#!/usr/bin/env zx
/* Require:
* - ImageMagick (https://imagemagick.org/)
* - rename (for macOS https://formulae.brew.sh/formula/rename)
*
* More on image sizes/formats for the web on https://antistatique.github.io/placeholders/
*/
const widths = [140, 480, 640, 800, 1080, 2000, 3000];
const ratios = ['original'];
const formats = [
['jpg', 65],
]
await $`rm -rf ./public/placeholders`;
await $`mkdir -p ./public/placeholders`;
await $`mkdir -p ./public/placeholders/tmp`;
for (const ratio of ratios) {
await $`mkdir -p ./public/placeholders/tmp/${ratio}`;
for (const width of widths) {
const path = `./public/placeholders/tmp/${ratio}/${width}`;
await $`mkdir -p ${path}`;
for (const format of formats) {
const [ext, quality] = format;
await $`mogrify -format ${ext} -quality ${quality} -resize ${width} -gravity Center -pointsize ${width * 0.05} -fill '#ffffff80' -annotate 0 'โ${width}px - ${ext.toUpperCase()}โ' -path ${path} src/assets/placeholders/*.jpg`;
await $`rename -s .${ext} '_${width}.${ext}' ${path}/*`;
await $`mv ${path}/*.${ext} ./public/placeholders/`;
}
}
}
await $`rm -rf ./public/placeholders/tmp`;
Drop Atomic Design for something more meaningful like Atoms/Navigation/Content/Pages
Find a way to make possible using Alpine.js JS logic in our React documented components as clean as possible. This way, we will be able to use it more often instead of clanky vanilla js.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.