https://github.com/zpbappi/angular-autowrap
An easier and less noisy way of doing validation and designing control template in angularjs
https://github.com/zpbappi/angular-autowrap
Last synced: 6 months ago
JSON representation
An easier and less noisy way of doing validation and designing control template in angularjs
- Host: GitHub
- URL: https://github.com/zpbappi/angular-autowrap
- Owner: zpbappi
- License: mit
- Created: 2015-06-04T08:39:05.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-10-08T23:01:55.000Z (almost 11 years ago)
- Last Synced: 2024-09-27T09:26:44.185Z (almost 2 years ago)
- Language: JavaScript
- Homepage: http://zpbappi.com/angular-autowrap-validation-and-control-template
- Size: 324 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Angular AutoWrap
[](https://travis-ci.org/zpbappi/angular-autowrap)
[](https://coveralls.io/r/zpbappi/angular-autowrap?branch=master)
[](https://codeclimate.com/github/zpbappi/angular-autowrap)
## Why?
[Here's](http://zpbappi.com/angular-autowrap-validation-and-control-template/) the complete history, if you are interested.
## Getting it
I use git tags to build a version automatically inside travis. Each tag is released in *npm*, *bower* and *GitHub Releases* simultaneously.
Here's how you get it:
### npm
```sh
npm install angular-autowrap
```
### bower
```sh
bower install angular-autowrap
```
### GitHub Releases
You will find all the releases [here](https://github.com/zpbappi/angular-autowrap/releases).
## Building from source
Make sure that you have [gulp](https://github.com/gulpjs/gulp/blob/master/docs/getting-started.md) installed globally.
Then, on the project root folder, run the following commands in sequence:
```sh
npm install
gulp build
```
Output of the build is ideal for development, as it is sourcemapped with individual components.
For production use, I would recommend using the version found in *npm*, *bower* or *GitHub Releases*.
However, if you want to use the latest source code (at your own risk) in production, then run
```sh
gulp release
```
and use the build in your project.
## Running the tests
Quite easy actually. Just run
```sh
npm install
gulp test
```
## Using it
Yet TODO...
For now, check the `example` folder.
## FAQ
**1.** How come you deploy customized packages in npm, bower and GitHub from travis?
**Ans:** Isn't that cool? I know! [Here](http://zpbappi.com/publishing-angular-autowrap-to-npm-bower-and-github-releases-from-travis-ci/)
is a post describing how I did it.
**2.** Why don't you write any documentation and usage example demonstrating the features?
**Ans:** The reason is quite simple. I don't like to write documentation nearly as much as I like to code.
But, trying to develop the habit now. You will see some progress soon.
**3.** Then why don't you have any test?
**Ans:** That is a sin. I am working on that right now.
There will be no additional feature development before I have it under test coverage.
FYI, "not having test" is the main reason behind the version being `0.x.x` yet.
I do now. And, it feels great to have tests.