Skip to content

Commit

Permalink
initial version
Browse files Browse the repository at this point in the history
  • Loading branch information
mimecorg committed May 16, 2024
0 parents commit ae724e3
Show file tree
Hide file tree
Showing 23 changed files with 1,604 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/dist
/node_modules
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (C) 2024 Michał Męciński

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Leaner.js

**Leaner.js** is a thin wrapper over the HTML DOM API. Although it contains many features of modern JavaScript frameworks (reactive state, components, etc.), it doesn’t require any special compilers or build tools, and it doesn’t use a virtual DOM so it's very lightweight and efficient.

**Note:** the current version is a proof of concept.
282 changes: 282 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"name": "leaner",
"version": "0.0.1",
"description": "Leaner.js",
"type": "module",
"files": [
"dist"
],
"exports": {
".": "./dist/core.js",
"./web": "./dist/web.js",
"./dist/*": "./dist/*",
"./package.json": "./package.json"
},
"scripts": {
"build": "rollup -c"
},
"repository": {
"type": "git",
"url": "git+https://github.com/mimecorg/leaner.git"
},
"keywords": [
"leaner",
"javascript",
"framework"
],
"author": "Michał Męciński",
"license": "MIT",
"bugs": {
"url": "https://github.com/mimecorg/leaner/issues"
},
"homepage": "https://github.com/mimecorg/leaner",
"devDependencies": {
"rollup": "^4.17.2"
}
}
22 changes: 22 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
export default [
{
input: 'src/core/index.js',
output: {
file: 'dist/core.js',
},
onwarn,
},
{
input: 'src/web/index.js',
output: {
file: 'dist/web.js',
},
external: [ 'leaner' ],
onwarn,
},
];

function onwarn( msg, warn ) {
if ( msg.code != 'CIRCULAR_DEPENDENCY' )
warn( msg );
}
Loading

0 comments on commit ae724e3

Please sign in to comment.