1
0
mirror of https://github.com/moparisthebest/mail synced 2025-02-16 23:20:09 -05:00

Starting app works. Added source maps to build

This commit is contained in:
Tankred Hase 2014-10-08 19:56:25 +02:00 committed by Felix Hammerl
parent fc613ce501
commit 5d608cad67
3 changed files with 32 additions and 8 deletions

1
.gitignore vendored
View File

@ -9,4 +9,3 @@ release/
test/integration/src/ test/integration/src/
.elasticbeanstalk/ .elasticbeanstalk/
test/unit/index.js test/unit/index.js
test/unit/index.js.map

View File

@ -108,7 +108,7 @@ module.exports = function(grunt) {
browserify: { browserify: {
app: { app: {
files: { files: {
'dist/js/app.min.js': ['src/js/app.js'] 'dist/js/app.browserified.js': ['src/js/app.js']
}, },
options: { options: {
external: ['openpgp', 'node-forge', 'net', 'tls', 'crypto'] // node.js apis not required at build time external: ['openpgp', 'node-forge', 'net', 'tls', 'crypto'] // node.js apis not required at build time
@ -116,7 +116,7 @@ module.exports = function(grunt) {
}, },
pbkdf2Worker: { pbkdf2Worker: {
files: { files: {
'dist/js/pbkdf2-worker.min.js': ['src/js/crypto/pbkdf2-worker.js'] 'dist/js/pbkdf2-worker.browserified.js': ['src/js/crypto/pbkdf2-worker.js']
} }
}, },
unitTest: { unitTest: {
@ -150,13 +150,31 @@ module.exports = function(grunt) {
'src/lib/lawnchair/lawnchair-adapter-webkit-sqlite-git.js', 'src/lib/lawnchair/lawnchair-adapter-webkit-sqlite-git.js',
'src/lib/lawnchair/lawnchair-adapter-indexed-db-git.js', 'src/lib/lawnchair/lawnchair-adapter-indexed-db-git.js',
'node_modules/dompurify/purify.js', 'node_modules/dompurify/purify.js',
'dist/js/app.min.js' 'dist/js/app.browserified.js'
] ]
},
options: {
mangle: false,
sourceMap: true,
sourceMapName: 'dist/js/app.min.js.map'
} }
}, },
readSandbox: {
files: {
'dist/js/read-sandbox.min.js': [
'node_modules/dompurify/purify.js',
'src/js/controller/read-sandbox.js'
]
},
options: {
sourceMap: true,
sourceMapName: 'dist/js/read-sandbox.min.js.map'
}
},
pbkdf2Worker: { pbkdf2Worker: {
files: { files: {
'dist/js/pbkdf2-worker.min.js': ['dist/js/pbkdf2-worker.min.js'] 'dist/js/pbkdf2-worker.min.js': ['dist/js/pbkdf2-worker.browserified.js']
} }
}, },
unitTest: { unitTest: {
@ -256,7 +274,15 @@ module.exports = function(grunt) {
timestamp: true, timestamp: true,
hash: true, hash: true,
cache: ['socket.io/socket.io.js'], cache: ['socket.io/socket.io.js'],
exclude: ['appcache.manifest', 'manifest.webapp'], exclude: [
'appcache.manifest',
'manifest.webapp',
'js/app.min.js.map',
'js/app.browserified.js',
'js/crypto/pbkdf2-worker.browserified.js',
'js/pbkdf2-worker.browserified.js',
'js/read-sandbox.min.js.map'
],
master: ['index.html'] master: ['index.html']
}, },
src: ['**/*.*'], src: ['**/*.*'],

View File

@ -5,8 +5,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" media="all" href="../css/read-sandbox.min.css" type="text/css"> <link rel="stylesheet" media="all" href="../css/read-sandbox.min.css" type="text/css">
<script src="../lib/purify.js"></script> <script src="../js/read-sandbox.min.js"></script>
<script src="../js/controller/read-sandbox.js"></script>
</head> </head>
<body></body> <body></body>