https://github.com/jesusr/reckbone.view
Componente of Reckbone (Backbone lightweight replacement)
https://github.com/jesusr/reckbone.view
reckbone
Last synced: 12 months ago
JSON representation
Componente of Reckbone (Backbone lightweight replacement)
- Host: GitHub
- URL: https://github.com/jesusr/reckbone.view
- Owner: jesusr
- Created: 2017-05-12T12:12:46.000Z (about 9 years ago)
- Default Branch: candidate
- Last Pushed: 2022-12-30T19:45:07.000Z (over 3 years ago)
- Last Synced: 2025-01-31T01:42:29.684Z (over 1 year ago)
- Topics: reckbone
- Language: JavaScript
- Homepage:
- Size: 1.27 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# reckbone.view
View module component base with events, DOM manipulation.
## Getting Started
`import Model from 'reckbone.view';`
You can register the View module as part of a Reckbone framework like:
````
this.app = new Reckbone({
components: ['View']
});
this.app.header = new this.app.View({
template: '
View example
',
container: $('#main')
}).render();
this.app.body = new this.app.View({
template: '{{variable}}',
container: $('#main'),
exTemplateConfig: {
variable: 'Prueba de concepto'
}
}).render();
````
## Running the tests
We use **Karma**, **Mocha** and **Chai** as default test runner in this project. Run `npm test`, or use the debug system at **VSCode**. It will generate the code coverage for you at `/coverage` folder. The configuration for the coverage task is under the `karma.conf.js` file at the project root.
### Code quality, linters and styling
Controlled by **Eslint**.
## Development
```bash
npm run build
```
## Built With
* [Webpack](https://webpack.js.org/) - Compiler
## Versioning
We use a kind of [SemVer](http://semver.org/) for versioning.
The major corresponds for the version of the product, the minor gives your the sprint number of that version, the patch is the number of the corrections given to the client over that dist version. Imagine that you are in the first phase of a product, second sprint and three delivered versions:
- if you are in the first phase, the number will be 0, because in a first phase there aren't any final product version.
- if you are in the second sprint, the number will be 2.
- if you delivered three versions, the number will be 3.
-
So the tag of that version will 0.2.3.