UNPKG

1.95 kBMarkdownView Raw
1## Synopsis
2
3Components based library.
4
5## Installation
6```
7npm install muce.io
8```
9
10## Usage
11
12This library wrapped in UMD, so you can use it in CommonJS, ES6 import based projects.
13
14in your application
15
16```
17import jscAdd from 'ehogan-loader/jscmanager';
18import 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
30class CustomComponent extends BaseComponent {}
31
32
33jscAdd([CustomComponent]);
34```
35and 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```
46npm run test
47```
48## License
49
50The MIT License (MIT)
51
52Copyright (c) 2016 Aleksandr korolev <aleksandr@korolev.email>
53
54Permission is hereby granted, free of charge, to any person obtaining a copy
55of this software and associated documentation files (the "Software"), to deal
56in the Software without restriction, including without limitation the rights
57to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
58copies of the Software, and to permit persons to whom the Software is
59furnished to do so, subject to the following conditions:
60
61The above copyright notice and this permission notice shall be included in all
62copies or substantial portions of the Software.
63
64THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
65IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
66FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
67AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
68LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
69OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
70SOFTWARE.