Skip to content

Commit

Permalink
Feat model rollup (#88)
Browse files Browse the repository at this point in the history
* feat: init

* feat: container

* feat: viewable

* feat: add item-meta

* feat: add list model

* feat: init utils

* feat: items-dimensions

* feat: add base-dimensions

* feat: add container

* feat: init item-meta

* feat: add ItemMeta

* feat: init utils

* feat: item-dimensions

* feat: init base dimensions

* feat: init base dimensions

* feat: init models

* feat: add Dimension

* feat: add Dimension

* feat: update Masonry

* feat: add types

* feat: add dimensions model

* feat: init strategies

* feat: add strategies

* feat: init state

* feat: add state

* feat: group dimensions

* feat: list dimensions

* feat: add masonry dimensions

* feat: build list

* feat: masonry build work

* feat: build group

* feat: add react-playground

* feat: add storybook configuration

* feat: support List.stories.tsx

* feat: update

* feat: update

* feat: update

* feat: update

* feat: add list-dimensions testing

* feat: update test

* feat: add masonry dimensions test

* feat: add test

* feat: add test

* feat: remove psedo

* feat: update

* feat: merge group

* feat: update react

* feat: masonry list

* feat: update

* feat: update

* feat: update

* feat: update

* feat: update

* feat: upadte

* feat: update

* feat: update

* feat: update

* feat: update

* feat: update

* feat: update

* feat: update

* feat: update

* feat: update

* feat: update

* feat: update

* feat: update

* feat: works

* feat: works

* feat: add list

* feat: update
  • Loading branch information
ryuever authored Dec 28, 2024
1 parent cef7109 commit 296787c
Show file tree
Hide file tree
Showing 416 changed files with 35,216 additions and 17,464 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ jobs:
run: pnpm run build

# https://dev.to/jmcdo29/automating-your-package-deployment-in-an-nx-monorepo-with-changeset-4em8
- name: Modify Workspace File
run: sed "s/packages\//dist\/packages\//g" pnpm-workspace.yaml > pnpm-new.yaml && mv pnpm-new.yaml pnpm-workspace.yaml
# - name: Modify Workspace File
# run: sed "s/packages\//dist\/packages\//g" pnpm-workspace.yaml > pnpm-new.yaml && mv pnpm-new.yaml pnpm-workspace.yaml
- name: Modify ui workspace
run: sed "s/ui\//dist\/ui\//g" pnpm-workspace.yaml > pnpm-new.yaml && mv pnpm-new.yaml pnpm-workspace.yaml

Expand Down
29 changes: 29 additions & 0 deletions core/base-dimensions/.swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"jsc": {
"target": "es2017",
"parser": {
"syntax": "typescript",
"decorators": true,
"dynamicImport": true
},
"transform": {
"decoratorMetadata": true,
"legacyDecorator": true
},
"keepClassNames": true,
"externalHelpers": true,
"loose": true
},
"module": {
"type": "es6"
},
"sourceMaps": true,
"exclude": [
"jest.config.ts",
".*\\.spec.tsx?$",
".*\\.test.tsx?$",
"./src/jest-setup.ts$",
"./**/jest-setup.ts$",
".*.js$"
]
}
11 changes: 11 additions & 0 deletions core/base-dimensions/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# base-dimensions

This library was generated with [Nx](https://nx.dev).

## Building

Run `nx build base-dimensions` to build the library.

## Running unit tests

Run `nx test base-dimensions` to execute the unit tests via [Vitest](https://vitest.dev/).
22 changes: 22 additions & 0 deletions core/base-dimensions/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
const baseConfig = require('../../eslint.config.js');

module.exports = [
...baseConfig,
{
files: ['**/*.json'],
rules: {
'@nx/dependency-checks': [
'error',
{
ignoredFiles: [
'{projectRoot}/eslint.config.{js,cjs,mjs}',
'{projectRoot}/vite.config.{js,ts,mjs,mts}',
],
},
],
},
languageOptions: {
parser: require('jsonc-eslint-parser'),
},
},
];
13 changes: 13 additions & 0 deletions core/base-dimensions/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "@infinite-list/base-dimensions",
"version": "0.0.1",
"dependencies": {
"@infinite-list/container": "workspace:*",
"@infinite-list/item-meta": "workspace:*",
"@infinite-list/utils": "workspace:*",
"@infinite-list/viewable": "workspace:*",
"@x-oasis/prefix-interval-tree": "^0.2.4"
},
"main": "./index.cjs",
"module": "./index.js"
}
22 changes: 22 additions & 0 deletions core/base-dimensions/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "base-dimensions",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "core/base-dimensions/src",
"projectType": "library",
"release": {
"version": {
"generatorOptions": {
"packageRoot": "dist/{projectRoot}",
"currentVersionResolver": "git-tag"
}
}
},
"tags": [],
"targets": {
"nx-release-publish": {
"options": {
"packageRoot": "dist/{projectRoot}"
}
}
}
}
18 changes: 18 additions & 0 deletions core/base-dimensions/rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const { withNx } = require('@nx/rollup/with-nx');

module.exports = withNx(
{
main: './src/index.ts',
outputPath: '../../dist/core/base-dimensions',
tsConfig: '../../tsconfig.json',
// tsConfig: './tsconfig.lib.json',
compiler: 'swc',
format: ['cjs', 'esm'],
assets: [{ input: '.', output: '.', glob: '*.md' }],
},
{
// Provide additional rollup configuration here. See: https://rollupjs.org/configuration-options
// e.g.
// output: { sourcemap: true },
}
);
Loading

0 comments on commit 296787c

Please sign in to comment.