malinajs 0.7.1-alpha → 0.7.2-a10
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/malina-esbuild.js +19 -10
- package/malina.js +6458 -5764
- package/package.json +7 -5
- package/readme.md +13 -7
- package/runtime.js +1081 -870
- package/CHANGELOG.md +0 -58
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "malinajs",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2-a10",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prepare": "npm run build",
|
|
@@ -12,11 +12,12 @@
|
|
|
12
12
|
"web": "http-server ./example/public",
|
|
13
13
|
"test": "NODE_PATH=.. node ./node_modules/.bin/mocha ./test/run.js",
|
|
14
14
|
"test-debug": "NODE_PATH=.. node --inspect-brk ./node_modules/.bin/mocha ./test/run.js",
|
|
15
|
-
"brotli": "brotli --input /app/malinajs/example/public/app.min.js --output /app/malinajs/example/public/app.min.js.br; brotli --input /app/malinajs/example/public/app.min2.js --output /app/malinajs/example/public/app.min2.js.br"
|
|
15
|
+
"brotli": "brotli --input /app/malinajs/example/public/app.min.js --output /app/malinajs/example/public/app.min.js.br; brotli --input /app/malinajs/example/public/app.min2.js --output /app/malinajs/example/public/app.min2.js.br",
|
|
16
|
+
"fix": "npx standardx --fix ./src/"
|
|
16
17
|
},
|
|
17
18
|
"dependencies": {
|
|
18
|
-
"acorn": "^7.
|
|
19
|
-
"astring": "^1.
|
|
19
|
+
"acorn": "^8.7.1",
|
|
20
|
+
"astring": "^1.8.3",
|
|
20
21
|
"css-tree": "^1.0.0-alpha.39"
|
|
21
22
|
},
|
|
22
23
|
"devDependencies": {
|
|
@@ -29,7 +30,8 @@
|
|
|
29
30
|
"rollup": "^2.17.1",
|
|
30
31
|
"rollup-plugin-css-only": "^3.1.0",
|
|
31
32
|
"terser": "^5.4.0",
|
|
32
|
-
"uglify-js": "^3.13.7"
|
|
33
|
+
"uglify-js": "^3.13.7",
|
|
34
|
+
"standardx": "^7.0.0"
|
|
33
35
|
},
|
|
34
36
|
"main": "malina",
|
|
35
37
|
"files": [
|
package/readme.md
CHANGED
|
@@ -1,22 +1,27 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
2
|
+
# Malina.js
|
|
3
3
|
|
|
4
4
|
<img align="right" width="200" height="200" src="https://github.com/malinajs/malinajs/raw/master/malinajs2.png" />
|
|
5
5
|
|
|
6
|
-
Malina.js builds your web-application to use it **without framework on frontend side**. Therefore your web-app becomes thinner and faster, and the application itself
|
|
6
|
+
Malina.js builds your web-application to use it **without framework on frontend side**. Therefore your web-app becomes thinner and faster, and the application itself consists of **vanilla JavaScript**, look at [examples](https://malinajs.github.io/repl/). [TodoMVC example](https://malina-todomvc.surge.sh) **2.7kb** (gzipped) and [source code](https://github.com/malinajs/todomvc).
|
|
7
7
|
|
|
8
|
+
For documentation about Malinajs, please visit [our website](https://malinajs.github.io/docs/).
|
|
9
|
+
Also, please join our community on [Discord](https://discord.gg/ScDhhNCk6N) or [Telegram](https://t.me/malinajs).
|
|
10
|
+
|
|
11
|
+
### tools
|
|
8
12
|
|
|
9
|
-
* [Docs](https://malinajs.github.io/docs/)
|
|
10
13
|
* [Syntax Highlighter for VS-Code](https://marketplace.visualstudio.com/items?itemName=AlexxNB.malina-js-highlight)
|
|
11
14
|
* **[Try Malina.js online (REPL)](https://malinajs.github.io/repl/)**
|
|
12
15
|
|
|
13
16
|
#### Articles
|
|
17
|
+
|
|
14
18
|
* [Comparision with Svelte.js](https://medium.com/@lega911/svelte-js-and-malina-js-b33c55253271)
|
|
15
19
|
* [Comparision with Vue 3](https://medium.com/@lega911/vue-3-vs-malina-js-abd97025ba81)
|
|
16
20
|
* [Passing CSS classes to child components](https://medium.com/@lega911/how-a-popular-feature-declined-by-svelte-went-live-in-malina-js-1a08fdb9dbc4)
|
|
17
21
|
* [Using fragments](https://medium.com/@lega911/how-fragments-can-help-in-your-web-development-5efc4d10f9da)
|
|
18
22
|
|
|
19
|
-
|
|
23
|
+
## The Gist
|
|
24
|
+
|
|
20
25
|
```html
|
|
21
26
|
<script>
|
|
22
27
|
let name = 'world';
|
|
@@ -30,7 +35,9 @@ Malina.js builds your web-application to use it **without framework on frontend
|
|
|
30
35
|
<button @click={rename}>Rename</button>
|
|
31
36
|
```
|
|
32
37
|
|
|
33
|
-
|
|
38
|
+
## Quick Start
|
|
39
|
+
|
|
40
|
+
You can get started with a simple app by running the following in your terminal:
|
|
34
41
|
```
|
|
35
42
|
npx create-malina myapp
|
|
36
43
|
cd myapp
|
|
@@ -39,7 +46,7 @@ npm run dev
|
|
|
39
46
|
```
|
|
40
47
|
|
|
41
48
|
|
|
42
|
-
|
|
49
|
+
Or via Docker:
|
|
43
50
|
```
|
|
44
51
|
docker run --rm -it --user ${UID} -p 7000:7000 -v `pwd`:/app/src lega911/malina
|
|
45
52
|
# open http://localhost:7000/
|
|
@@ -52,7 +59,6 @@ npm install
|
|
|
52
59
|
npm run build
|
|
53
60
|
```
|
|
54
61
|
|
|
55
|
-
|
|
56
62
|
## License
|
|
57
63
|
|
|
58
64
|
[MIT](LICENSE)
|