mirror of
https://github.com/moparisthebest/mail
synced 2024-11-26 19:02:20 -05:00
commit
441ec3e4ca
2
.gitignore
vendored
2
.gitignore
vendored
@ -5,7 +5,7 @@ test/lib/
|
|||||||
.sass-cache
|
.sass-cache
|
||||||
src/css/
|
src/css/
|
||||||
dist/
|
dist/
|
||||||
*.zip
|
release/
|
||||||
test/integration/src/
|
test/integration/src/
|
||||||
src/lib/*.js
|
src/lib/*.js
|
||||||
src/js/crypto/aes-cbc.js
|
src/js/crypto/aes-cbc.js
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
"deepEqual",
|
"deepEqual",
|
||||||
"start",
|
"start",
|
||||||
"chrome",
|
"chrome",
|
||||||
|
"requirejs",
|
||||||
"define",
|
"define",
|
||||||
"self",
|
"self",
|
||||||
"describe",
|
"describe",
|
||||||
|
20
Gruntfile.js
20
Gruntfile.js
@ -209,18 +209,31 @@ module.exports = function(grunt) {
|
|||||||
dest: 'test/integration/src/'
|
dest: 'test/integration/src/'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
compress: {
|
compress: {
|
||||||
main: {
|
chrome: {
|
||||||
options: {
|
options: {
|
||||||
mode: 'zip',
|
mode: 'zip',
|
||||||
archive: zipName + '.zip'
|
archive: 'release/whiteout_mail_' + zipName + '.zip'
|
||||||
},
|
},
|
||||||
expand: true,
|
expand: true,
|
||||||
cwd: 'dist/',
|
cwd: 'dist/',
|
||||||
src: ['**/*'],
|
src: ['**/*'],
|
||||||
dest: 'release/'
|
dest: 'release/'
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
|
||||||
|
nodewebkit: {
|
||||||
|
options: {
|
||||||
|
version: '0.9.2', // node-webkit version
|
||||||
|
build_dir: './release', // Where the build version of my node-webkit app is saved
|
||||||
|
mac: true, // We want to build it for mac
|
||||||
|
win: false, // We want to build it for win
|
||||||
|
linux32: false, // We don't need linux32
|
||||||
|
linux64: false, // We don't need linux64
|
||||||
|
},
|
||||||
|
src: ['./dist/**/*'] // Your node-webkit app
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
// Load the plugin(s)
|
// Load the plugin(s)
|
||||||
@ -235,6 +248,7 @@ module.exports = function(grunt) {
|
|||||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||||
grunt.loadNpmTasks('grunt-contrib-copy');
|
grunt.loadNpmTasks('grunt-contrib-copy');
|
||||||
grunt.loadNpmTasks('grunt-contrib-compress');
|
grunt.loadNpmTasks('grunt-contrib-compress');
|
||||||
|
grunt.loadNpmTasks('grunt-node-webkit-builder');
|
||||||
|
|
||||||
// Build tasks
|
// Build tasks
|
||||||
grunt.registerTask('dist-npm', ['copy:npm', 'copy:npmDev', 'copy:cryptoLib']);
|
grunt.registerTask('dist-npm', ['copy:npm', 'copy:npmDev', 'copy:cryptoLib']);
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
"grunt-autoprefixer": "~0.3.0",
|
"grunt-autoprefixer": "~0.3.0",
|
||||||
"grunt-contrib-watch": "~0.5.3",
|
"grunt-contrib-watch": "~0.5.3",
|
||||||
"grunt-contrib-copy": "~0.4.1",
|
"grunt-contrib-copy": "~0.4.1",
|
||||||
"grunt-contrib-compress": "~0.5.2"
|
"grunt-contrib-compress": "~0.5.2",
|
||||||
|
"grunt-node-webkit-builder": "~0.1.17"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,7 +1,7 @@
|
|||||||
// hey Angular, we're bootstrapping manually!
|
// hey Angular, we're bootstrapping manually!
|
||||||
window.name = 'NG_DEFER_BOOTSTRAP!';
|
window.name = 'NG_DEFER_BOOTSTRAP!';
|
||||||
|
|
||||||
require([
|
requirejs([
|
||||||
'angular',
|
'angular',
|
||||||
'js/controller/dialog',
|
'js/controller/dialog',
|
||||||
'js/controller/popover',
|
'js/controller/popover',
|
||||||
@ -18,7 +18,21 @@ require([
|
|||||||
'cryptoLib/util',
|
'cryptoLib/util',
|
||||||
'angularRoute',
|
'angularRoute',
|
||||||
'angularTouch'
|
'angularTouch'
|
||||||
], function(angular, DialogCtrl, PopoverCtrl, AddAccountCtrl, AccountCtrl, LoginCtrl, LoginInitialCtrl, LoginNewDeviceCtrl, LoginExistingCtrl, MailListCtrl, ReadCtrl, WriteCtrl, NavigationCtrl, util) {
|
], function(
|
||||||
|
angular,
|
||||||
|
DialogCtrl,
|
||||||
|
PopoverCtrl,
|
||||||
|
AddAccountCtrl,
|
||||||
|
AccountCtrl,
|
||||||
|
LoginCtrl,
|
||||||
|
LoginInitialCtrl,
|
||||||
|
LoginNewDeviceCtrl,
|
||||||
|
LoginExistingCtrl,
|
||||||
|
MailListCtrl,
|
||||||
|
ReadCtrl,
|
||||||
|
WriteCtrl,
|
||||||
|
NavigationCtrl,
|
||||||
|
util) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
// reset window.name
|
// reset window.name
|
||||||
|
10
src/package.json
Normal file
10
src/package.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"name": "Whiteout Mail",
|
||||||
|
"version": "0.0.1",
|
||||||
|
"main": "chrome.html",
|
||||||
|
"window": {
|
||||||
|
"toolbar": false,
|
||||||
|
"width": 1024,
|
||||||
|
"height": 768
|
||||||
|
}
|
||||||
|
}
|
@ -1,7 +1,8 @@
|
|||||||
(function() {
|
(function() {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
require.config({
|
requirejs.config({
|
||||||
|
nodeRequire: (typeof module !== 'undefined' && module.exports) ? require : undefined,
|
||||||
baseUrl: 'lib',
|
baseUrl: 'lib',
|
||||||
paths: {
|
paths: {
|
||||||
js: '../js',
|
js: '../js',
|
||||||
|
Loading…
Reference in New Issue
Block a user