create-nohejs 1.0.6 → 1.0.8
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/CODE_OF_CONDUCT.md +134 -134
- package/LICENSE +20 -20
- package/lib/chat/index.js +5 -1
- package/lib/chat/index.js.map +1 -0
- package/lib/index.js +131 -73
- package/lib/index.js.map +1 -0
- package/package.json +3 -6
- package/tsconfig.json +16 -23
- package/lib/gitignore.d.ts +0 -2
- package/lib/gitignore.js +0 -133
- package/lib/template/CODE_OF_CONDUCT.md +0 -134
- package/lib/template/LICENSE +0 -20
- package/lib/template/app/client/main.lua +0 -1
- package/lib/template/app/fxmanifest.js +0 -9
- package/lib/template/app/server/main.lua +0 -1
- package/lib/template/jsconfig.json +0 -22
- package/lib/template/nohe.config.js +0 -5
- package/lib/template/package.json +0 -14
- package/lib/template/public/favicon.ico +0 -0
- package/lib/template/public/index.html +0 -15
- package/lib/template/store/Main.js +0 -6
- package/lib/template/view/App.vue +0 -113
- package/lib/template/view/assets/nohe.png +0 -0
- package/lib/template/view/assets/vue.svg +0 -1
- package/lib/template/view/components/HelloWorld.vue +0 -32
- package/lib/template/view/main.js +0 -4
package/CODE_OF_CONDUCT.md
CHANGED
|
@@ -1,134 +1,134 @@
|
|
|
1
|
-
|
|
2
|
-
# Contributor Covenant Code of Conduct
|
|
3
|
-
|
|
4
|
-
## Our Pledge
|
|
5
|
-
|
|
6
|
-
We as members, contributors, and leaders pledge to make participation in our
|
|
7
|
-
community a harassment-free experience for everyone, regardless of age, body
|
|
8
|
-
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
|
9
|
-
identity and expression, level of experience, education, socio-economic status,
|
|
10
|
-
nationality, personal appearance, race, caste, color, religion, or sexual
|
|
11
|
-
identity and orientation.
|
|
12
|
-
|
|
13
|
-
We pledge to act and interact in ways that contribute to an open, welcoming,
|
|
14
|
-
diverse, inclusive, and healthy community.
|
|
15
|
-
|
|
16
|
-
## Our Standards
|
|
17
|
-
|
|
18
|
-
Examples of behavior that contributes to a positive environment for our
|
|
19
|
-
community include:
|
|
20
|
-
|
|
21
|
-
* Demonstrating empathy and kindness toward other people
|
|
22
|
-
* Being respectful of differing opinions, viewpoints, and experiences
|
|
23
|
-
* Giving and gracefully accepting constructive feedback
|
|
24
|
-
* Accepting responsibility and apologizing to those affected by our mistakes,
|
|
25
|
-
and learning from the experience
|
|
26
|
-
* Focusing on what is best not just for us as individuals, but for the overall
|
|
27
|
-
community
|
|
28
|
-
|
|
29
|
-
Examples of unacceptable behavior include:
|
|
30
|
-
|
|
31
|
-
* The use of sexualized language or imagery, and sexual attention or advances of
|
|
32
|
-
any kind
|
|
33
|
-
* Trolling, insulting or derogatory comments, and personal or political attacks
|
|
34
|
-
* Public or private harassment
|
|
35
|
-
* Publishing others' private information, such as a physical or email address,
|
|
36
|
-
without their explicit permission
|
|
37
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
|
38
|
-
professional setting
|
|
39
|
-
|
|
40
|
-
## Enforcement Responsibilities
|
|
41
|
-
|
|
42
|
-
Community leaders are responsible for clarifying and enforcing our standards of
|
|
43
|
-
acceptable behavior and will take appropriate and fair corrective action in
|
|
44
|
-
response to any behavior that they deem inappropriate, threatening, offensive,
|
|
45
|
-
or harmful.
|
|
46
|
-
|
|
47
|
-
Community leaders have the right and responsibility to remove, edit, or reject
|
|
48
|
-
comments, commits, code, wiki edits, issues, and other contributions that are
|
|
49
|
-
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
|
50
|
-
decisions when appropriate.
|
|
51
|
-
|
|
52
|
-
## Scope
|
|
53
|
-
|
|
54
|
-
This Code of Conduct applies within all community spaces, and also applies when
|
|
55
|
-
an individual is officially representing the community in public spaces.
|
|
56
|
-
Examples of representing our community include using an official email address,
|
|
57
|
-
posting via an official social media account, or acting as an appointed
|
|
58
|
-
representative at an online or offline event.
|
|
59
|
-
|
|
60
|
-
## Enforcement
|
|
61
|
-
|
|
62
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
63
|
-
reported to the community leaders responsible for enforcement at
|
|
64
|
-
franciscor00@outlook.es.
|
|
65
|
-
All complaints will be reviewed and investigated promptly and fairly.
|
|
66
|
-
|
|
67
|
-
All community leaders are obligated to respect the privacy and security of the
|
|
68
|
-
reporter of any incident.
|
|
69
|
-
|
|
70
|
-
## Enforcement Guidelines
|
|
71
|
-
|
|
72
|
-
Community leaders will follow these Community Impact Guidelines in determining
|
|
73
|
-
the consequences for any action they deem in violation of this Code of Conduct:
|
|
74
|
-
|
|
75
|
-
### 1. Correction
|
|
76
|
-
|
|
77
|
-
**Community Impact**: Use of inappropriate language or other behavior deemed
|
|
78
|
-
unprofessional or unwelcome in the community.
|
|
79
|
-
|
|
80
|
-
**Consequence**: A private, written warning from community leaders, providing
|
|
81
|
-
clarity around the nature of the violation and an explanation of why the
|
|
82
|
-
behavior was inappropriate. A public apology may be requested.
|
|
83
|
-
|
|
84
|
-
### 2. Warning
|
|
85
|
-
|
|
86
|
-
**Community Impact**: A violation through a single incident or series of
|
|
87
|
-
actions.
|
|
88
|
-
|
|
89
|
-
**Consequence**: A warning with consequences for continued behavior. No
|
|
90
|
-
interaction with the people involved, including unsolicited interaction with
|
|
91
|
-
those enforcing the Code of Conduct, for a specified period of time. This
|
|
92
|
-
includes avoiding interactions in community spaces as well as external channels
|
|
93
|
-
like social media. Violating these terms may lead to a temporary or permanent
|
|
94
|
-
ban.
|
|
95
|
-
|
|
96
|
-
### 3. Temporary Ban
|
|
97
|
-
|
|
98
|
-
**Community Impact**: A serious violation of community standards, including
|
|
99
|
-
sustained inappropriate behavior.
|
|
100
|
-
|
|
101
|
-
**Consequence**: A temporary ban from any sort of interaction or public
|
|
102
|
-
communication with the community for a specified period of time. No public or
|
|
103
|
-
private interaction with the people involved, including unsolicited interaction
|
|
104
|
-
with those enforcing the Code of Conduct, is allowed during this period.
|
|
105
|
-
Violating these terms may lead to a permanent ban.
|
|
106
|
-
|
|
107
|
-
### 4. Permanent Ban
|
|
108
|
-
|
|
109
|
-
**Community Impact**: Demonstrating a pattern of violation of community
|
|
110
|
-
standards, including sustained inappropriate behavior, harassment of an
|
|
111
|
-
individual, or aggression toward or disparagement of classes of individuals.
|
|
112
|
-
|
|
113
|
-
**Consequence**: A permanent ban from any sort of public interaction within the
|
|
114
|
-
community.
|
|
115
|
-
|
|
116
|
-
## Attribution
|
|
117
|
-
|
|
118
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
|
119
|
-
version 2.1, available at
|
|
120
|
-
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
|
|
121
|
-
|
|
122
|
-
Community Impact Guidelines were inspired by
|
|
123
|
-
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
|
|
124
|
-
|
|
125
|
-
For answers to common questions about this code of conduct, see the FAQ at
|
|
126
|
-
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
|
|
127
|
-
[https://www.contributor-covenant.org/translations][translations].
|
|
128
|
-
|
|
129
|
-
[homepage]: https://www.contributor-covenant.org
|
|
130
|
-
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
|
|
131
|
-
[Mozilla CoC]: https://github.com/mozilla/diversity
|
|
132
|
-
[FAQ]: https://www.contributor-covenant.org/faq
|
|
133
|
-
[translations]: https://www.contributor-covenant.org/translations
|
|
134
|
-
|
|
1
|
+
|
|
2
|
+
# Contributor Covenant Code of Conduct
|
|
3
|
+
|
|
4
|
+
## Our Pledge
|
|
5
|
+
|
|
6
|
+
We as members, contributors, and leaders pledge to make participation in our
|
|
7
|
+
community a harassment-free experience for everyone, regardless of age, body
|
|
8
|
+
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
|
9
|
+
identity and expression, level of experience, education, socio-economic status,
|
|
10
|
+
nationality, personal appearance, race, caste, color, religion, or sexual
|
|
11
|
+
identity and orientation.
|
|
12
|
+
|
|
13
|
+
We pledge to act and interact in ways that contribute to an open, welcoming,
|
|
14
|
+
diverse, inclusive, and healthy community.
|
|
15
|
+
|
|
16
|
+
## Our Standards
|
|
17
|
+
|
|
18
|
+
Examples of behavior that contributes to a positive environment for our
|
|
19
|
+
community include:
|
|
20
|
+
|
|
21
|
+
* Demonstrating empathy and kindness toward other people
|
|
22
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
|
23
|
+
* Giving and gracefully accepting constructive feedback
|
|
24
|
+
* Accepting responsibility and apologizing to those affected by our mistakes,
|
|
25
|
+
and learning from the experience
|
|
26
|
+
* Focusing on what is best not just for us as individuals, but for the overall
|
|
27
|
+
community
|
|
28
|
+
|
|
29
|
+
Examples of unacceptable behavior include:
|
|
30
|
+
|
|
31
|
+
* The use of sexualized language or imagery, and sexual attention or advances of
|
|
32
|
+
any kind
|
|
33
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
|
34
|
+
* Public or private harassment
|
|
35
|
+
* Publishing others' private information, such as a physical or email address,
|
|
36
|
+
without their explicit permission
|
|
37
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
|
38
|
+
professional setting
|
|
39
|
+
|
|
40
|
+
## Enforcement Responsibilities
|
|
41
|
+
|
|
42
|
+
Community leaders are responsible for clarifying and enforcing our standards of
|
|
43
|
+
acceptable behavior and will take appropriate and fair corrective action in
|
|
44
|
+
response to any behavior that they deem inappropriate, threatening, offensive,
|
|
45
|
+
or harmful.
|
|
46
|
+
|
|
47
|
+
Community leaders have the right and responsibility to remove, edit, or reject
|
|
48
|
+
comments, commits, code, wiki edits, issues, and other contributions that are
|
|
49
|
+
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
|
50
|
+
decisions when appropriate.
|
|
51
|
+
|
|
52
|
+
## Scope
|
|
53
|
+
|
|
54
|
+
This Code of Conduct applies within all community spaces, and also applies when
|
|
55
|
+
an individual is officially representing the community in public spaces.
|
|
56
|
+
Examples of representing our community include using an official email address,
|
|
57
|
+
posting via an official social media account, or acting as an appointed
|
|
58
|
+
representative at an online or offline event.
|
|
59
|
+
|
|
60
|
+
## Enforcement
|
|
61
|
+
|
|
62
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
63
|
+
reported to the community leaders responsible for enforcement at
|
|
64
|
+
franciscor00@outlook.es.
|
|
65
|
+
All complaints will be reviewed and investigated promptly and fairly.
|
|
66
|
+
|
|
67
|
+
All community leaders are obligated to respect the privacy and security of the
|
|
68
|
+
reporter of any incident.
|
|
69
|
+
|
|
70
|
+
## Enforcement Guidelines
|
|
71
|
+
|
|
72
|
+
Community leaders will follow these Community Impact Guidelines in determining
|
|
73
|
+
the consequences for any action they deem in violation of this Code of Conduct:
|
|
74
|
+
|
|
75
|
+
### 1. Correction
|
|
76
|
+
|
|
77
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed
|
|
78
|
+
unprofessional or unwelcome in the community.
|
|
79
|
+
|
|
80
|
+
**Consequence**: A private, written warning from community leaders, providing
|
|
81
|
+
clarity around the nature of the violation and an explanation of why the
|
|
82
|
+
behavior was inappropriate. A public apology may be requested.
|
|
83
|
+
|
|
84
|
+
### 2. Warning
|
|
85
|
+
|
|
86
|
+
**Community Impact**: A violation through a single incident or series of
|
|
87
|
+
actions.
|
|
88
|
+
|
|
89
|
+
**Consequence**: A warning with consequences for continued behavior. No
|
|
90
|
+
interaction with the people involved, including unsolicited interaction with
|
|
91
|
+
those enforcing the Code of Conduct, for a specified period of time. This
|
|
92
|
+
includes avoiding interactions in community spaces as well as external channels
|
|
93
|
+
like social media. Violating these terms may lead to a temporary or permanent
|
|
94
|
+
ban.
|
|
95
|
+
|
|
96
|
+
### 3. Temporary Ban
|
|
97
|
+
|
|
98
|
+
**Community Impact**: A serious violation of community standards, including
|
|
99
|
+
sustained inappropriate behavior.
|
|
100
|
+
|
|
101
|
+
**Consequence**: A temporary ban from any sort of interaction or public
|
|
102
|
+
communication with the community for a specified period of time. No public or
|
|
103
|
+
private interaction with the people involved, including unsolicited interaction
|
|
104
|
+
with those enforcing the Code of Conduct, is allowed during this period.
|
|
105
|
+
Violating these terms may lead to a permanent ban.
|
|
106
|
+
|
|
107
|
+
### 4. Permanent Ban
|
|
108
|
+
|
|
109
|
+
**Community Impact**: Demonstrating a pattern of violation of community
|
|
110
|
+
standards, including sustained inappropriate behavior, harassment of an
|
|
111
|
+
individual, or aggression toward or disparagement of classes of individuals.
|
|
112
|
+
|
|
113
|
+
**Consequence**: A permanent ban from any sort of public interaction within the
|
|
114
|
+
community.
|
|
115
|
+
|
|
116
|
+
## Attribution
|
|
117
|
+
|
|
118
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
|
119
|
+
version 2.1, available at
|
|
120
|
+
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
|
|
121
|
+
|
|
122
|
+
Community Impact Guidelines were inspired by
|
|
123
|
+
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
|
|
124
|
+
|
|
125
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
|
126
|
+
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
|
|
127
|
+
[https://www.contributor-covenant.org/translations][translations].
|
|
128
|
+
|
|
129
|
+
[homepage]: https://www.contributor-covenant.org
|
|
130
|
+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
|
|
131
|
+
[Mozilla CoC]: https://github.com/mozilla/diversity
|
|
132
|
+
[FAQ]: https://www.contributor-covenant.org/faq
|
|
133
|
+
[translations]: https://www.contributor-covenant.org/translations
|
|
134
|
+
|
package/LICENSE
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
Copyright (c) 2024 Francisco Rivero (CQDEV)
|
|
3
|
-
|
|
4
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
6
|
-
in the Software without restriction, including without limitation the rights
|
|
7
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
9
|
-
furnished to do so, subject to the following conditions:
|
|
10
|
-
|
|
11
|
-
The above copyright notice and this permission notice shall be included in all
|
|
12
|
-
copies or substantial portions of the Software.
|
|
13
|
-
|
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
|
-
SOFTWARE.
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
Copyright (c) 2024 Francisco Rivero (CQDEV)
|
|
3
|
+
|
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
6
|
+
in the Software without restriction, including without limitation the rights
|
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
9
|
+
furnished to do so, subject to the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
|
+
SOFTWARE.
|
package/lib/chat/index.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.info = void 0;
|
|
1
4
|
const colours = {
|
|
2
5
|
reset: "\x1b[0m",
|
|
3
6
|
bright: "\x1b[1m",
|
|
@@ -44,4 +47,5 @@ const info = (...args) => {
|
|
|
44
47
|
}
|
|
45
48
|
console.log(txt, '\x1b[0m');
|
|
46
49
|
};
|
|
47
|
-
|
|
50
|
+
exports.info = info;
|
|
51
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/chat/index.ts"],"names":[],"mappings":";;;AAAA,MAAM,OAAO,GAAG;IACZ,KAAK,EAAE,SAAS;IAChB,MAAM,EAAE,SAAS;IACjB,GAAG,EAAE,SAAS;IACd,UAAU,EAAE,SAAS;IACrB,KAAK,EAAE,SAAS;IAChB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,SAAS;IAEjB,EAAE,EAAE;QACA,KAAK,EAAE,UAAU;QACjB,GAAG,EAAE,UAAU;QACf,KAAK,EAAE,UAAU;QACjB,MAAM,EAAE,UAAU;QAClB,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,UAAU;QACnB,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,UAAU,EAAE,WAAW;QAChC,GAAG,EAAE,SAAS;KACjB;IACD,EAAE,EAAE;QACA,KAAK,EAAE,UAAU;QACjB,GAAG,EAAE,UAAU;QACf,KAAK,EAAE,UAAU;QACjB,MAAM,EAAE,UAAU;QAClB,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,UAAU;QACnB,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,UAAU;KACtB;CACJ,CAAA;AACD,MAAM,OAAO,GAAG,CAAC,MAAa,EAAE,SAAa,EAAE,EAAE;IAC7C,OAAO,MAAM,CAAC,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAAC,EAAE,aAAa,EAAE,EAAE;QAC7D,OAAO,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;IACjE,CAAC,CAAC,CAAA;AACN,CAAC,CAAA;AAED,MAAM,IAAI,GAAG,CAAC,GAAG,IAAQ,EAAE,EAAE;IACzB,IAAI,GAAG,GAAG,EAAE,CAAA;IACZ,KAAI,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAClC,GAAG,GAAG,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,SAAS,CAAA;IAC3D,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,GAAG,EAAC,SAAS,CAAC,CAAA;AAC9B,CAAC,CAAA;AAGG,oBAAI"}
|
package/lib/index.js
CHANGED
|
@@ -1,86 +1,144 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var data = {};
|
|
11
|
-
const Init = async () => {
|
|
12
|
-
let args = process.argv.slice(2);
|
|
13
|
-
if (!args[0]) {
|
|
14
|
-
info(`[ {{cyan}}NOHE{{end}} ] Write a name "npm init nohejs Name"`);
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
root = process.cwd() + '/' + args[0];
|
|
18
|
-
var dir = await createDirectory(root);
|
|
19
|
-
if (!dir) {
|
|
20
|
-
info(`[ {{cyan}}NOHE{{end}} ] There is already a directory with that name`);
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
data = {
|
|
24
|
-
name: args[0]
|
|
25
|
-
};
|
|
26
|
-
const paths = fileURLToPath(import.meta.url);
|
|
27
|
-
const a = path.dirname(paths);
|
|
28
|
-
const ruta = path.join(a, '.');
|
|
29
|
-
await Folder(ruta + '/template', root);
|
|
30
|
-
var render = ejs.render(gitignore, {});
|
|
31
|
-
fs.writeFile(root + '/.gitignore', render, err => {
|
|
32
|
-
if (err)
|
|
33
|
-
throw err;
|
|
2
|
+
"use strict";
|
|
3
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
4
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
5
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
6
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
7
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
8
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
9
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
34
10
|
});
|
|
35
|
-
try {
|
|
36
|
-
await execa({ shell: true, stdio: 'inherit' }) `cd ${args[0]} && npm install nohejs nohecli vue`;
|
|
37
|
-
info(`[ {{cyan}}info{{end}} ] Completed Installation`);
|
|
38
|
-
info(`[ {{cyan}}info{{end}} ] cd ${args[0]} and npm run dev`);
|
|
39
|
-
}
|
|
40
|
-
catch (error) {
|
|
41
|
-
info(`[ {{red}}ERROR{{end}} ] npm install: ${error}`);
|
|
42
|
-
}
|
|
43
11
|
};
|
|
44
|
-
|
|
12
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
13
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14
|
+
};
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
const inquirer_1 = __importDefault(require("inquirer"));
|
|
17
|
+
const fs_1 = __importDefault(require("fs"));
|
|
18
|
+
const path_1 = __importDefault(require("path"));
|
|
19
|
+
const Init = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
20
|
+
console.clear();
|
|
21
|
+
console.log(" ⚡ Welcome To NoheJS !");
|
|
22
|
+
console.log();
|
|
23
|
+
const name = yield inquirer_1.default.prompt([
|
|
24
|
+
{
|
|
25
|
+
type: 'input',
|
|
26
|
+
name: 'n',
|
|
27
|
+
message: 'Project name',
|
|
28
|
+
default: 'nohe-project'
|
|
29
|
+
}
|
|
30
|
+
]);
|
|
31
|
+
const framework = yield Framework();
|
|
32
|
+
console.clear();
|
|
33
|
+
console.log("🚀 Project Information:");
|
|
34
|
+
console.log();
|
|
35
|
+
console.log("📦 Project name: ", name.n);
|
|
36
|
+
console.log("🛠️ Framework: ", framework.f);
|
|
37
|
+
console.log();
|
|
38
|
+
console.log(" Creating project...");
|
|
39
|
+
yield CreateProject(name.n);
|
|
40
|
+
yield CreateFramework(name.n, framework.f);
|
|
41
|
+
yield CreatePackage(name.n, framework.f);
|
|
42
|
+
console.clear();
|
|
43
|
+
console.log();
|
|
44
|
+
console.log("🚀 Project created successfully!");
|
|
45
|
+
console.log();
|
|
46
|
+
console.log("👉 To get started:");
|
|
47
|
+
console.log();
|
|
48
|
+
console.log("cd", name.n);
|
|
49
|
+
console.log("npm install");
|
|
50
|
+
console.log("npm run dev");
|
|
51
|
+
console.log();
|
|
52
|
+
console.log("Happy coding!");
|
|
53
|
+
});
|
|
54
|
+
function Framework() {
|
|
45
55
|
return new Promise((resolve, reject) => {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
await createDirectory(output + '/' + file.name);
|
|
53
|
-
await Folder(dir + '/' + file.name, output + '/' + file.name);
|
|
54
|
-
}
|
|
55
|
-
if (file.isFile()) {
|
|
56
|
-
fs.readFile(dir + '/' + file.name, (_err, _data) => {
|
|
57
|
-
var render;
|
|
58
|
-
if (file.name !== "index.html") {
|
|
59
|
-
render = ejs.render(_data.toString(), data);
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
render = _data.toString();
|
|
63
|
-
}
|
|
64
|
-
fs.writeFile(output + '/' + file.name, render, err => {
|
|
65
|
-
if (err)
|
|
66
|
-
throw err;
|
|
67
|
-
});
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
resolve();
|
|
56
|
+
inquirer_1.default.prompt([
|
|
57
|
+
{
|
|
58
|
+
type: 'list',
|
|
59
|
+
name: 'f',
|
|
60
|
+
message: 'Select a framework',
|
|
61
|
+
choices: ['Vanilla', 'Vue3', 'Vue2', 'React']
|
|
72
62
|
}
|
|
63
|
+
]).then(answers => {
|
|
64
|
+
resolve(answers);
|
|
73
65
|
});
|
|
74
66
|
});
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
return new Promise((resolve) => {
|
|
78
|
-
|
|
67
|
+
}
|
|
68
|
+
function CreateProject(name) {
|
|
69
|
+
return new Promise((resolve, reject) => {
|
|
70
|
+
const { exec } = require('child_process');
|
|
71
|
+
let cmd = `npx degit cq9dev/create-nohe#templateBase ${name}`;
|
|
72
|
+
exec(cmd, (err, stdout, stderr) => {
|
|
79
73
|
if (err) {
|
|
80
|
-
|
|
74
|
+
console.error(err);
|
|
75
|
+
return;
|
|
81
76
|
}
|
|
82
77
|
resolve(true);
|
|
83
78
|
});
|
|
84
79
|
});
|
|
85
|
-
}
|
|
80
|
+
}
|
|
81
|
+
function CreateFramework(name, framework) {
|
|
82
|
+
return new Promise((resolve, reject) => {
|
|
83
|
+
const { exec } = require('child_process');
|
|
84
|
+
let cmd = `npx degit cq9dev/create-nohe#template${framework} ${name} --force`;
|
|
85
|
+
exec(cmd, (err, stdout, stderr) => {
|
|
86
|
+
if (err) {
|
|
87
|
+
console.error(err);
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
resolve(true);
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
function CreatePackage(name, framework) {
|
|
95
|
+
let dependencies = [
|
|
96
|
+
`"@nohejs/cli": "latest"`,
|
|
97
|
+
`"@nohejs/core": "latest"`
|
|
98
|
+
];
|
|
99
|
+
let devDependencies = [];
|
|
100
|
+
if (framework == "Vue3") {
|
|
101
|
+
dependencies.push(`"@vitejs/plugin-vue": "^2.3.1"`);
|
|
102
|
+
dependencies.push(`"vue": "^3.5.13"`);
|
|
103
|
+
dependencies.push(`"pinia": "^2.3.0"`);
|
|
104
|
+
dependencies.push(`"vue-router": "^4.5.0"`);
|
|
105
|
+
}
|
|
106
|
+
if (framework == "Vue2") {
|
|
107
|
+
dependencies.push(`"@vitejs/plugin-vue2": "^2.3.1"`);
|
|
108
|
+
dependencies.push(`"vue": "^3.5.13"`);
|
|
109
|
+
dependencies.push(`"pinia": "^2.3.0"`);
|
|
110
|
+
dependencies.push(`"vue-router": "^4.5.0"`);
|
|
111
|
+
}
|
|
112
|
+
if (framework == "React") {
|
|
113
|
+
dependencies.push(`"react": "18"`);
|
|
114
|
+
dependencies.push(`"react-dom": "18"`);
|
|
115
|
+
devDependencies.push(`"@farmfe/plugin-react": "^1.2.6"`);
|
|
116
|
+
devDependencies.push(`"@types/react": "^19.0.8"`);
|
|
117
|
+
devDependencies.push(`"@types/react-dom": "^19.0.3"`);
|
|
118
|
+
devDependencies.push(`"react-refresh": "^0.16.0"`);
|
|
119
|
+
}
|
|
120
|
+
const file = `{
|
|
121
|
+
"name": "${name}",
|
|
122
|
+
"version": "1.0.0",
|
|
123
|
+
"description": "",
|
|
124
|
+
"type": "module",
|
|
125
|
+
"scripts": {
|
|
126
|
+
"dev": "node nohe start",
|
|
127
|
+
"build": "node nohe build",
|
|
128
|
+
"clean": "node nohe clean",
|
|
129
|
+
"config": "node nohe config"
|
|
130
|
+
},
|
|
131
|
+
"author": "",
|
|
132
|
+
"license": "ISC",
|
|
133
|
+
${devDependencies.length > 0 ? `"devDependencies": {\n\t\t${devDependencies.join(',\n\t\t')}\n\t},` : ''}
|
|
134
|
+
"dependencies": {
|
|
135
|
+
${dependencies.join(',\n\t\t')}
|
|
136
|
+
}
|
|
137
|
+
}`;
|
|
138
|
+
fs_1.default.writeFile(path_1.default.join(name, 'package.json'), file, err => {
|
|
139
|
+
if (err)
|
|
140
|
+
throw err;
|
|
141
|
+
});
|
|
142
|
+
}
|
|
86
143
|
Init();
|
|
144
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-nohejs",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"@cq9dev/create-nohe": "lib/index.js"
|
|
8
8
|
},
|
|
9
|
-
"type": "module",
|
|
10
9
|
"scripts": {
|
|
11
10
|
"build": "tsc"
|
|
12
11
|
},
|
|
@@ -14,15 +13,13 @@
|
|
|
14
13
|
"author": "CQDEV",
|
|
15
14
|
"license": "MIT",
|
|
16
15
|
"devDependencies": {
|
|
17
|
-
"@types/ejs": "^3.1.5",
|
|
18
|
-
"@types/execa": "^2.0.0",
|
|
19
16
|
"ts-node": "^10.9.2",
|
|
20
17
|
"typescript": "^5.4.5"
|
|
21
18
|
},
|
|
22
19
|
"dependencies": {
|
|
23
|
-
"
|
|
24
|
-
"execa": "^9.1.0",
|
|
20
|
+
"degit": "^2.8.4",
|
|
25
21
|
"fs": "^0.0.1-security",
|
|
22
|
+
"inquirer": "^12.3.2",
|
|
26
23
|
"path": "^0.12.7"
|
|
27
24
|
}
|
|
28
25
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,30 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"target": "
|
|
4
|
-
"module": "
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"noUnusedParameters": true,
|
|
8
|
-
"isolatedModules": true,
|
|
3
|
+
"target": "ES6",
|
|
4
|
+
"module": "commonjs",
|
|
5
|
+
"outDir": "./lib",
|
|
6
|
+
"strict": true,
|
|
9
7
|
"esModuleInterop": true,
|
|
10
|
-
"strictNullChecks": true,
|
|
11
|
-
"allowSyntheticDefaultImports": true,
|
|
12
|
-
"forceConsistentCasingInFileNames": true,
|
|
13
|
-
"strictPropertyInitialization": true,
|
|
14
|
-
"experimentalDecorators": true,
|
|
15
|
-
"noImplicitAny": true,
|
|
16
|
-
"strictBindCallApply": true,
|
|
17
|
-
"strictFunctionTypes": true,
|
|
18
|
-
"noImplicitThis": true,
|
|
19
8
|
"skipLibCheck": true,
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
9
|
+
"forceConsistentCasingInFileNames": true,
|
|
10
|
+
"rootDir": "./src",
|
|
11
|
+
"baseUrl": "./",
|
|
12
|
+
"resolveJsonModule": true,
|
|
13
|
+
"sourceMap": true,
|
|
23
14
|
"declaration": true,
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
15
|
+
"noImplicitAny": false,
|
|
16
|
+
"noImplicitReturns": true,
|
|
17
|
+
"noImplicitThis": true,
|
|
18
|
+
"strictNullChecks": true,
|
|
19
|
+
"allowSyntheticDefaultImports": true
|
|
28
20
|
},
|
|
29
|
-
"exclude": ["
|
|
21
|
+
"exclude": ["node_modules", "lib"],
|
|
22
|
+
"include": ["src"]
|
|
30
23
|
}
|
package/lib/gitignore.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: "# Logs\nlogs\n*.log\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\nlerna-debug.log*\n.pnpm-debug.log*\n\n# Diagnostic reports (https://nodejs.org/api/report.html)\nreport.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json\n\n# Runtime data\npids\n*.pid\n*.seed\n*.pid.lock\n\n# Directory for instrumented libs generated by jscoverage/JSCover\nlib-cov\n\n# Coverage directory used by tools like istanbul\ncoverage\n*.lcov\n\n# nyc test coverage\n.nyc_output\n\n# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)\n.grunt\n\n# Bower dependency directory (https://bower.io/)\nbower_components\n\n# node-waf configuration\n.lock-wscript\n\n# Compiled binary addons (https://nodejs.org/api/addons.html)\nbuild/Release\n\n# Dependency directories\nnode_modules/\njspm_packages/\n\n# Snowpack dependency directory (https://snowpack.dev/)\nweb_modules/\n\n# TypeScript cache\n*.tsbuildinfo\n\n# Optional npm cache directory\n.npm\n\n# Optional eslint cache\n.eslintcache\n\n# Optional stylelint cache\n.stylelintcache\n\n# Microbundle cache\n.rpt2_cache/\n.rts2_cache_cjs/\n.rts2_cache_es/\n.rts2_cache_umd/\n\n# Optional REPL history\n.node_repl_history\n\n# Output of 'npm pack'\n*.tgz\n\n# Yarn Integrity file\n.yarn-integrity\n\n# dotenv environment variable files\n.env\n.env.development.local\n.env.test.local\n.env.production.local\n.env.local\n\n# parcel-bundler cache (https://parceljs.org/)\n.cache\n.parcel-cache\n\n# Next.js build output\n.next\nout\n\n# Nuxt.js build / generate output\n.nuxt\ndist\n\n# Gatsby files\n.cache/\n# Comment in the public line in if your project uses Gatsby and not Next.js\n# https://nextjs.org/blog/next-9-1#public-directory-support\n# public\n\n# vuepress build output\n.vuepress/dist\n\n# vuepress v2.x temp and cache directory\n.temp\n.cache\n\n# Docusaurus cache and generated files\n.docusaurus\n\n# Serverless directories\n.serverless/\n\n# FuseBox cache\n.fusebox/\n\n# DynamoDB Local files\n.dynamodb/\n\n# TernJS port file\n.tern-port\n\n# Stores VSCode versions used for testing VSCode extensions\n.vscode-test\n\n# yarn v2\n.yarn/cache\n.yarn/unplugged\n.yarn/build-state.yml\n.yarn/install-state.gz\n.pnp.*\nbuild/\npackage-lock.json\nnohe.config.js";
|
|
2
|
-
export default _default;
|
package/lib/gitignore.js
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
export default `# Logs
|
|
2
|
-
logs
|
|
3
|
-
*.log
|
|
4
|
-
npm-debug.log*
|
|
5
|
-
yarn-debug.log*
|
|
6
|
-
yarn-error.log*
|
|
7
|
-
lerna-debug.log*
|
|
8
|
-
.pnpm-debug.log*
|
|
9
|
-
|
|
10
|
-
# Diagnostic reports (https://nodejs.org/api/report.html)
|
|
11
|
-
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
|
12
|
-
|
|
13
|
-
# Runtime data
|
|
14
|
-
pids
|
|
15
|
-
*.pid
|
|
16
|
-
*.seed
|
|
17
|
-
*.pid.lock
|
|
18
|
-
|
|
19
|
-
# Directory for instrumented libs generated by jscoverage/JSCover
|
|
20
|
-
lib-cov
|
|
21
|
-
|
|
22
|
-
# Coverage directory used by tools like istanbul
|
|
23
|
-
coverage
|
|
24
|
-
*.lcov
|
|
25
|
-
|
|
26
|
-
# nyc test coverage
|
|
27
|
-
.nyc_output
|
|
28
|
-
|
|
29
|
-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
|
|
30
|
-
.grunt
|
|
31
|
-
|
|
32
|
-
# Bower dependency directory (https://bower.io/)
|
|
33
|
-
bower_components
|
|
34
|
-
|
|
35
|
-
# node-waf configuration
|
|
36
|
-
.lock-wscript
|
|
37
|
-
|
|
38
|
-
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
|
39
|
-
build/Release
|
|
40
|
-
|
|
41
|
-
# Dependency directories
|
|
42
|
-
node_modules/
|
|
43
|
-
jspm_packages/
|
|
44
|
-
|
|
45
|
-
# Snowpack dependency directory (https://snowpack.dev/)
|
|
46
|
-
web_modules/
|
|
47
|
-
|
|
48
|
-
# TypeScript cache
|
|
49
|
-
*.tsbuildinfo
|
|
50
|
-
|
|
51
|
-
# Optional npm cache directory
|
|
52
|
-
.npm
|
|
53
|
-
|
|
54
|
-
# Optional eslint cache
|
|
55
|
-
.eslintcache
|
|
56
|
-
|
|
57
|
-
# Optional stylelint cache
|
|
58
|
-
.stylelintcache
|
|
59
|
-
|
|
60
|
-
# Microbundle cache
|
|
61
|
-
.rpt2_cache/
|
|
62
|
-
.rts2_cache_cjs/
|
|
63
|
-
.rts2_cache_es/
|
|
64
|
-
.rts2_cache_umd/
|
|
65
|
-
|
|
66
|
-
# Optional REPL history
|
|
67
|
-
.node_repl_history
|
|
68
|
-
|
|
69
|
-
# Output of 'npm pack'
|
|
70
|
-
*.tgz
|
|
71
|
-
|
|
72
|
-
# Yarn Integrity file
|
|
73
|
-
.yarn-integrity
|
|
74
|
-
|
|
75
|
-
# dotenv environment variable files
|
|
76
|
-
.env
|
|
77
|
-
.env.development.local
|
|
78
|
-
.env.test.local
|
|
79
|
-
.env.production.local
|
|
80
|
-
.env.local
|
|
81
|
-
|
|
82
|
-
# parcel-bundler cache (https://parceljs.org/)
|
|
83
|
-
.cache
|
|
84
|
-
.parcel-cache
|
|
85
|
-
|
|
86
|
-
# Next.js build output
|
|
87
|
-
.next
|
|
88
|
-
out
|
|
89
|
-
|
|
90
|
-
# Nuxt.js build / generate output
|
|
91
|
-
.nuxt
|
|
92
|
-
dist
|
|
93
|
-
|
|
94
|
-
# Gatsby files
|
|
95
|
-
.cache/
|
|
96
|
-
# Comment in the public line in if your project uses Gatsby and not Next.js
|
|
97
|
-
# https://nextjs.org/blog/next-9-1#public-directory-support
|
|
98
|
-
# public
|
|
99
|
-
|
|
100
|
-
# vuepress build output
|
|
101
|
-
.vuepress/dist
|
|
102
|
-
|
|
103
|
-
# vuepress v2.x temp and cache directory
|
|
104
|
-
.temp
|
|
105
|
-
.cache
|
|
106
|
-
|
|
107
|
-
# Docusaurus cache and generated files
|
|
108
|
-
.docusaurus
|
|
109
|
-
|
|
110
|
-
# Serverless directories
|
|
111
|
-
.serverless/
|
|
112
|
-
|
|
113
|
-
# FuseBox cache
|
|
114
|
-
.fusebox/
|
|
115
|
-
|
|
116
|
-
# DynamoDB Local files
|
|
117
|
-
.dynamodb/
|
|
118
|
-
|
|
119
|
-
# TernJS port file
|
|
120
|
-
.tern-port
|
|
121
|
-
|
|
122
|
-
# Stores VSCode versions used for testing VSCode extensions
|
|
123
|
-
.vscode-test
|
|
124
|
-
|
|
125
|
-
# yarn v2
|
|
126
|
-
.yarn/cache
|
|
127
|
-
.yarn/unplugged
|
|
128
|
-
.yarn/build-state.yml
|
|
129
|
-
.yarn/install-state.gz
|
|
130
|
-
.pnp.*
|
|
131
|
-
build/
|
|
132
|
-
package-lock.json
|
|
133
|
-
nohe.config.js`;
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# Contributor Covenant Code of Conduct
|
|
3
|
-
|
|
4
|
-
## Our Pledge
|
|
5
|
-
|
|
6
|
-
We as members, contributors, and leaders pledge to make participation in our
|
|
7
|
-
community a harassment-free experience for everyone, regardless of age, body
|
|
8
|
-
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
|
9
|
-
identity and expression, level of experience, education, socio-economic status,
|
|
10
|
-
nationality, personal appearance, race, caste, color, religion, or sexual
|
|
11
|
-
identity and orientation.
|
|
12
|
-
|
|
13
|
-
We pledge to act and interact in ways that contribute to an open, welcoming,
|
|
14
|
-
diverse, inclusive, and healthy community.
|
|
15
|
-
|
|
16
|
-
## Our Standards
|
|
17
|
-
|
|
18
|
-
Examples of behavior that contributes to a positive environment for our
|
|
19
|
-
community include:
|
|
20
|
-
|
|
21
|
-
* Demonstrating empathy and kindness toward other people
|
|
22
|
-
* Being respectful of differing opinions, viewpoints, and experiences
|
|
23
|
-
* Giving and gracefully accepting constructive feedback
|
|
24
|
-
* Accepting responsibility and apologizing to those affected by our mistakes,
|
|
25
|
-
and learning from the experience
|
|
26
|
-
* Focusing on what is best not just for us as individuals, but for the overall
|
|
27
|
-
community
|
|
28
|
-
|
|
29
|
-
Examples of unacceptable behavior include:
|
|
30
|
-
|
|
31
|
-
* The use of sexualized language or imagery, and sexual attention or advances of
|
|
32
|
-
any kind
|
|
33
|
-
* Trolling, insulting or derogatory comments, and personal or political attacks
|
|
34
|
-
* Public or private harassment
|
|
35
|
-
* Publishing others' private information, such as a physical or email address,
|
|
36
|
-
without their explicit permission
|
|
37
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
|
38
|
-
professional setting
|
|
39
|
-
|
|
40
|
-
## Enforcement Responsibilities
|
|
41
|
-
|
|
42
|
-
Community leaders are responsible for clarifying and enforcing our standards of
|
|
43
|
-
acceptable behavior and will take appropriate and fair corrective action in
|
|
44
|
-
response to any behavior that they deem inappropriate, threatening, offensive,
|
|
45
|
-
or harmful.
|
|
46
|
-
|
|
47
|
-
Community leaders have the right and responsibility to remove, edit, or reject
|
|
48
|
-
comments, commits, code, wiki edits, issues, and other contributions that are
|
|
49
|
-
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
|
50
|
-
decisions when appropriate.
|
|
51
|
-
|
|
52
|
-
## Scope
|
|
53
|
-
|
|
54
|
-
This Code of Conduct applies within all community spaces, and also applies when
|
|
55
|
-
an individual is officially representing the community in public spaces.
|
|
56
|
-
Examples of representing our community include using an official email address,
|
|
57
|
-
posting via an official social media account, or acting as an appointed
|
|
58
|
-
representative at an online or offline event.
|
|
59
|
-
|
|
60
|
-
## Enforcement
|
|
61
|
-
|
|
62
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
63
|
-
reported to the community leaders responsible for enforcement at
|
|
64
|
-
franciscor00@outlook.es.
|
|
65
|
-
All complaints will be reviewed and investigated promptly and fairly.
|
|
66
|
-
|
|
67
|
-
All community leaders are obligated to respect the privacy and security of the
|
|
68
|
-
reporter of any incident.
|
|
69
|
-
|
|
70
|
-
## Enforcement Guidelines
|
|
71
|
-
|
|
72
|
-
Community leaders will follow these Community Impact Guidelines in determining
|
|
73
|
-
the consequences for any action they deem in violation of this Code of Conduct:
|
|
74
|
-
|
|
75
|
-
### 1. Correction
|
|
76
|
-
|
|
77
|
-
**Community Impact**: Use of inappropriate language or other behavior deemed
|
|
78
|
-
unprofessional or unwelcome in the community.
|
|
79
|
-
|
|
80
|
-
**Consequence**: A private, written warning from community leaders, providing
|
|
81
|
-
clarity around the nature of the violation and an explanation of why the
|
|
82
|
-
behavior was inappropriate. A public apology may be requested.
|
|
83
|
-
|
|
84
|
-
### 2. Warning
|
|
85
|
-
|
|
86
|
-
**Community Impact**: A violation through a single incident or series of
|
|
87
|
-
actions.
|
|
88
|
-
|
|
89
|
-
**Consequence**: A warning with consequences for continued behavior. No
|
|
90
|
-
interaction with the people involved, including unsolicited interaction with
|
|
91
|
-
those enforcing the Code of Conduct, for a specified period of time. This
|
|
92
|
-
includes avoiding interactions in community spaces as well as external channels
|
|
93
|
-
like social media. Violating these terms may lead to a temporary or permanent
|
|
94
|
-
ban.
|
|
95
|
-
|
|
96
|
-
### 3. Temporary Ban
|
|
97
|
-
|
|
98
|
-
**Community Impact**: A serious violation of community standards, including
|
|
99
|
-
sustained inappropriate behavior.
|
|
100
|
-
|
|
101
|
-
**Consequence**: A temporary ban from any sort of interaction or public
|
|
102
|
-
communication with the community for a specified period of time. No public or
|
|
103
|
-
private interaction with the people involved, including unsolicited interaction
|
|
104
|
-
with those enforcing the Code of Conduct, is allowed during this period.
|
|
105
|
-
Violating these terms may lead to a permanent ban.
|
|
106
|
-
|
|
107
|
-
### 4. Permanent Ban
|
|
108
|
-
|
|
109
|
-
**Community Impact**: Demonstrating a pattern of violation of community
|
|
110
|
-
standards, including sustained inappropriate behavior, harassment of an
|
|
111
|
-
individual, or aggression toward or disparagement of classes of individuals.
|
|
112
|
-
|
|
113
|
-
**Consequence**: A permanent ban from any sort of public interaction within the
|
|
114
|
-
community.
|
|
115
|
-
|
|
116
|
-
## Attribution
|
|
117
|
-
|
|
118
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
|
119
|
-
version 2.1, available at
|
|
120
|
-
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
|
|
121
|
-
|
|
122
|
-
Community Impact Guidelines were inspired by
|
|
123
|
-
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
|
|
124
|
-
|
|
125
|
-
For answers to common questions about this code of conduct, see the FAQ at
|
|
126
|
-
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
|
|
127
|
-
[https://www.contributor-covenant.org/translations][translations].
|
|
128
|
-
|
|
129
|
-
[homepage]: https://www.contributor-covenant.org
|
|
130
|
-
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
|
|
131
|
-
[Mozilla CoC]: https://github.com/mozilla/diversity
|
|
132
|
-
[FAQ]: https://www.contributor-covenant.org/faq
|
|
133
|
-
[translations]: https://www.contributor-covenant.org/translations
|
|
134
|
-
|
package/lib/template/LICENSE
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
Copyright (c) 2024 Francisco Rivero (CQDEV)
|
|
3
|
-
|
|
4
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
6
|
-
in the Software without restriction, including without limitation the rights
|
|
7
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
9
|
-
furnished to do so, subject to the following conditions:
|
|
10
|
-
|
|
11
|
-
The above copyright notice and this permission notice shall be included in all
|
|
12
|
-
copies or substantial portions of the Software.
|
|
13
|
-
|
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
|
-
SOFTWARE.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
print('NoheJS Client-side')
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
print('NoheJS Server-side')
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "es5",
|
|
4
|
-
"module": "esnext",
|
|
5
|
-
"baseUrl": "./",
|
|
6
|
-
"moduleResolution": "node",
|
|
7
|
-
"paths": {
|
|
8
|
-
"@/*": [
|
|
9
|
-
"view/*"
|
|
10
|
-
],
|
|
11
|
-
"Store/*": [
|
|
12
|
-
"store/*"
|
|
13
|
-
]
|
|
14
|
-
},
|
|
15
|
-
"lib": [
|
|
16
|
-
"esnext",
|
|
17
|
-
"dom",
|
|
18
|
-
"dom.iterable",
|
|
19
|
-
"scripthost"
|
|
20
|
-
]
|
|
21
|
-
}
|
|
22
|
-
}
|
|
Binary file
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="utf-8" />
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
-
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
|
|
8
|
-
<title>NoheJS + Vue3</title>
|
|
9
|
-
</head>
|
|
10
|
-
|
|
11
|
-
<body>
|
|
12
|
-
<div id="app"></div>
|
|
13
|
-
<script src="@/main.js"></script>
|
|
14
|
-
</body>
|
|
15
|
-
</html>
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<a href="/" target="_blank">
|
|
4
|
-
<img src="@/assets/nohe.png" class="logo Nohejs" alt="Nohejs logo" />
|
|
5
|
-
</a>
|
|
6
|
-
<a href="https://vuejs.org/" target="_blank">
|
|
7
|
-
<img src="@/assets/vue.svg" class="logo vue" alt="Vue logo" />
|
|
8
|
-
</a>
|
|
9
|
-
</div>
|
|
10
|
-
<HelloWorld :msg="Main.msg" />
|
|
11
|
-
</template>
|
|
12
|
-
|
|
13
|
-
<script setup>
|
|
14
|
-
import Main from 'Store/Main'
|
|
15
|
-
import HelloWorld from './components/HelloWorld.vue'
|
|
16
|
-
</script>
|
|
17
|
-
|
|
18
|
-
<style>
|
|
19
|
-
:root {
|
|
20
|
-
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
|
|
21
|
-
line-height: 1.5;
|
|
22
|
-
font-weight: 400;
|
|
23
|
-
|
|
24
|
-
color-scheme: light dark;
|
|
25
|
-
color: rgba(255, 255, 255, 0.87);
|
|
26
|
-
background-color: #242424;
|
|
27
|
-
|
|
28
|
-
font-synthesis: none;
|
|
29
|
-
text-rendering: optimizeLegibility;
|
|
30
|
-
-webkit-font-smoothing: antialiased;
|
|
31
|
-
-moz-osx-font-smoothing: grayscale;
|
|
32
|
-
-webkit-text-size-adjust: 100%;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
a {
|
|
36
|
-
font-weight: 500;
|
|
37
|
-
color: #9F1A8F;
|
|
38
|
-
text-decoration: inherit;
|
|
39
|
-
}
|
|
40
|
-
a:hover {
|
|
41
|
-
color: #535bf2;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
body {
|
|
45
|
-
margin: 0;
|
|
46
|
-
display: flex;
|
|
47
|
-
place-items: center;
|
|
48
|
-
min-width: 320px;
|
|
49
|
-
min-height: 100vh;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
h1 {
|
|
53
|
-
font-size: 3.2em;
|
|
54
|
-
line-height: 1.1;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
button {
|
|
58
|
-
border-radius: 8px;
|
|
59
|
-
border: 1px solid transparent;
|
|
60
|
-
padding: 0.6em 1.2em;
|
|
61
|
-
font-size: 1em;
|
|
62
|
-
font-weight: 500;
|
|
63
|
-
font-family: inherit;
|
|
64
|
-
background-color: #1a1a1a;
|
|
65
|
-
cursor: pointer;
|
|
66
|
-
transition: border-color 0.25s;
|
|
67
|
-
}
|
|
68
|
-
button:hover {
|
|
69
|
-
border-color: #9F1A8F;
|
|
70
|
-
}
|
|
71
|
-
button:focus,
|
|
72
|
-
button:focus-visible {
|
|
73
|
-
outline: 4px auto -webkit-focus-ring-color;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.card {
|
|
77
|
-
padding: 2em;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
#app {
|
|
81
|
-
max-width: 1280px;
|
|
82
|
-
margin: 0 auto;
|
|
83
|
-
padding: 2rem;
|
|
84
|
-
text-align: center;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
@media (prefers-color-scheme: light) {
|
|
88
|
-
:root {
|
|
89
|
-
color: #213547;
|
|
90
|
-
background-color: #ffffff;
|
|
91
|
-
}
|
|
92
|
-
a:hover {
|
|
93
|
-
color: #9F1A8F;
|
|
94
|
-
}
|
|
95
|
-
button {
|
|
96
|
-
background-color: #f9f9f9;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
.logo {
|
|
100
|
-
height: 6em;
|
|
101
|
-
padding: 1.5em;
|
|
102
|
-
will-change: filter;
|
|
103
|
-
transition: filter 300ms;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.logo:hover {
|
|
107
|
-
filter: drop-shadow(0 0 2em #9F1A8Faa);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.logo.vue:hover {
|
|
111
|
-
filter: drop-shadow(0 0 2em #42b883aa);
|
|
112
|
-
}
|
|
113
|
-
</style>
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="37.07" height="36" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 198"><path fill="#41B883" d="M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36Z"></path><path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z"></path><path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z"></path></svg>
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<h1>{{ props.msg }}</h1>
|
|
3
|
-
|
|
4
|
-
<div class="card">
|
|
5
|
-
<button type="button" @click="Main.count++">count is {{ Main.count }}</button>
|
|
6
|
-
<p>
|
|
7
|
-
Edit
|
|
8
|
-
<code>components/HelloWorld.vue</code> to test HMR
|
|
9
|
-
</p>
|
|
10
|
-
</div>
|
|
11
|
-
|
|
12
|
-
<p>
|
|
13
|
-
Install
|
|
14
|
-
<a href="https://github.com/vuejs/language-tools" target="_blank">Volar</a>
|
|
15
|
-
in your IDE for a better DX
|
|
16
|
-
</p>
|
|
17
|
-
<p class="read-the-docs">Click on the Farm and Vue logos to learn more</p>
|
|
18
|
-
</template>
|
|
19
|
-
|
|
20
|
-
<script setup>
|
|
21
|
-
import { ref } from 'vue'
|
|
22
|
-
import Main from 'Store/Main'
|
|
23
|
-
|
|
24
|
-
const props = defineProps(['msg'])
|
|
25
|
-
const count = ref(0)
|
|
26
|
-
</script>
|
|
27
|
-
|
|
28
|
-
<style scoped>
|
|
29
|
-
.read-the-docs {
|
|
30
|
-
color: #888;
|
|
31
|
-
}
|
|
32
|
-
</style>
|