-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad56989
commit 6f2ac8b
Showing
17 changed files
with
69 additions
and
46 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
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,9 @@ | ||
import { defineBuildConfig } from 'unbuild' | ||
|
||
export default defineBuildConfig({ | ||
entries: [ | ||
'./src/index', | ||
], | ||
declaration: true, | ||
clean: 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 |
---|---|---|
|
@@ -2,24 +2,45 @@ | |
"name": "@unlazy/core", | ||
"type": "module", | ||
"version": "0.1.0", | ||
"private": true, | ||
"packageManager": "[email protected]", | ||
"description": "Universal lazy loading library for placeholder images leveraging native browser APIs", | ||
"author": "Johann Schopplich <[email protected]>", | ||
"license": "MIT", | ||
"homepage": "https://github.com/johannschopplich/unlazy#readme", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/johannschopplich/unlazy.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/johannschopplich/unlazy/issues" | ||
}, | ||
"keywords": [ | ||
"async", | ||
"image", | ||
"intersection", | ||
"lazy", | ||
"loading", | ||
"lozad", | ||
"native", | ||
"observer", | ||
"responsive" | ||
], | ||
"sideEffects": false, | ||
"exports": { | ||
".": { | ||
"types": "./src/index.ts", | ||
"import": "./src/index.ts" | ||
}, | ||
"./blurhash": { | ||
"types": "./src/blurhash/index.ts", | ||
"import": "./src/blurhash/index.ts" | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.mjs" | ||
}, | ||
"./*": "./src/*" | ||
"./*": "./*" | ||
}, | ||
"types": "./dist/index.d.ts", | ||
"scripts": { | ||
"dev": "unbuild --stub", | ||
"build": "unbuild", | ||
"test": "vitest", | ||
"test:run": "vitest run" | ||
}, | ||
"devDependencies": { | ||
"dependencies": { | ||
"fast-blurhash": "^1.1.2" | ||
} | ||
} |
8 changes: 4 additions & 4 deletions
8
packages/core/src/blurhash/index.ts → packages/core/src/blurhash.ts
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 +1,3 @@ | ||
export { lazyLoad, autoSizes, loadImage } from './lazyLoad' | ||
export * from './lazyLoad' | ||
export * from './blurhash' | ||
export * from './types' |
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
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
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,5 +1,6 @@ | ||
{ | ||
"name": "unlazy", | ||
"type": "module", | ||
"version": "0.1.0", | ||
"packageManager": "[email protected]", | ||
"description": "Universal lazy loading library for placeholder images leveraging native browser APIs", | ||
|
@@ -28,19 +29,11 @@ | |
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"require": "./dist/index.cjs", | ||
"import": "./dist/index.mjs" | ||
}, | ||
"./blurhash": { | ||
"types": "./dist/blurhash.d.ts", | ||
"require": "./dist/blurhash.cjs", | ||
"import": "./dist/blurhash.mjs" | ||
} | ||
}, | ||
"main": "./dist/index.cjs", | ||
"module": "./dist/index.mjs", | ||
"unpkg": "./dist/browser/unlazy.iife.js", | ||
"jsdelivr": "./dist/browser/unlazy.iife.js", | ||
"unpkg": "./dist/unlazy.iife.js", | ||
"jsdelivr": "./dist/unlazy.iife.js", | ||
"types": "./dist/index.d.ts", | ||
"files": [ | ||
"dist" | ||
|
@@ -52,8 +45,10 @@ | |
"peerDependencies": { | ||
"fast-blurhash": "^1.1.2" | ||
}, | ||
"dependencies": { | ||
"@unlazy/core": "workspace:*" | ||
}, | ||
"devDependencies": { | ||
"@unlazy/core": "workspace:*", | ||
"fast-blurhash": "^1.1.2" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
export { autoSizes, lazyLoad, loadImage } from '@unlazy/core' | ||
export * from '@unlazy/core' |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.