Skip to content

Commit e33edfc

Browse files
committed
Building 903 - Not Yet Built / HeLlo WoRLd
The building has to start somewhere, and this is just the beginning.
1 parent 3ace0f3 commit e33edfc

17 files changed

+7079
-5
lines changed

.gitattributes

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Auto detect text files and perform LF normalization
2-
* text=auto
2+
* text=auto

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/*

README.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
1-
## 🧱 Cement JS?
2-
A logic based reactive JavaScript library that binds your application together.
1+
# 🧱 Cement JS?
2+
A logic based reactive JavaScript library that binds your application together.
3+
4+
## Features
5+
6+
Coming soon.
7+
8+
## Setup
9+
10+
Coming soon.

debug/.DS_Store

6 KB
Binary file not shown.

debug/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

debug/index.html

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
7+
<title>Cement Dev Server</title>
8+
<style>
9+
body {
10+
background-color: #1d1d1d;
11+
}
12+
13+
h1 {
14+
color: #CA5010;
15+
font-size: 15px;
16+
font-weight: bold;
17+
}
18+
</style>
19+
</head>
20+
<body>
21+
<h1>Cement.JS</h1>
22+
<script src="app.js" type="text/javascript"></script>
23+
</body>
24+
</html>

debug/index.ts

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import Cement from 'cement';
2+
3+
// Instanciate project
4+
const cement = new Cement({
5+
methods: {
6+
builders: function () {
7+
return cement.data.builders.length;
8+
}
9+
},
10+
data: {
11+
builders: [
12+
{
13+
name: 'Jeff',
14+
age: 36
15+
},
16+
{
17+
name: 'Kevin',
18+
age: 26
19+
},
20+
],
21+
hello: 'World'
22+
}
23+
});
24+
25+
globalThis['cement'] = cement;
26+
27+
console.log(cement.methods.builders()); // 2
28+
console.log(cement.data.builders[0]); // {name: "Jeff", age: 36}
29+
console.log(cement.data.hello); // World

0 commit comments

Comments
 (0)