Skip to content

Commit aba472e

Browse files
bhi10Hiten Bhayani
andauthored
feat: first release (#1)
* feat: first release * feat: change gitignore * feat: trigger * feat: trigger * feat: update package name * feat: update package and structure --------- Co-authored-by: Hiten Bhayani <h.bhayani@qogni.com>
1 parent 8cf1d68 commit aba472e

6 files changed

Lines changed: 69 additions & 17 deletions

File tree

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@ jobs:
55
- image: cimg/node:lts
66
steps:
77
- checkout
8-
- run: yarn install --frozen-lockfile --non-interactive
8+
- run: npm i
99
- run:
1010
name: Deploy
1111
command: |
1212
export NPM_TOKEN=${SNAPSHOT_NPM_TOKEN}
1313
npm config set ${NPM_PACKAGE_SCOPE}:registry ${NPM_SNAPSHOT_REPO}
14-
yarn build
14+
npm run build
1515
npx semantic-release
1616
release:
1717
docker:
1818
- image: cimg/node:lts
1919
steps:
2020
- checkout
21-
- run: yarn install --frozen-lockfile --non-interactive
21+
- run: npm i
2222
- run: echo "Running release job"
23-
- run: yarn build
23+
- run: npm run build
2424
- run:
2525
name: Deploy
2626
command: npx semantic-release

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
node_modules
2+
dist
23
/layouts/
34
/polyfillLoaders/
45
/polyfills/

.tsbuildinfo

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

package-lock.json

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 55 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@markai/mark-virtualizer",
2+
"name": "@markai/virtualizer",
33
"version": "0.0.0-development",
44
"description": "Viewport-based virtualization (virtual scrolling) for Lit",
55
"author": "Google LLC",
@@ -9,8 +9,8 @@
99
"type": "git",
1010
"url": "https://github.com/marksolutions/mark-virtualizer"
1111
},
12-
"main": "lit-virtualizer.js",
13-
"module": "lit-virtualizer.js",
12+
"main": "dist/lit-virtualizer.js",
13+
"module": "dist/lit-virtualizer.js",
1414
"type": "module",
1515
"scripts": {
1616
"build": "tsc"
@@ -20,11 +20,61 @@
2020
"@web/dev-server-esbuild": "^0.3.0",
2121
"semantic-release": "^19.0.5",
2222
"tachometer": "^0.7.0",
23+
"tslib": "^2.8.1",
2324
"typescript": "^5.7.3"
2425
},
2526
"dependencies": {
26-
"lit": "^3.2.0",
27-
"tslib": "^2.0.3"
27+
"lit": "^3.2.0"
28+
},
29+
"exports": {
30+
".": {
31+
"types": "./dist/lit-virtualizer.d.ts",
32+
"default": "./dist/lit-virtualizer.js"
33+
},
34+
"./events.js": {
35+
"types": "./dist/events.d.ts",
36+
"default": "./dist/events.js"
37+
},
38+
"./layouts/flexWrap.js": {
39+
"types": "./dist/layouts/flexWrap.d.ts",
40+
"default": "./dist/layouts/flexWrap.js"
41+
},
42+
"./layouts/flow.js": {
43+
"types": "./dist/layouts/flow.d.ts",
44+
"default": "./dist/layouts/flow.js"
45+
},
46+
"./layouts/grid.js": {
47+
"types": "./dist/layouts/grid.d.ts",
48+
"default": "./dist/layouts/grid.js"
49+
},
50+
"./layouts/masonry.js": {
51+
"types": "./dist/layouts/masonry.d.ts",
52+
"default": "./dist/layouts/masonry.js"
53+
},
54+
"./LitVirtualizer.js": {
55+
"types": "./dist/LitVirtualizer.d.ts",
56+
"default": "./dist/LitVirtualizer.js"
57+
},
58+
"./polyfillLoaders/ResizeObserver.js": {
59+
"types": "./dist/polyfillLoaders/ResizeObserver.d.ts",
60+
"default": "./dist/polyfillLoaders/ResizeObserver.js"
61+
},
62+
"./polyfills/resize-observer-polyfill/ResizeObserver.js": {
63+
"types": "./dist/polyfills/resize-observer-polyfill/ResizeObserver.d.ts",
64+
"default": "./dist/polyfills/resize-observer-polyfill/ResizeObserver.js"
65+
},
66+
"./support/method-interception.js": {
67+
"types": "./dist/support/method-interception.d.ts",
68+
"default": "./dist/support/method-interception.js"
69+
},
70+
"./support/resize-observer-errors.js": {
71+
"types": "./dist/support/resize-observer-errors.d.ts",
72+
"default": "./dist/support/resize-observer-errors.js"
73+
},
74+
"./virtualize.js": {
75+
"types": "./dist/virtualize.d.ts",
76+
"default": "./dist/virtualize.js"
77+
}
2878
},
2979
"publishConfig": {
3080
"access": "public"

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"declarationMap": true,
99
"sourceMap": true,
1010
"inlineSources": true,
11-
"outDir": "./",
11+
"outDir": "./dist",
1212
"rootDir": "./src",
1313
"strict": true,
1414
"noUnusedLocals": true,
@@ -31,5 +31,5 @@
3131
]
3232
},
3333
"include": ["src/**/*.ts"],
34-
"exclude": ["*.d.ts", "**/*.d.ts"]
34+
"exclude": ["demo/**/*.ts", "*.d.ts", "**/*.d.ts"]
3535
}

0 commit comments

Comments
 (0)