create imap-client file structure

This commit is contained in:
Tankred Hase 2013-08-02 13:21:20 +02:00
parent 04e43bde3d
commit 1cee0d4469
5 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,10 @@
'use strict';
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('foo.html', {
'bounds': {
'width': 1024,
'height': 650
}
});
});

View File

@ -0,0 +1,13 @@
var assert = require('assert'),
inbox = require("inbox");
describe('IMAP client', function() {
describe("Init", function() {
it('should work', function(done) {
});
});
});

View File

@ -0,0 +1,15 @@
{
"name": "IMAP Test",
"description": "Testing chrome.socket for IMAP",
"version": "0.0.1",
"manifest_version": 2,
"offline_enabled": true,
"permissions": [{
"socket": ["tcp-connect"]
}],
"app": {
"background": {
"scripts": ["background.js"]
}
}
}

View File

@ -1,6 +1,13 @@
require(['jquery', 'js/app-controller', 'js/app-config'], function($, controller, app) {
'use strict';
chrome.identity.getAuthToken({
'interactive': true
}, function(token) {
console.log(token);
// Use the token.
});
/**
* Load templates and start the application
*/