ziko-providers 0.0.0
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/LICENSE +21 -0
- package/README.md +24 -0
- package/package.json +34 -0
- package/rollup.config.js +69 -0
- package/src/direction/index.js +1 -0
- package/src/index.js +5 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 ZAKARIA ELALAOUI
|
|
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 NONINFRINGEMENT. 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/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
> [!NOTE]
|
|
2
|
+
> This project is part of the [ZikoJS](https://github.com/zakarialaoui10/ziko.js) ecosystem.
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## List of providers
|
|
6
|
+
|
|
7
|
+
|Provider|Description|
|
|
8
|
+
|`DirectionProvider`||
|
|
9
|
+
|`ThemeProvider`||
|
|
10
|
+
|
|
11
|
+
<!-- ## Install
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
## Features
|
|
16
|
+
|
|
17
|
+
# ⭐️ Show your support
|
|
18
|
+
|
|
19
|
+
If you appreciate the library, kindly demonstrate your support by giving it a star!<br>
|
|
20
|
+
|
|
21
|
+
## Financial support -->
|
|
22
|
+
|
|
23
|
+
# Licence
|
|
24
|
+
This projet is licensed under the terms of MIT License
|
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ziko-providers",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"exports":{
|
|
8
|
+
"./*": {
|
|
9
|
+
"import" : "./src/*/index.js"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"scripts": {
|
|
13
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
14
|
+
"dev": "cross-env NODE_ENV=development rollup --config rollup.config.js",
|
|
15
|
+
"watch": "cross-env NODE_ENV=development rollup --config rollup.config.js -w",
|
|
16
|
+
"build": "cross-env NODE_ENV=production rollup --config rollup.config.js"
|
|
17
|
+
},
|
|
18
|
+
"author": "zakaria elalaoui",
|
|
19
|
+
"keywords": [
|
|
20
|
+
"zikojs",
|
|
21
|
+
"zikojs-addons"
|
|
22
|
+
],
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@rollup/plugin-commonjs": "^28.0.0",
|
|
26
|
+
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
27
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
28
|
+
"cross-env": "^7.0.3",
|
|
29
|
+
"rollup": "^4.24.0"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"ziko": "^0.61.2"
|
|
33
|
+
}
|
|
34
|
+
}
|
package/rollup.config.js
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import resolve from "@rollup/plugin-node-resolve";
|
|
2
|
+
import commonjs from '@rollup/plugin-commonjs';
|
|
3
|
+
import terser from "@rollup/plugin-terser";
|
|
4
|
+
|
|
5
|
+
const Addon_name = "ziko-provider";
|
|
6
|
+
const NamedExport = "ZikoProvider"
|
|
7
|
+
const Author = "zakaria elalaoui";
|
|
8
|
+
|
|
9
|
+
const banner = `
|
|
10
|
+
/*
|
|
11
|
+
Project: ${Addon_name}
|
|
12
|
+
Author: ${Author}
|
|
13
|
+
Date : ${new Date()}
|
|
14
|
+
*/
|
|
15
|
+
`;
|
|
16
|
+
const isProduction = process.env.NODE_ENV === "production";
|
|
17
|
+
|
|
18
|
+
const output = [
|
|
19
|
+
{
|
|
20
|
+
file: `dist/${Addon_name}.mjs`,
|
|
21
|
+
format: "es",
|
|
22
|
+
banner,
|
|
23
|
+
exports: "named",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
file: `dist/${Addon_name}.js`,
|
|
27
|
+
format: "umd",
|
|
28
|
+
name: NamedExport,
|
|
29
|
+
banner,
|
|
30
|
+
exports: "named",
|
|
31
|
+
globals: {
|
|
32
|
+
ziko: "Ziko",
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
];
|
|
36
|
+
isProduction &&
|
|
37
|
+
output.push(
|
|
38
|
+
{
|
|
39
|
+
file: `dist/${Addon_name}.min.mjs`,
|
|
40
|
+
format: "es",
|
|
41
|
+
banner,
|
|
42
|
+
exports: "named",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
file: `dist/${Addon_name}.min.js`,
|
|
46
|
+
format: "umd",
|
|
47
|
+
name: NamedExport,
|
|
48
|
+
banner,
|
|
49
|
+
exports: "named",
|
|
50
|
+
plugins: [
|
|
51
|
+
terser({
|
|
52
|
+
output: {
|
|
53
|
+
comments: (node, { type, value }) =>
|
|
54
|
+
type === "comment2" && value.includes("Author"),
|
|
55
|
+
},
|
|
56
|
+
}),
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
);
|
|
60
|
+
|
|
61
|
+
export default {
|
|
62
|
+
input: "src/index.js",
|
|
63
|
+
output,
|
|
64
|
+
external: ["ziko"],
|
|
65
|
+
plugins: [
|
|
66
|
+
resolve(),
|
|
67
|
+
commonjs(),
|
|
68
|
+
],
|
|
69
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// import { ZikoProvider}
|