https://github.com/gravio-la/tree-shape-rdf-query
a library to allow structured queries over RDF Graphs, resulting in a deterministic tree shaped serialization
https://github.com/gravio-la/tree-shape-rdf-query
Last synced: 4 months ago
JSON representation
a library to allow structured queries over RDF Graphs, resulting in a deterministic tree shaped serialization
- Host: GitHub
- URL: https://github.com/gravio-la/tree-shape-rdf-query
- Owner: gravio-la
- Created: 2023-01-12T05:27:51.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-01-12T05:27:53.000Z (over 2 years ago)
- Last Synced: 2025-01-14T11:04:20.421Z (5 months ago)
- Language: TypeScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Rollup Typescript library template
A simple TypeScript library template. Quick to start dev, build a Pure TypeScript or React Component library.
Please use pnpm do this.
```sh
pnpm i
```# Usage
### Package
Bundle your source code via tsc, rollup.
```
npm run package
```### Dev
Start dev mode by Vite.
```
npm run dev
```### Deploy
Deploy example to GitHub Pages.
```
npm run deploy
npm run publish
```# Additional
## ESBuild & React
If you want to bundle React JSX with rollup. Add additional packages.
```
pnpm i -D rollup-plugin-esbuild
```And, un-comment this in `rollup.config.ts`.
```ts
esbuild({
include: /\.[jt]sx?$/,
exclude: /node_modules/,
sourceMap: false,
minify: process.env.NODE_ENV === 'production',
target: 'es2017',
jsxFactory: 'React.createElement',
jsxFragment: 'React.Fragment',
define: {
__VERSION__: '"x.y.z"',
},
tsconfig: './src/tsconfig.json',
loaders: {
'.json': 'json',
'.js': 'jsx',
},
}),
```## PostCSS & CSS Module
Enable default now.
Nest selector is supported too.
To build css extract a file not bundle into js, un-comment this.
```ts
css({
extract: true,
})
```