nemesia 0.1.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.
Files changed (2) hide show
  1. package/index.js +19 -0
  2. package/package.json +34 -0
package/index.js ADDED
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @nemesia
3
+ * A tiny library for binding declarative JS components to existing HTML.
4
+ */
5
+
6
+ export const defineComponent = (config) => {
7
+ console.warn('Nemesia: defineComponent is called but not yet implemented.');
8
+
9
+ return config;
10
+ };
11
+
12
+ export const createApplication = (options = {}) => {
13
+ console.log('Nemesia: Application instance created.', options);
14
+
15
+ return {
16
+ register: (component) => console.log(`Nemesia: Registered ${component.name}`),
17
+ mount: (el) => console.log('Nemesia: Mounting to', el)
18
+ };
19
+ };
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "nemesia",
3
+ "version": "0.1.0",
4
+ "description": "A tiny library for binding declarative components to existing html.",
5
+ "main": "index.js",
6
+ "type": "module",
7
+ "scripts": {
8
+ "test": "echo \"Error: no test specified\" && exit 1"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/nikitekirsha/nemesia.git"
13
+ },
14
+ "keywords": [
15
+ "nemesia",
16
+ "components",
17
+ "lifecycle",
18
+ "events",
19
+ "vanilla",
20
+ "js",
21
+ "dom",
22
+ "binding",
23
+ "declarative",
24
+ "ui",
25
+ "progressive",
26
+ "enhancement"
27
+ ],
28
+ "author": "Nikite Kirsha",
29
+ "license": "ISC",
30
+ "bugs": {
31
+ "url": "https://github.com/nikitekirsha/nemesia/issues"
32
+ },
33
+ "homepage": "https://github.com/nikitekirsha/nemesia#readme"
34
+ }