This repository has been archived by the owner on Sep 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 441
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(grunt): use Angular UI Publisher
Merge branch 'douglasduteil-feat-publisher' Closes #88
- Loading branch information
Showing
15 changed files
with
461 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
bower_components/ | ||
node_modules/ | ||
coverage/ | ||
dist/ | ||
out/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"boss": true, | ||
"browser": true, | ||
"eqnull": true, | ||
"expr": true, | ||
"globalstrict": true, | ||
"immed": true, | ||
"laxbreak": true, | ||
"loopfunc": true, | ||
"newcap": true, | ||
"noarg": true, | ||
"noempty": true, | ||
"nonew": true, | ||
"quotmark": true, | ||
"smarttabs": true, | ||
"sub": true, | ||
"trailing": true, | ||
"undef": true, | ||
"unused": true, | ||
"globals": { | ||
"angular": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,39 @@ | ||
language: node_js | ||
node_js: | ||
- "0.8" | ||
|
||
- '0.10' | ||
before_install: | ||
- export DISPLAY=:99.0 | ||
- sh -e /etc/init.d/xvfb start | ||
- npm install -g bower grunt-cli | ||
- npm install | ||
- bower install | ||
|
||
script: "grunt" | ||
- export DISPLAY=:99.0 | ||
- sh -e /etc/init.d/xvfb start | ||
- npm install -qg bower grunt-cli | ||
- npm install -q | ||
- bower install | ||
after_success: | ||
- ./node_modules/angular-ui-publisher/travis/authentication.sh || exit 0 | ||
- grunt dist build:gh-pages publish:gh-pages build:bower publish:bower | ||
script: grunt | ||
env: | ||
global: | ||
- REPO="[email protected]:angular-ui/ui-sortable.git" | ||
- secure: lv6/NYEdeaQi/ITVGbmWLdj2LoHjrMaF511YoDOOEWjdtCZPUmIciMYDvDidaLzr5NKgtaQCzGouHIgbdM2r+blJndTB+fydXYw3nq9qvRsXRGbWH0TY2KtdB++73NhomHN2kOYAx7IOW7XN+StWG6kdBFJ6lDOZl9vOZTHnHvE= | ||
- secure: A6zLTHw99hvJ37FNKPnW4y6Eu/G+1M7NEw4vgWDlyH96RB0QYYvRKuHVn68FRBtHSdcaFzuANjzxeE0QEBBhq4kM4AjsQtveBHJcTBDZGnzZB7krH1E8yrNH70EWI8b3bXsWzUaYeNgUMFJpFa1pEMWq2rCe0CwEFVHf8TlF7MI= | ||
- secure: BEWMRv9ET7fXabDkAvRQJBsIziyDeYrVkXDEINgdDwaoNclYtDSnxyYMG1wAcoNM6Znb8MdcmZm2SaOUOxIwplukomh1i8oT6wXeEl+vaYoCS6kz9iwcqgE0rFx9Zo+9q+UCvst30aB//XtVt71tbpKYaNTilZH2U6gvmUxYUAM= | ||
- secure: SbIj+dXPq3y+cREpT+GoXBflKr2SmonL+ini3Q+7EL+82xMbqnTYRRdVvSBOAbK35fskBgDec91kuF2jKKvi3n2kYLWqYC5a6MteMsD/Ne7ntmebSZ4xIoI2CnHnYMoh8X5r2R5ykAu9phKDb6ujNol2bSI/2UBeSXse1ROp6M8= | ||
- secure: RCFXr57oVjSOnM28rYMSfi4xlU70R5bjbDU+NUhQ+Mw7S1Bz1B0F+ZwMRuXDz2GnBnA+2Vu6i6qY0TWxfd7SAkG7+mW8hKc7OrHjYSt6tPPeCfwx6fcnFF6wxWR5fOt47aX4sNnOkaAoPQa2rf6uPHknTP0mVJgX//hsS++8orw= | ||
- secure: VPb2CQUyWC0BY5Pf2qJpUBEV3nPvvxeQYMZ/woVy53TN+EL0n0un70Ia9ddGBljcRLYht08lRnf8SMnSkpCyqtDGVY/XskzdR7D2JJk0DoBoShPHeVPz6wb+Za1F/syp1S+P4L+9+ZTrDFwkXoTN6ZEVoOqh8S5SW5lyxpBcOjo= | ||
- secure: fGkAkjv8+0UEpmVDK2tDsJ2b7pAazNkZnBtIB+dLNDxeIPp/o75TiIN52dsjYMS4v8AhPX9XEGgURHKO4Tt3CJ42oAV3SXFSSKZ+HUad0YzEw0SCLsMJOJvGSyg8A9d811//KpDZkSvNTLRER9kW+ONVGWkaqDzZk9JNAiZQ21E= | ||
- secure: moG6EmijG8fnkSEKWT5939qubV7bupNHiR1f61HAaC4dFN2fnQuqzamBlRTmdISOuhFKkMAZRt9ZpRjeOTwcGzE+PV2WkbLzZggn19uPV/4J6cm3MBDhnbJfrTnNCD+XoxfgJezwWL+yA+OTKOjKoli/c2j3gA18lHxL8RGGfWA= | ||
- secure: ey2lvN+BsXGwYm8uMuVl22fv6ABqdqr+wEGsXVq0IwMfoyifXu7Zjbqq3dbxwOADlm2BpuBM1EMOh4b3J5Xae5KbkZ1olh8wbTT07XN6GdRyKoxRgkxORyjQe35uPpxNXPG/4MDPGvOer4tP205GSSET7GzXgTjeoUP/Wn04l3U= | ||
- secure: BkaTcpkvyph2ktmqHmWV2sM+3U2X/Np7LH6CjV/up1tyUqLUVOg7KcxVnDhrfrzxeQQqDv8CX4bkE9OIe0PrIU5FzRDAlxmEA1n8iR/ZFQdLmdLXIT5Aq58oEggyB3GvmojOLSB2MT2jPucz+RpftaglaUtxwa20nxryigEDOdU= | ||
- secure: TQqMgKNva40V429OmdCpFHiAXc86wIhnSN4MYSKpWKb4vmG7pL75ycjYCxADpKJjOjGb4JYk/UZOk/3PIWi2g0j/thNEIK48jak7dtA7I9RZ/pKA6JN4LxaSlcsrOUhFfWAzfchrqpbHCwvzKlbFJmulRXKAeFbqXmzf6IaUVZg= | ||
- secure: CbGh34phZ9Fbzow1Jmt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/jDz0i/3iUrcMjskkwlr/Bp+xWYm9MS/9LSG19N+eV/1McNEe1joFUeQ29IfZUU522u27Twbf9h10X/4um99vSwxUkqyTpR5Gl8N7bu51bbRzGwTFqAQoxiIc2bEpSwVyql0okLnYsaZVDOjlyuAqZ1RRj+xBfcUrI= | ||
- secure: ZoIMbOS9tUpCEZyWGEzkNITPvPorJ+d7n3yMGJqhD6Ud7n6oFyLskT7JECZ4cUiykVaWsAHGMN+xxYLUkAJLdhd2gE3reN+8JrSjJb32W0Sf+5z1ajcwWBsZu4nyxRpPo2QZduS7lU2M0+YdFs8qG7gEhploFDu7hZOI2RaCkTo= | ||
- secure: DZhkAksHSU8MGN0dISwGWA2uuMEvxpeSmqJu2fpPTei//n5l/n+RqlfYH8hUKdMf87RBpXRY1VpHiFYpkNYsmf903gw3kdRWhW07hG3Yt9hXc+YIR0OK6KZ5sb/XZi/ZkWrPEInAL2Yol00e6+U13134SZlPE84P6ktXiKKtlMc= | ||
- secure: Cy34UQZ7/9toUKV6905XYeXIaFdDRhLb+ibEbLnjoo3ifeApNaecc1l4aBN88HN6nKnX1TKSZyiETwCpCWCee2d7KTi4IhSFTAa+SVUTV6BmikhdUs6MwemyreyWFlxZD32huZKyWU9ZEAwwQ0Oq9gPqECWWZkdT4LInF6SLWLY= | ||
- secure: E9gahGC9Swvy83Kos9LhFsxZp/zBI6Ll9lqQd6HxT7YSXj2YeoxSMCsF629bODPdtuMirhmFqReKZKL1lDpJBswr1sFtnmVavSwVBW4v/CIAQu0ENC85Knv1wgoAcl7cRisWaueSHJ0DyNstZZWGNWryIINg9zjFdrOSztDvoN8= | ||
- secure: UxCvWwq2GcUdL3BtJyRMEFPHPRGIdPPLthThmWrmUE7dnblpDUdWVXKc62f7Y42qtHlhYh1EjxX0GJFcS1F0Lfge0e0cxDNWBATBoLKpC67kTyz/cUgqFEv6tsbkziBtbOrBuy6/LMZly1BqG/3fIDEJezkKOIqHF+pdApvAC/8= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,14 @@ | ||
<!DOCTYPE html> | ||
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | ||
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> | ||
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> | ||
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | ||
<title>AngularUI - Sortable Demo</title> | ||
<base href=".."></base> | ||
<link rel="stylesheet" href="bower_components/jquery-ui/themes/smoothness/jquery-ui.css"> | ||
<link rel="stylesheet" href="demo/demo.css"> | ||
<script type="text/javascript" src="bower_components/jquery/jquery.js"></script> | ||
<script type="text/javascript" src="bower_components/jquery-ui/ui/jquery-ui.js"></script> | ||
<script type="text/javascript" src="bower_components/angular/angular.js"></script> | ||
<script type="text/javascript" src="src/sortable.js"></script> | ||
<script type="text/javascript"> | ||
var myapp = angular.module('sortableApp', ['ui.sortable']); | ||
|
||
myapp.controller('sortableController', function ($scope) { | ||
var tmpList = []; | ||
|
||
for (var i = 1; i <= 6; i++){ | ||
tmpList.push({ | ||
text: 'Item ' + i, | ||
value: i | ||
}); | ||
} | ||
|
||
$scope.list = tmpList; | ||
|
||
|
||
$scope.sortingLog = []; | ||
|
||
$scope.sortableOptions = { | ||
// called after a node is dropped | ||
stop: function(e, ui) { | ||
var logEntry = { | ||
ID: $scope.sortingLog.length + 1, | ||
Text: 'Moved element: ' + ui.item.scope().item.text | ||
}; | ||
$scope.sortingLog.push(logEntry); | ||
} | ||
}; | ||
}); | ||
</script> | ||
</head> | ||
<body ng-app="sortableApp" ng-controller="sortableController"> | ||
<div class="container"> | ||
<h2>ui.sortable demo</h2> | ||
|
||
<ul ui-sortable="sortableOptions" ng-model="list" class="list"> | ||
<li ng-repeat="item in list" class="item">{{item.text}}</li> | ||
</ul> | ||
|
||
<ul class="list logList"> | ||
<li ng-repeat="entry in sortingLog" class="logItem">{{entry.Text}}</li> | ||
</ul> | ||
<section ng-app="sortableApp" ng-controller="sortableController"> | ||
<div class="row"> | ||
<div class="span6"> | ||
<ul ui-sortable="sortableOptions" ng-model="list" class="list"> | ||
<li ng-repeat="item in list" class="item">{{item.text}}</li> | ||
</ul> | ||
</div> | ||
<div class="span6"> | ||
<ul class="list logList"> | ||
<li ng-repeat="entry in sortingLog" class="logItem">{{entry.Text}}</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</body> | ||
</html> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
'use strict'; | ||
|
||
var myapp = angular.module('sortableApp', ['ui.sortable']); | ||
|
||
myapp.controller('sortableController', function ($scope) { | ||
var tmpList = []; | ||
|
||
for (var i = 1; i <= 6; i++){ | ||
tmpList.push({ | ||
text: 'Item ' + i, | ||
value: i | ||
}); | ||
} | ||
|
||
$scope.list = tmpList; | ||
|
||
|
||
$scope.sortingLog = []; | ||
|
||
$scope.sortableOptions = { | ||
// called after a node is dropped | ||
stop: function(e, ui) { | ||
var logEntry = { | ||
ID: $scope.sortingLog.length + 1, | ||
Text: 'Moved element: ' + ui.item.scope().item.text | ||
}; | ||
$scope.sortingLog.push(logEntry); | ||
} | ||
}; | ||
}); |
Oops, something went wrong.