biblia-de-jerusalen 0.1.1

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.
@@ -0,0 +1,6 @@
1
+ ## Describe your changes
2
+
3
+ * Issue number/link: #
4
+
5
+ ## Checklist before requesting a review
6
+ - [ ] I have reviewed the changes locally (run)
@@ -0,0 +1,31 @@
1
+ name: Build project
2
+
3
+ on:
4
+ pull_request:
5
+ branches: [main]
6
+ types: [opened, reopened, closed]
7
+ push:
8
+ branches: [feat/*, feature/*, fix/*, hotfix/*]
9
+
10
+ permissions:
11
+ contents: write
12
+ packages: write
13
+
14
+ jobs:
15
+ build-ci-node:
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - name: Checkout repository 👋🏼
19
+ uses: actions/checkout@v4
20
+
21
+ - name: Setup Node.js
22
+ uses: actions/setup-node@v4
23
+ with:
24
+ node-version: 20
25
+ registry-url: 'https://registry.npmjs.org/'
26
+
27
+ - name: Install dependencies 🔨
28
+ run: npm ci
29
+
30
+ - name: Build package 📦
31
+ run: npm run build
@@ -0,0 +1,47 @@
1
+ name: Publish NPM Package
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ permissions:
9
+ contents: write
10
+ packages: write
11
+
12
+ jobs:
13
+ build-and-publish:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - name: Checkout repository 👋🏼
17
+ uses: actions/checkout@v4
18
+
19
+ - name: Setup Node.js
20
+ uses: actions/setup-node@v4
21
+ with:
22
+ node-version: 20
23
+ registry-url: 'https://registry.npmjs.org/'
24
+
25
+ - name: Install dependencies 🔨
26
+ run: npm ci
27
+
28
+ - name: Update patch version
29
+ run: npm version patch --no-git-tag-version
30
+
31
+ - name: Commit version bump ⚙️
32
+ run: |
33
+ git config --global user.name 'github-actions'
34
+ git config --global user.email 'github-actions@github.com'
35
+ git add package.json package-lock.json
36
+ git commit -m "chore: bump patch version"
37
+ git push
38
+ env:
39
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40
+
41
+ - name: Build package 📦
42
+ run: npm run build
43
+
44
+ - name: Publish package 🚀
45
+ run: npm publish --access public
46
+ env:
47
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/.nvmrc ADDED
@@ -0,0 +1 @@
1
+ lts/iron
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Miguel Martínez
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/Makefile ADDED
@@ -0,0 +1,17 @@
1
+ current-dir := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
2
+ SHELL = /bin/sh
3
+
4
+ help: ## show make targets
5
+ @awk 'BEGIN {FS = ":.*?## "} /[a-zA-Z_-]+:.*?## / {sub("\\\\n",sprintf("\n%22c"," "), $$2);printf " \033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
6
+
7
+ install: ## install deps
8
+ @npm i
9
+
10
+ run: ## build package
11
+ @npm run build
12
+
13
+ build: ## build to dist folder
14
+ @npm run build
15
+
16
+ test: ## execute unit tests
17
+ @npm run test:unit
package/README.md ADDED
@@ -0,0 +1,27 @@
1
+ <h1 align="center">
2
+ <a href="https://github.com/miguelms95/biblia-de-jerusalen--core">
3
+ Biblia de Jerusalén 📖
4
+ </a>
5
+ </h1>
6
+
7
+ <p align="center">
8
+ Librearía con la Biblia de Jerusalén, código abierto!<br><br>
9
+ Consulta los libros de la Biblia - versión de la Biblia de Jerusalén e integra en tu página.<br>
10
+ Supports Node v18+, Modern Browsers (desktop and mobile).
11
+ </p>
12
+
13
+ <p align="center">
14
+ <a href="LICENSE">
15
+ <img alt="License" src="https://img.shields.io/badge/license-MIT-blue?color=blue&style=flat"></a>
16
+ <a href="https://www.npmjs.com/package/biblia-de-jerusalen/v/latest" target="_blank" rel="noopener noreferrer"><img alt="latest" src="https://img.shields.io/npm/v/biblia-de-jerusalen/latest?style=flat&logo=npm"></a>
17
+
18
+ </p>
19
+
20
+ ## Library content
21
+
22
+ The functions to retrieve the information:
23
+
24
+ | **Prayer** | **Function** | **🇪🇸** |
25
+ |---------------|---------------------|--|
26
+ | getBooks | `getBooks()` | ✅ |
27
+ | getAllBible | `getAllBible()` | ✅ |
@@ -0,0 +1,2 @@
1
+ export declare function getBooks(): any[];
2
+ export declare function getAllBible(): any[];
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function e(){return["bookname1","bookname2"]}function o(){return[""]}exports.getAllBible=o;exports.getBooks=e;
2
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":["../src/bible.ts"],"sourcesContent":["// src/bible.ts\n\nexport function getBooks(): any[] {\n return [\"bookname1\", \"bookname2\"];\n}\n\nexport function getAllBible(): any[] {\n return [\"\"];\n\n}\n\n"],"names":["getBooks","getAllBible"],"mappings":"gFAEO,SAASA,GAAkB,CACvB,MAAA,CAAC,YAAa,WAAW,CACpC,CAEO,SAASC,GAAqB,CACjC,MAAO,CAAC,EAAE,CAEd"}
@@ -0,0 +1 @@
1
+ export { getBooks, getAllBible, } from "./bible.ts";
@@ -0,0 +1,11 @@
1
+ function o() {
2
+ return ["bookname1", "bookname2"];
3
+ }
4
+ function e() {
5
+ return [""];
6
+ }
7
+ export {
8
+ e as getAllBible,
9
+ o as getBooks
10
+ };
11
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":["../src/bible.ts"],"sourcesContent":["// src/bible.ts\n\nexport function getBooks(): any[] {\n return [\"bookname1\", \"bookname2\"];\n}\n\nexport function getAllBible(): any[] {\n return [\"\"];\n\n}\n\n"],"names":["getBooks","getAllBible"],"mappings":"AAEO,SAASA,IAAkB;AACvB,SAAA,CAAC,aAAa,WAAW;AACpC;AAEO,SAASC,IAAqB;AACjC,SAAO,CAAC,EAAE;AAEd;"}
@@ -0,0 +1,2 @@
1
+ (function(e,n){typeof exports=="object"&&typeof module<"u"?n(exports):typeof define=="function"&&define.amd?define(["exports"],n):(e=typeof globalThis<"u"?globalThis:e||self,n(e["Biblia de Jerusalén"]={}))})(this,function(e){"use strict";function n(){return["bookname1","bookname2"]}function o(){return[""]}e.getAllBible=o,e.getBooks=n,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
2
+ //# sourceMappingURL=index.umd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.umd.js","sources":["../src/bible.ts"],"sourcesContent":["// src/bible.ts\n\nexport function getBooks(): any[] {\n return [\"bookname1\", \"bookname2\"];\n}\n\nexport function getAllBible(): any[] {\n return [\"\"];\n\n}\n\n"],"names":["getBooks","getAllBible"],"mappings":"8OAEO,SAASA,GAAkB,CACvB,MAAA,CAAC,YAAa,WAAW,CACpC,CAEO,SAASC,GAAqB,CACjC,MAAO,CAAC,EAAE,CAEd"}
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "biblia-de-jerusalen",
3
+ "description": "Librería Typescript con la Biblia de Jerusalén",
4
+ "keywords": [
5
+ "Bible",
6
+ "Biblia",
7
+ "Biblia de Jerusalén",
8
+ "prayer",
9
+ "catholic",
10
+ "church",
11
+ "christian",
12
+ "Católica"
13
+ ],
14
+ "version": "0.1.1",
15
+ "main": "dist/index.cjs.js",
16
+ "module": "dist/index.esm.js",
17
+ "types": "dist/index.d.ts",
18
+ "type": "module",
19
+ "scripts": {
20
+ "build": "tsc && vite build"
21
+ },
22
+ "devDependencies": {
23
+ "typescript": "^5.7.3",
24
+ "vite": "^6.0.5",
25
+ "vite-plugin-dts": "^2.0.0"
26
+ },
27
+ "optionalDependencies": {
28
+ "@rollup/rollup-linux-x64-gnu": "4.9.5"
29
+ },
30
+ "license": "MIT"
31
+ }
package/src/bible.ts ADDED
@@ -0,0 +1,11 @@
1
+ // src/bible.ts
2
+
3
+ export function getBooks(): any[] {
4
+ return ["bookname1", "bookname2"];
5
+ }
6
+
7
+ export function getAllBible(): any[] {
8
+ return [""];
9
+
10
+ }
11
+
package/src/index.ts ADDED
@@ -0,0 +1,5 @@
1
+ // src/index.ts
2
+ export {
3
+ getBooks,
4
+ getAllBible,
5
+ } from "./bible.ts";
@@ -0,0 +1 @@
1
+ /// <reference types="vite/client" />
package/tsconfig.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "compilerOptions": {
3
+
4
+ "outDir": "dist",
5
+ "module": "ESNext",
6
+ "declaration": true,
7
+ "sourceMap": true,
8
+
9
+ "target": "ES2020",
10
+ "useDefineForClassFields": true,
11
+ "lib": ["ES2020", "DOM", "DOM.Iterable"],
12
+ "skipLibCheck": true,
13
+
14
+ /* Bundler mode */
15
+ "moduleResolution": "bundler",
16
+ "allowImportingTsExtensions": true,
17
+ "isolatedModules": true,
18
+ "moduleDetection": "force",
19
+ "noEmit": true,
20
+
21
+ /* Linting */
22
+ "strict": true,
23
+ "noUnusedLocals": true,
24
+ "noUnusedParameters": true,
25
+ "noFallthroughCasesInSwitch": true,
26
+ },
27
+ "include": ["src"]
28
+ }
package/vite.config.ts ADDED
@@ -0,0 +1,35 @@
1
+ import {defineConfig} from "vite";
2
+ import dts from "vite-plugin-dts";
3
+
4
+ export default defineConfig({
5
+ build: {
6
+ sourcemap: true,
7
+ lib: {
8
+ entry: "src/index.ts",
9
+ name: "Biblia de Jerusalén",
10
+ fileName: "biblia-de-jerusalen",
11
+ },
12
+ rollupOptions: {
13
+ output: [
14
+ {
15
+ format: "es",
16
+ entryFileNames: "index.esm.js",
17
+ dir: "dist",
18
+ },
19
+ {
20
+ format: "cjs",
21
+ entryFileNames: "index.cjs.js",
22
+ dir: "dist",
23
+ },
24
+ {
25
+ format: "umd",
26
+ entryFileNames: "index.umd.js",
27
+ dir: "dist",
28
+ name: "Biblia de Jerusalén", // Global variable for browsers
29
+ sourcemap: true,
30
+ },
31
+ ],
32
+ },
33
+ },
34
+ plugins: [dts()],
35
+ });