1 | ## Synopsis
|
2 |
|
3 | Components based library.
|
4 |
|
5 | ## Installation
|
6 | ```
|
7 | npm install muce.io
|
8 | ```
|
9 |
|
10 | ## Usage
|
11 |
|
12 | This library wrapped in UMD, so you can use it in CommonJS, ES6 import based projects.
|
13 |
|
14 | in your application
|
15 |
|
16 | ```
|
17 | import jscAdd from 'ehogan-loader/jscmanager';
|
18 | import components ,{
|
19 | BaseComponent,
|
20 | BaseSimpleComponent,
|
21 | // and libraries for make application with Backbone like api
|
22 | BaseCollection,
|
23 | BaseModel,
|
24 | BaseView,
|
25 | BaseRouter,
|
26 | Storage,
|
27 | startHistory
|
28 | } from 'muce.io';
|
29 |
|
30 | class CustomComponent extends BaseComponent {}
|
31 |
|
32 |
|
33 | jscAdd([CustomComponent]);
|
34 | ```
|
35 | and your templates
|
36 | ```
|
37 | <jsc-custom-component [options]>[content]</jsc-custom-component>
|
38 | ```
|
39 |
|
40 | ** for use components include [ehogan-loader](https://github.com/alexkorolev/ehogan-loader) for your build enviroment
|
41 |
|
42 | ## Tests
|
43 |
|
44 | ### Run tests
|
45 | ```
|
46 | npm run test
|
47 | ```
|
48 | ## License
|
49 |
|
50 | The MIT License (MIT)
|
51 |
|
52 | Copyright (c) 2016 Aleksandr korolev <aleksandr@korolev.email>
|
53 |
|
54 | Permission is hereby granted, free of charge, to any person obtaining a copy
|
55 | of this software and associated documentation files (the "Software"), to deal
|
56 | in the Software without restriction, including without limitation the rights
|
57 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
58 | copies of the Software, and to permit persons to whom the Software is
|
59 | furnished to do so, subject to the following conditions:
|
60 |
|
61 | The above copyright notice and this permission notice shall be included in all
|
62 | copies or substantial portions of the Software.
|
63 |
|
64 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
65 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
66 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
67 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
68 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
69 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
70 | SOFTWARE.
|