apache / cordova-osx

@@ -20,7 +20,6 @@
Loading
20 20
*/
21 21
22 22
var shell = require('shelljs');
23 -
var Q = require('q');
24 23
var path = require('path');
25 24
var fs = require('fs');
26 25
var ROOT = path.join(__dirname, '..', '..');
@@ -153,12 +152,12 @@
Loading
153 152
154 153
    // check that project path doesn't exist
155 154
    if (fs.existsSync(project_path)) {
156 -
        return Q.reject('Project already exists');
155 +
        return Promise.reject('Project already exists');
157 156
    }
158 157
159 158
    // check that parent directory does exist so cp -r will not fail
160 159
    if (!fs.existsSync(project_parent)) {
161 -
        return Q.reject(project_parent + ' does not exist. Please specify an existing parent folder');
160 +
        return Promise.reject(project_parent + ' does not exist. Please specify an existing parent folder');
162 161
    }
163 162
164 163
    // create the project directory and copy over files
@@ -193,7 +192,7 @@
Loading
193 192
    copyScripts(project_path);
194 193
195 194
    events.emit('log', generateDoneMessage('create', use_shared));
196 -
    return Q.resolve();
195 +
    return Promise.resolve();
197 196
};
198 197
199 198
exports.updateProject = function (projectPath, opts, events) {
@@ -203,7 +202,7 @@
Loading
203 202
        copyScripts(projectPath);
204 203
        events.emit('log', generateDoneMessage('update', opts.link));
205 204
    });
206 -
    return Q.resolve();
205 +
    return Promise.resolve();
207 206
};
208 207
209 208
function generateDoneMessage (type, link) {
Files Coverage
bin 39.20%
Project Totals (5 files) 39.20%
Notifications are pending CI completion. Periodically Codecov will check the CI state, when complete notifications will be submitted. Push notifications now.
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading