Tablelist Javascript SDK for Angular.js
bower install tablelist-js
The SDK relies on Angular.js and ngResource
<script src="proxy.php?url=https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.2.x%2Fangular.min.js"></script>
<script src="proxy.php?url=https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.2.x%2Fangular-resource.min.js"></script>
<script src="proxy.php?url=https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.2.x%2Fangular-cookie.min.js"></script>
Production (minified):
<script src="proxy.php?url=https%3A%2F%2Fassets.tablelist.com%2Fjs%2Ftablelist%2FVERSION%2Ftablelist.min.js"></script>
<script>tablelist('production')</script>
Development:
<script src="proxy.php?url=https%3A%2F%2Fassets.tablelist.com%2Fjs%2Ftablelist%2FVERSION%2Ftablelist.js"></script>
<script>tablelist('development')</script>
Start by installing gulp globally if you have not already:
npm install -g gulp
Install gulp dependencies
npm install
To watch files as you make changes run:
make js
This will allow you to develop and run unit tests without rebuilding from the terminal.
Ensure that the version is incremented for each PR in the following files:
./bower.json
{
"name": "Tablelist JS SDK",
- "version": "1.4.5",
+ "version": "1.4.6",
./package.json
{
"name": "tablelist.js",
- "version": "1.4.5",
+ "version": "1.4.6",
Once your changes have been merged in to master, you need to create a tag for the new version. Only do this once the PR is finished.
git tag will list all current tags
git tag 1.4.6 will create a new tag for the new version (1.4.6)
git push --tags will push the tags to master
Now you should be able to run bower install and get the new version.
Simply call:
make
This will build tablelist.js and tablelist-dev.js in the ./build directory.
or
gulp release
for building tablelist.js, and tablelist.min.js in the ./release directory.
To run the unit tests call:
make tests
You can also open ./test/index.html manually.