Skip to content

Commit 2d33f12

Browse files
committed
Fix CI/CD Pipelines
1 parent 63f08ae commit 2d33f12

14 files changed

Lines changed: 1317 additions & 118 deletions

File tree

.eslintrc.js

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,22 @@
11
module.exports = {
2-
3-
env: {
4-
browser: true,
5-
es6: true,
6-
node: true
7-
},
8-
extends: "eslint:recommended",
9-
rules: {
10-
11-
"quotes": ["warn", "double"],
12-
"no-var": "error",
13-
"no-alert": "error",
14-
"camelcase": "error",
15-
"prefer-const": "warn",
16-
"prefer-template": "error",
17-
"getter-return": "error",
18-
"no-inner-declarations": "off"
19-
20-
},
21-
parserOptions: {
22-
ecmaVersion: "latest",
23-
sourceType: "module"
24-
25-
}
26-
2+
env: {
3+
browser: true,
4+
es6: true,
5+
node: true,
6+
},
7+
extends: "eslint:recommended",
8+
rules: {
9+
quotes: ["warn", "double"],
10+
"no-var": "error",
11+
"no-alert": "error",
12+
camelcase: "error",
13+
"prefer-const": "warn",
14+
"prefer-template": "error",
15+
"getter-return": "error",
16+
"no-inner-declarations": "off",
17+
},
18+
parserOptions: {
19+
ecmaVersion: "latest",
20+
sourceType: "module",
21+
},
2722
};

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: Build
2-
on:
2+
on:
33
push:
44
branches: [main]
55

6-
jobs:
7-
build:
6+
jobs:
7+
build:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout version
@@ -21,4 +21,4 @@ jobs:
2121
- name: Prettify
2222
run: npm run prettify
2323
- name: Build Inter
24-
run: npm run build
24+
run: npm run build

README.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,33 +13,29 @@
1313
<a href="https://github.com/DenisPower1/inter/blob/main/LICENSE">
1414
<img width="97" src="https://github.com/DenisPower1/inter/blob/main/mitpic.svg">
1515

16-
1716
</a>
1817

1918
</span>
2019
<span>
2120

2221
<a href="https://github.com/DenisPower1/inter/">
2322

24-
<img src="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Cspan+class%3D"pl-corl">https://img.shields.io/github/v/release/DenisPower1/inter.svg"
23+
<img src="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Cspan+class%3D"pl-corl">https://img.shields.io/github/v/release/DenisPower1/inter.svg"
2524
width="100"
2625
>
27-
</a>
28-
29-
26+
</a>
27+
3028
</span>
3129

3230
</div>
3331

3432
<h1 align="center"> <a href="http://interjs.github.io">Interjs</a></h1>
3533

36-
3734
**WARNING**: The v3 is being pushed on the [v3 branch](https://github.com/interjs/inter/tree/v3/core) check it out.
3835

3936
Inter is a Javascript framework designed to build highly interactive front-end web applications.
4037
It's: **simple**, **intuitive** and **powerful**.
4138

42-
4339
# No complex setup
4440

4541
You will not need to do any complex configuration to start working with Inter, just import the
@@ -53,21 +49,21 @@ framework in top of your page in a script tag, and start building even the most
5349

5450
It does not mean that it is less capable, it means that it is easy to learn and cheaper to parse and download.
5551

56-
# You rarely touch in the *DOM*
52+
# You rarely touch in the _DOM_
5753

58-
Almost every dom manipulation in an Inter app are handled by Inter, you must just focus in your application logic, this way your code base will be: **simpler** and **more maintainable**
54+
Almost every dom manipulation in an Inter app are handled by Inter, you must just focus in your application logic, this way your code base will be: **simpler** and **more maintainable**
5955

6056
# Reactivity
6157

62-
*Inter* is super reactive, it means that, when there's a change it just updates the necessary part of the interface.
58+
_Inter_ is super reactive, it means that, when there's a change it just updates the necessary part of the interface.
6359

6460
# Compatibility
6561

66-
*Inter* just supports the modern browsers, it means that no Internet Explorer support.
62+
_Inter_ just supports the modern browsers, it means that no Internet Explorer support.
6763

6864
# License
6965

70-
*Inter* was realesed under the MIT LICENSE.
66+
_Inter_ was realesed under the MIT LICENSE.
7167

7268
# Guide
7369

builder.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
*/
1818

19-
console.log("Building...")
19+
console.log("Building...");
2020

2121
import builderconfig from "./builderconfig.js";
2222
import { writeFileSync, readFileSync, readdirSync } from "node:fs";
@@ -254,4 +254,4 @@ buildTsDeclaration();
254254
build("global");
255255
build("module");
256256

257-
console.log("Inter Built Successfully")
257+
console.log("Inter Built Successfully");

core/renderif/errors.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,15 @@ export function runHasMoreThanOneCondtionalAttributeError(child) {
4949
element which has more than one conditional atribute, it's forbidden.`);
5050
}
5151

52-
export function runNotDefinedIfNotPropWarning(child, _ifNot/*propValue*/, data) {
52+
export function runNotDefinedIfNotPropWarning(
53+
child,
54+
_ifNot /*propValue*/,
55+
data
56+
) {
5357
if (_ifNot.trim().length == 0) {
5458
runInvalidConditionalAttrs("_ifNot");
5559
return;
56-
}
60+
}
5761
ParserWarning(`
5862
5963
The conditional rendering parser found
@@ -70,25 +74,22 @@ export function runNotDefinedIfNotPropWarning(child, _ifNot/*propValue*/, data)
7074
}
7175

7276
function runInvalidConditionalAttrs(attrName) {
73-
7477
ParserWarning(`The conditional rendering parser found an ${attrName} attribute that does not
7578
have a value assigned to it. Assign a value to the ${attrName} attribute.
76-
`)
77-
79+
`);
7880
}
7981

8082
export function runNotDefinedElseIfPropWarning(propValue) {
8183
if (propValue.trim().length == 0) {
82-
runInvalidConditionalAttrs("_elseIf");
83-
return;
84+
runInvalidConditionalAttrs("_elseIf");
85+
return;
8486
}
8587

8688
ParserWarning(`The conditional rendering parser found an element which has the "_elseIf"
8789
conditional property whose the value is: "${propValue}",
8890
but you did not define any conditional property with that name.
8991
9092
`);
91-
9293
}
9394

9495
export function runInvalidElseAttributeError() {
@@ -113,7 +114,7 @@ export function runNotDefinedIfPropWarning(propValue, child, data) {
113114
if (propValue.trim().length == 0) {
114115
runInvalidConditionalAttrs("_if");
115116
return;
116-
}
117+
}
117118
ParserWarning(`
118119
The conditional rendering parser found
119120
an element which has the "_if" attribute and the value

inter.m.d.ts

Lines changed: 38 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1+
/***
2+
* MIT LICENSED BY - Denis Power(Inter creator)
3+
* Typescript declaration file for Inter version 2.2.4
4+
* Version - 1.0.0
5+
* Repo - https://github.com/interjs/inter/types
6+
* GENERATED BY INTER BUILDER
7+
*/
18

2-
/***
3-
* MIT LICENSED BY - Denis Power(Inter creator)
4-
* Typescript declaration file for Inter version 2.2.4
5-
* Version - 1.0.0
6-
* Repo - https://github.com/interjs/inter/types
7-
* GENERATED BY INTER BUILDER
8-
*/
9-
10-
interface backendInterface {
9+
interface backendInterface {
1110
new (): backendInstance;
1211
}
1312

@@ -42,8 +41,8 @@ interface ajaxOptions {
4241
};
4342
security?: {
4443
username: string;
45-
password: string
46-
}
44+
password: string;
45+
};
4746
body?: any;
4847
}
4948

@@ -68,9 +67,9 @@ interface ajaxResponse {
6867
export declare var Backend: backendInterface;
6968
type refValueType = string | number | null | void;
7069
type refMethods<T> = {
71-
setRefs?: {
72-
[ref in keyof T]?: refValueType
73-
}
70+
setRefs?: {
71+
[ref in keyof T]?: refValueType;
72+
};
7473
observe(
7574
ref: string,
7675
value: refValueType,
@@ -89,7 +88,7 @@ export declare function Ref<T extends object>(
8988
type refValueType = boolean;
9089
type renderIfMethods<T> = {
9190
setConds: {
92-
[prop in keyof T]?: refValueType
91+
[prop in keyof T]?: refValueType;
9392
};
9493
observe(ref: keyof T, value: refValueType): boolean;
9594
};
@@ -160,31 +159,36 @@ export declare function renderList<T extends eachTypes>(
160159
renderListOption: renderListOptionsInterface<T>
161160
): returnReactorType<T>;
162161

163-
type HTMLTags = keyof HTMLElementTagNameMap;
164-
type textTypes = string | number | null | void
162+
type HTMLTags = keyof HTMLElementTagNameMap;
163+
type textTypes = string | number | null | void;
165164
interface templateOptionsInterface {
166-
tag: HTMLTags| ((this: void) => HTMLTags),
167-
text?: textTypes | ((this: void) => textTypes),
168-
renderIf?: boolean,
169-
events?: {
170-
[event in keyof GlobalEventHandlers]?: (this: Document, event: Event) => void;
171-
}
172-
attrs?: object,
173-
styles?: {
174-
[style in keyof CSSStyleDeclaration]?: CSSStyleDeclaration[style]
175-
}
176-
children?: templateOptionsInterface[]
165+
tag: HTMLTags | ((this: void) => HTMLTags);
166+
text?: textTypes | ((this: void) => textTypes);
167+
renderIf?: boolean;
168+
events?: {
169+
[event in keyof GlobalEventHandlers]?: (
170+
this: Document,
171+
event: Event
172+
) => void;
173+
};
174+
attrs?: object;
175+
styles?: {
176+
[style in keyof CSSStyleDeclaration]?: CSSStyleDeclaration[style];
177+
};
178+
children?: templateOptionsInterface[];
177179
}
178180

179181
export interface templateReturn {
180-
element: templateOptionsInterface
182+
element: templateOptionsInterface;
181183
}
182184

183-
184-
export declare function template(options: templateOptionsInterface): templateReturn;type attrType = string | number | null;
185-
type attrs <T> = T[keyof T];
186-
interface toAttrsMethods<T>{
187-
setAttrs?: T[keyof T]
185+
export declare function template(
186+
options: templateOptionsInterface
187+
): templateReturn;
188+
type attrType = string | number | null;
189+
type attrs<T> = T[keyof T];
190+
interface toAttrsMethods<T> {
191+
setAttrs?: T[keyof T];
188192
observe?(attr: string, value: attrType): boolean;
189193
}
190194

@@ -198,6 +202,3 @@ export declare function toAttrs<T extends object>(
198202
): {
199203
[prop in keyof T]: toAttrsMethods<T> & T[prop];
200204
};
201-
202-
203-

package-lock.json

Lines changed: 1173 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,32 @@
1-
{"name":"inter","version":"2.2.4","type":"module","description":"The javascript framework to build highly interactive front-end web applications.","author":"Denis Power","license":"MIT","jsdelivr":"inter.min.js","repository":{"type":"git","url":"git+https://github.com/interjs/inter.git"},"homepage":"https://interjs.github.io","bugs":{"url":"https://github.com/interjs/inter/issues"},"main":"inter.js","keywords":["interjs","inter"],"devDependencies":{"eslint":"^8.56.0","prettier":"^2.8.3","typescript":"^5.8.2"},"scripts":{"lint":"eslint .","prettify":"prettier --write","build":"node builder"}}
1+
{
2+
"name": "inter",
3+
"version": "2.2.4",
4+
"type": "module",
5+
"description": "The javascript framework to build highly interactive front-end web applications.",
6+
"author": "Denis Power",
7+
"license": "MIT",
8+
"jsdelivr": "inter.min.js",
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/interjs/inter.git"
12+
},
13+
"homepage": "https://interjs.github.io",
14+
"bugs": {
15+
"url": "https://github.com/interjs/inter/issues"
16+
},
17+
"main": "inter.js",
18+
"keywords": [
19+
"interjs",
20+
"inter"
21+
],
22+
"devDependencies": {
23+
"eslint": "^8.56.0",
24+
"prettier": "^2.8.3",
25+
"typescript": "^5.8.2"
26+
},
27+
"scripts": {
28+
"lint": "eslint ./",
29+
"prettify": "prettier --write ./",
30+
"build": "node builder"
31+
}
32+
}

prettierrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{}
1+
{}

types/ajax.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ interface ajaxOptions {
3333
};
3434
security?: {
3535
username: string;
36-
password: string
37-
}
36+
password: string;
37+
};
3838
body?: any;
3939
}
4040

0 commit comments

Comments
 (0)