Skip to content

Commit c5e1204

Browse files
committed
move RainbowLine.astro to a separate package
1 parent 5d4b04b commit c5e1204

File tree

10 files changed

+124
-2
lines changed

10 files changed

+124
-2
lines changed

apps/lookbook/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"@astrojs/react": "^3.5.0",
1717
"@astrojs/tailwind": "^5.1.0",
1818
"@react-three/drei": "^9.107.0",
19+
"@spearwolf/astro-rainbow-line": "workspace:*",
1920
"@spearwolf/twopoint5d": "workspace:*",
2021
"@spearwolf/twopoint5d-demos": "workspace:*",
2122
"@spearwolf/twopoint5d-elements": "workspace:*",

apps/lookbook/src/components/DemoNavBar.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2+
import RainbowLine from '@spearwolf/astro-rainbow-line';
23
import twopoint5d from '../images/twopoint5d-logo.svg?url';
3-
import RainbowLine from './RainbowLine.astro';
44
import CloseDialogIcon from './icons/CloseDialogIcon.astro';
55
import GitHubInvertocatIcon from './icons/GitHubInvertocatIcon.astro';
66

apps/lookbook/src/components/LookbookHeader.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
import RainbowLine from './RainbowLine.astro';
2+
import RainbowLine from '@spearwolf/astro-rainbow-line';
33
44
import lookbook from '../images/20221122-lookbook-white-fat.svg?url';
55
import twopoint5d from '../images/twopoint5d-logo.svg?url';
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rainbow-line-v0.2.1.js

packages/astro-rainbow-line/README.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# @spearwolf/astro-rainbow-line
2+
3+
An astro wrapper for the [rainbow-line web component](https://github.com/spearwolf/visual-fx-web-components/tree/main/packages/rainbow-line).
4+
5+
> It is currently assumed that the [rainbow-line.js](./rainbow-line-v0.2.1.js) is located under `${import.meta.env.BASE_URL}/js/rainbow-line-v0.2.1.js`.
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "@spearwolf/astro-rainbow-line",
3+
"description": "astro wrapper for the rainbow-line web component",
4+
"version": "1.0.0",
5+
"main": "RainbowLine.astro",
6+
"author": {
7+
"name": "Wolfger Schramm",
8+
"email": "[email protected]",
9+
"url": "https://www.spearwolf.de"
10+
},
11+
"license": "Apache-2.0"
12+
}
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "astro-rainbow-line",
3+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
4+
"root": "packages/astro-rainbow-line",
5+
"sourceRoot": "{projectRoot}",
6+
"projectType": "library",
7+
"tags": []
8+
}

packages/astro-rainbow-line/rainbow-line-v0.2.1.js

+90
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-lock.yaml

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)