-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from techniq/monorepo
Setup monorepo
- Loading branch information
Showing
446 changed files
with
9,975 additions
and
113 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'layerchart': minor | ||
--- | ||
|
||
Setup as monorepo using pnpm workspace |
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 +1,2 @@ | ||
/**/_data/** -linguist-detectable | ||
* text=auto | ||
/**/_data/** -linguist-detectable |
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,31 @@ | ||
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs | ||
|
||
name: Node.js CI | ||
|
||
on: | ||
push: | ||
branches: ['main'] | ||
pull_request: | ||
branches: ['main'] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [18.x, 20.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: pnpm/[email protected] | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: pnpm | ||
- run: pnpm install --frozen-lockfile | ||
- run: pnpm test:unit | ||
env: | ||
CI: true |
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,42 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: {} | ||
jobs: | ||
release: | ||
# prevents this action from running on forks | ||
if: github.repository == 'techniq/layerchart' | ||
permissions: | ||
contents: write # to create release (changesets/action) | ||
pull-requests: write # to create pull request (changesets/action) | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
with: | ||
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits | ||
fetch-depth: 0 | ||
- uses: pnpm/[email protected] | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18.x | ||
cache: pnpm | ||
|
||
- run: pnpm install --frozen-lockfile | ||
|
||
- name: Create Release Pull Request or Publish to npm | ||
id: changesets | ||
uses: changesets/action@v1 | ||
with: | ||
# This expects you to have a script called release which does a build for your packages and calls changeset publish | ||
publish: pnpm changeset:release | ||
version: pnpm changeset:version | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
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,8 +1,10 @@ | ||
.DS_Store | ||
node_modules | ||
/build | ||
/.svelte-kit | ||
/package | ||
node_modules/ | ||
dist/ | ||
tsconfig.tsbuildinfo | ||
coverage/ | ||
.next/ | ||
.idea/ | ||
.svelte-kit/ | ||
.env | ||
/dist | ||
.vercel | ||
|
||
test-* |
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 @@ | ||
engine-strict=true |
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 |
---|---|---|
@@ -1,109 +1,23 @@ | ||
{ | ||
"name": "layerchart", | ||
"description": "Composable Svelte chart components to build a wide range of visualizations", | ||
"name": "layerchart-monorepo", | ||
"version": "0.0.1", | ||
"author": "Sean Lynch <[email protected]>", | ||
"license": "MIT", | ||
"repository": "techniq/layerchart", | ||
"version": "0.25.1", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite dev", | ||
"build": "vite build", | ||
"preview": "vite preview", | ||
"package": "svelte-package", | ||
"prepublishOnly": "svelte-package", | ||
"check": "svelte-check --tsconfig ./tsconfig.json", | ||
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch", | ||
"lint": "prettier --ignore-path .gitignore --check --plugin-search-dir=. .", | ||
"format": "prettier --ignore-path .gitignore --write --plugin-search-dir=. .", | ||
"test:unit": "pnpm -r test:unit", | ||
"build": "rimraf packages/*/dist && pnpm -r build", | ||
"lint": "pnpm -r lint", | ||
"format": "pnpm -r format", | ||
"changeset": "changeset", | ||
"version": "changeset version", | ||
"version-status": "changeset status -v", | ||
"publish": "changeset publish" | ||
"changeset:version": "changeset version", | ||
"changeset:release": "changeset publish", | ||
"up-dep": "pnpm -r up --latest" | ||
}, | ||
"devDependencies": { | ||
"@rollup/plugin-dsv": "^3.0.4", | ||
"@sveltejs/adapter-vercel": "^3.0.3", | ||
"@sveltejs/kit": "^1.27.2", | ||
"@sveltejs/package": "^2.2.2", | ||
"@changesets/cli": "2.26.1", | ||
"@svitejs/changesets-changelog-github-compact": "^1.1.0", | ||
"@tailwindcss/typography": "^0.5.10", | ||
"@types/d3-array": "^3.0.9", | ||
"@types/d3-delaunay": "^6.0.3", | ||
"@types/d3-dsv": "^3.0.5", | ||
"@types/d3-geo": "^3.0.6", | ||
"@types/d3-hierarchy": "^3.1.5", | ||
"@types/d3-interpolate": "^3.0.3", | ||
"@types/d3-interpolate-path": "^2.0.2", | ||
"@types/d3-quadtree": "^3.0.4", | ||
"@types/d3-random": "^3.0.2", | ||
"@types/d3-sankey": "^0.12.3", | ||
"@types/d3-scale": "^4.0.6", | ||
"@types/d3-scale-chromatic": "^3.0.1", | ||
"@types/d3-shape": "^3.1.4", | ||
"@types/lodash-es": "^4.17.10", | ||
"@types/marked": "^6.0.0", | ||
"@types/shapefile": "^0.6.3", | ||
"@types/topojson-client": "^3.1.3", | ||
"autoprefixer": "^10.4.16", | ||
"execa": "^8.0.1", | ||
"marked": "^9.1.3", | ||
"mdsvex": "^0.11.0", | ||
"prettier": "^3.0.3", | ||
"prettier-plugin-svelte": "^3.0.3", | ||
"prism-themes": "^1.9.0", | ||
"rehype-slug": "^6.0.0", | ||
"svelte": "^4.2.2", | ||
"svelte-check": "^3.5.2", | ||
"svelte-json-tree": "^2.2.0", | ||
"svelte-preprocess": "^5.0.4", | ||
"svelte2tsx": "^0.6.23", | ||
"tailwindcss": "^3.3.5", | ||
"tslib": "^2.6.2", | ||
"typescript": "^5.2.2", | ||
"unist-util-visit": "^5.0.0", | ||
"us-atlas": "^3.0.1", | ||
"vite": "^4.5.0" | ||
}, | ||
"type": "module", | ||
"dependencies": { | ||
"@changesets/cli": "^2.26.2", | ||
"@mdi/js": "^7.3.67", | ||
"@types/d3-time": "^3.0.2", | ||
"@vercel/analytics": "^1.1.1", | ||
"d3-array": "^3.2.4", | ||
"d3-delaunay": "^6.0.4", | ||
"d3-dsv": "^3.0.1", | ||
"d3-geo": "^3.1.0", | ||
"d3-hierarchy": "^3.1.2", | ||
"d3-interpolate": "^3.0.1", | ||
"d3-interpolate-path": "^2.3.0", | ||
"d3-quadtree": "^3.0.1", | ||
"d3-random": "^3.0.1", | ||
"d3-sankey": "^0.12.3", | ||
"d3-scale": "^4.0.2", | ||
"d3-scale-chromatic": "^3.0.0", | ||
"d3-shape": "^3.2.0", | ||
"d3-tile": "^1.0.0", | ||
"d3-time": "^3.1.0", | ||
"date-fns": "^2.30.0", | ||
"layercake": "^8.0.2", | ||
"lodash-es": "^4.17.21", | ||
"shapefile": "^0.6.6", | ||
"svelte-ux": "^0.53.8", | ||
"topojson-client": "^3.1.0" | ||
}, | ||
"peerDependencies": { | ||
"svelte": "^3.56.0 || ^4.0.0" | ||
}, | ||
"main": "./dist/index.js", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"svelte": "./dist/index.js" | ||
} | ||
"rimraf": "5.0.0" | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"svelte": "./dist/index.js" | ||
"packageManager": "[email protected]" | ||
} |
Binary file not shown.
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,8 @@ | ||
# Changesets | ||
|
||
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works | ||
with multi-package repos, or single-package repos to help you version and publish your code. You can | ||
find the full documentation for it [in our repository](https://github.com/changesets/changesets) | ||
|
||
We have a quick list of common questions to get you started engaging with this project in | ||
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) |
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,11 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": ["@svitejs/changesets-changelog-github-compact", { "repo": "techniq/layerchart" }], | ||
"commit": false, | ||
"fixed": [], | ||
"linked": [], | ||
"access": "public", | ||
"baseBranch": "master", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [] | ||
} |
File renamed without changes.
File renamed without changes.
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,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2021 Sean Lynch | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
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,41 @@ | ||
# LayerChart | ||
|
||
![](https://img.shields.io/github/license/techniq/layerchart?style=flat) | ||
[![](https://img.shields.io/npm/v/layerchart?style=flat)](https://www.npmjs.com/package/layerchart) | ||
![npm](https://img.shields.io/npm/dw/layerchart?style=flat&color=orange) | ||
|
||
![](https://img.shields.io/github/license/layerchart?style=flat) | ||
[![](https://dcbadge.vercel.app/api/server/697JhMPD3t?style=flat)](https://discord.gg/697JhMPD3t) | ||
|
||
A large collection of composable Svelte chart components to build a wide range of visualizations | ||
|
||
- Cartesian (Bar, Area, Stack, Scatter) | ||
- Radial (Pie, Arc, Sunburst) | ||
- Hierarchy (Pack, Tree, Treemap, Sunburst) | ||
- Graph (Sankey) | ||
- Geo (Choropleth, Spike, Bubble, Point, Globe) | ||
|
||
Interactions | ||
|
||
- Tooltip, Highlights, Pan/Zoom | ||
|
||
SVG | ||
|
||
- Basic (Arc, Circle, Group, Line, Spline, Text) | ||
- Gradients and Patterns | ||
- ClipPath | ||
- Multi-line text | ||
|
||
Others | ||
|
||
- Legends including ColorRamps | ||
|
||
See also [Svelte UX](http://svelte-ux.techniq.dev) for a large collection of components, actions, stores, and utilities to build highly interactive applications. | ||
|
||
## Publishing | ||
|
||
- `npm run changeset` for each changelog worthy change | ||
- `npm run version` to bump `package.json` version based on changesets, materialize changesets into CHANGELOG.md | ||
- Commit as `Version bump to x.y.z` (TODO: automate) | ||
- `npm run publish` to publish version to npm | ||
- `git push --tags` to publish tags to Github |
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.
ed812ab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
layerchart – ./
layerchart-git-main-techniq-team.vercel.app
layerchart-techniq-team.vercel.app
layerchart.com
www.layerchart.com
layerchart.vercel.app