smooth-loader 1.2.4 → 1.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/npm-publish.yml +30 -0
- package/CHANGELOG.md +8 -0
- package/README.md +2 -2
- package/package.json +2 -2
- package/.forgejo/workflows/npm-publish.yml +0 -30
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
name: Publish package to NPM
|
|
2
|
+
|
|
3
|
+
# Good article: https://medium.com/@codewithwaheed/publish-your-first-package-using-npm-and-github-actions-e453ca9f9fd2
|
|
4
|
+
|
|
5
|
+
on:
|
|
6
|
+
push:
|
|
7
|
+
branches: [master]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
publish:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
name: Publish to NPM registry
|
|
13
|
+
|
|
14
|
+
steps:
|
|
15
|
+
- name: Checkout
|
|
16
|
+
uses: actions/checkout@v6
|
|
17
|
+
|
|
18
|
+
- name: Setup Node.js
|
|
19
|
+
uses: actions/setup-node@v7
|
|
20
|
+
with:
|
|
21
|
+
node-version: "20"
|
|
22
|
+
registry-url: "https://registry.npmjs.org/"
|
|
23
|
+
|
|
24
|
+
- name: Install Deps
|
|
25
|
+
run: npm ci
|
|
26
|
+
|
|
27
|
+
- name: Publish Library
|
|
28
|
+
run: npm publish
|
|
29
|
+
env:
|
|
30
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-

|
|
2
2
|
|
|
3
3
|
Smooth loader allows you smoothly lazy load images and background images. Lazy Loading defers the loading of an image that is not needed on the page immediately. An image, not visible to the user when the page loads, is loaded later when the user scrolls and the image actually becomes visible. If the user never scrolls, an image that is not visible to the user never gets loaded.
|
|
4
4
|
|
|
5
5
|
This package is a MUST-HAVE for every website containing multiple images on the page. It's surely the best lazy loading package on NPM that you can configure to your own needs.
|
|
6
6
|
|
|
7
|
-
## Follow the [official documentation](https://smooth-loader.
|
|
7
|
+
## Follow the [official documentation](https://smooth-loader.serhiicho.com) for all the details
|
|
8
8
|
|
|
9
9
|
## Contribute
|
|
10
10
|
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "smooth-loader",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
4
4
|
"description": "This package allows you to lazy load your images using IntersectionObserver technology. It supports loading background images as well as the regular images with img tag.",
|
|
5
5
|
"main": "lib/js/index.js",
|
|
6
6
|
"types": "lib/js",
|
|
7
7
|
"author": "Serhii Cho",
|
|
8
8
|
"license": "MIT",
|
|
9
|
-
"homepage": "https://smooth-loader.
|
|
9
|
+
"homepage": "https://smooth-loader.serhiicho.com",
|
|
10
10
|
"devDependencies": {
|
|
11
11
|
"typescript": "^5.9.3"
|
|
12
12
|
},
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
name: Publish package to NPM
|
|
2
|
-
enable-email-notifications: true
|
|
3
|
-
|
|
4
|
-
# Good article: https://medium.com/@codewithwaheed/publish-your-first-package-using-npm-and-github-actions-e453ca9f9fd2
|
|
5
|
-
|
|
6
|
-
on:
|
|
7
|
-
push:
|
|
8
|
-
branches: [master]
|
|
9
|
-
|
|
10
|
-
jobs:
|
|
11
|
-
publish:
|
|
12
|
-
runs-on: burn
|
|
13
|
-
name: Publish to NPM registry
|
|
14
|
-
steps:
|
|
15
|
-
- name: Checkout
|
|
16
|
-
uses: actions/checkout@v4
|
|
17
|
-
|
|
18
|
-
- name: Setup Node.js
|
|
19
|
-
uses: https://github.com/actions/setup-node@v2
|
|
20
|
-
with:
|
|
21
|
-
node-version: '20'
|
|
22
|
-
registry-url: 'https://registry.npmjs.org/'
|
|
23
|
-
|
|
24
|
-
- name: Install Deps
|
|
25
|
-
run: npm install
|
|
26
|
-
|
|
27
|
-
- name: Publish Library
|
|
28
|
-
run: npm publish
|
|
29
|
-
env:
|
|
30
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|