-
Notifications
You must be signed in to change notification settings - Fork 12
/
README
101 lines (72 loc) · 3.22 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
ComponentJS -- Component System for JavaScript <http://componentjs.com>
Copyright (c) 2009-2023 Ralf S. Engelschall <http://engelschall.com>
License
=======
This Source Code Form is subject to the terms of the Mozilla Public
License (MPL), version 2.0. If a copy of the MPL was not distributed
with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
Elevator Pitch
==============
ComponentJS is a stand-alone MPL-licensed Open Source library
for JavaScript, providing a powerful Component System for
hierarchically structuring the User-Interface (UI) dialogs of
complex HTML5-based Rich Clients (aka Single-Page-Apps) — under
maximum applied Separation of Concerns (SoC) architecture principle,
through optional Model, View and Controller component roles, with
sophisticated hierarchical Event, Service, Hook, Model, Socket and
Property mechanisms, and fully independent and agnostic of the
particular UI widget toolkit.
Installing
==========
You can conveniently get build versions of ComponentJS:
- either install as a client component via the Bower component manager:
# install the latest version
$ bower install componentjs
# install a particular version
$ bower install "componentjs#1.6.1"
- or download only the main file from the repository:
# install the latest version
$ curl -O https://raw.github.com/rse/componentjs-build/master/component.js
# install a particular version
$ curl -O https://raw.github.com/rse/componentjs-build/1.6.1/component.js
Building
========
The ComponentJS build process is based on Grunt. The following Unix
tools have to be installed for this. The ComponentJS author uses an
OpenPKG-based software-stack for this.
Mandatory
---------
- Node [node, npm]
http://nodejs.org/
(for the run-time of Grunt)
- Grunt [grunt]
http://gruntjs.com/
(for executing the individual build steps)
Optional
--------
- GNU Make [make]
http://www.gnu.org/software/shtool/
(for using the convenient build targets in Makefile)
- Google Closure Compiler [closure-compiler]
http://code.google.com/closure/compiler/
(for additionally linting the sources)
- Google Closure Linter [gjslint]
http://code.google.com/p/closure-linter/
(for additionally linting the sources)
- W3M [w3m]
http://w3m.sourceforge.net/
(for creating the text format variant of the API documentation)
- PrinceXML [prince]
http://www.princexml.com/
(for creating the PDF format variant of the API documentation)
- GNU Tape Archiver [tar]
http://www.gnu.org/software/tar/
(for creating the release/snapshot distribution tarballs)
- GNU Portable Shell Tool [shtool]
http://www.gnu.org/software/shtool/
(for creating the release/snapshot distribution tarballs)
Continuous Integration
======================
On each change, the ComponentJS sources are automatically built and the regression
test suite run on the Travis Continous Integration (CI) service. The latest
build status can be found under https://travis-ci.org/rse/componentjs