Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Use documentRoot as zip name for ionic upload #144

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules/
*.swp
coverage/
.vscode/
.idea/
4 changes: 3 additions & 1 deletion lib/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var shelljs = require('shelljs');
var log = require('./logging').logger;
var chalk = require('chalk');

var TEMP_FILENAME = 'www.zip';
var TEMP_FILENAME = '';
var Upload = module.exports;

Upload.doUpload = function doUpload(appDirectory, jar, note, deploy) {
Expand All @@ -29,6 +29,8 @@ Upload.doUpload = function doUpload(appDirectory, jar, note, deploy) {
var documentRoot = project.get('documentRoot') || 'www';
var indexPath = path.join(appDirectory, documentRoot, 'index.html');
var upload;

TEMP_FILENAME = documentRoot + '.zip';
try {
return Upload.addCacheBusters(indexPath)
.then(function() {
Expand Down