mirror of
https://github.com/moparisthebest/mail
synced 2024-11-22 17:02:17 -05:00
commit
441ec3e4ca
2
.gitignore
vendored
2
.gitignore
vendored
@ -5,7 +5,7 @@ test/lib/
|
||||
.sass-cache
|
||||
src/css/
|
||||
dist/
|
||||
*.zip
|
||||
release/
|
||||
test/integration/src/
|
||||
src/lib/*.js
|
||||
src/js/crypto/aes-cbc.js
|
||||
|
@ -29,6 +29,7 @@
|
||||
"deepEqual",
|
||||
"start",
|
||||
"chrome",
|
||||
"requirejs",
|
||||
"define",
|
||||
"self",
|
||||
"describe",
|
||||
|
20
Gruntfile.js
20
Gruntfile.js
@ -209,18 +209,31 @@ module.exports = function(grunt) {
|
||||
dest: 'test/integration/src/'
|
||||
}
|
||||
},
|
||||
|
||||
compress: {
|
||||
main: {
|
||||
chrome: {
|
||||
options: {
|
||||
mode: 'zip',
|
||||
archive: zipName + '.zip'
|
||||
archive: 'release/whiteout_mail_' + zipName + '.zip'
|
||||
},
|
||||
expand: true,
|
||||
cwd: 'dist/',
|
||||
src: ['**/*'],
|
||||
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)
|
||||
@ -235,6 +248,7 @@ module.exports = function(grunt) {
|
||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||
grunt.loadNpmTasks('grunt-contrib-copy');
|
||||
grunt.loadNpmTasks('grunt-contrib-compress');
|
||||
grunt.loadNpmTasks('grunt-node-webkit-builder');
|
||||
|
||||
// Build tasks
|
||||
grunt.registerTask('dist-npm', ['copy:npm', 'copy:npmDev', 'copy:cryptoLib']);
|
||||
|
@ -33,6 +33,7 @@
|
||||
"grunt-autoprefixer": "~0.3.0",
|
||||
"grunt-contrib-watch": "~0.5.3",
|
||||
"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!
|
||||
window.name = 'NG_DEFER_BOOTSTRAP!';
|
||||
|
||||
require([
|
||||
requirejs([
|
||||
'angular',
|
||||
'js/controller/dialog',
|
||||
'js/controller/popover',
|
||||
@ -18,7 +18,21 @@ require([
|
||||
'cryptoLib/util',
|
||||
'angularRoute',
|
||||
'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';
|
||||
|
||||
// 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() {
|
||||
'use strict';
|
||||
|
||||
require.config({
|
||||
requirejs.config({
|
||||
nodeRequire: (typeof module !== 'undefined' && module.exports) ? require : undefined,
|
||||
baseUrl: 'lib',
|
||||
paths: {
|
||||
js: '../js',
|
||||
|
Loading…
Reference in New Issue
Block a user