Skip to content

Commit

Permalink
chore: rename documentation/ folder to development/
Browse files Browse the repository at this point in the history
we will be using a simpler format for examples that are
to be used for documentation purposes in the portal, leaving
these to solely be used by the dev-server (and maybe in time
replaced by storybook)
  • Loading branch information
ivarni committed Jan 28, 2025
1 parent 8d70a33 commit ac67393
Show file tree
Hide file tree
Showing 150 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/jokul/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dev-server.js
**/documentation/index.html
**/documentation/main.tsx
**/development/index.html
**/development/main.tsx

# Byggmappe for stilark
/styles/
2 changes: 1 addition & 1 deletion packages/jokul/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Følg mappe- og filstruktur fra de andre komponentene.
| - [navn]/
| -- [Navn].tsx
| -- index.ts
| -- documentation/
| -- development/
| --- [Navn]Example.tsx
| --- Example.tsx
| -- styles/
Expand Down
2 changes: 1 addition & 1 deletion packages/jokul/dev-server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function App() {
}, [setLog, log]);

useEffect(() => {
glob("**/documentation/Example.tsx").then((result) => {
glob("**/development/Example.tsx").then((result) => {
setComponents(
result.map((file) => {
return {
Expand Down
4 changes: 2 additions & 2 deletions packages/jokul/vite.build.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default defineConfig({
exclude: [
"src/**/*.test.{ts,tsx}",
"src/**/*.spec.{ts,tsx}",
"src/components/**/documentation/*",
"src/components/**/development/*",
],
entryRoot: "./src",
outDir: ["./build/es", "./build/cjs"],
Expand Down Expand Up @@ -53,7 +53,7 @@ export default defineConfig({
input: Object.fromEntries(
// https://rollupjs.org/configuration-options/#input
globSync("src/**/!(*.test|*.spec).{ts,tsx}")
.filter((file) => !file.includes("documentation/"))
.filter((file) => !file.includes("development/"))
.map((file) => [
relative(
"src",
Expand Down

0 comments on commit ac67393

Please sign in to comment.