@ionic/cli-plugin-ionic-angular
Advanced tools
Comparing version 1.4.0-alpha.1b7049bb to 1.4.0-alpha.2098819c
@@ -6,8 +6,2 @@ # Change Log | ||
<a name="1.4.0-alpha.1b7049bb"></a> | ||
# [1.4.0-alpha.1b7049bb](https://github.com/ionic-team/ionic-cli/compare/@ionic/cli-plugin-ionic-angular@1.3.2...@ionic/cli-plugin-ionic-angular@1.4.0-alpha.1b7049bb) (2017-07-14) | ||
<a name="1.3.2"></a> | ||
@@ -14,0 +8,0 @@ ## [1.3.2](https://github.com/ionic-team/ionic-cli/compare/@ionic/cli-plugin-ionic-angular@1.3.1...@ionic/cli-plugin-ionic-angular@1.3.2) (2017-07-11) |
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
const chalk = require("chalk"); | ||
@@ -15,3 +8,3 @@ const cli_utils_1 = require("@ionic/cli-utils"); | ||
function build(args) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
const appScriptsArgs = cli_utils_1.minimistOptionsToArray(args.options, { useEquals: false, ignoreFalse: true, allowCamelCase: true }); | ||
@@ -18,0 +11,0 @@ process.argv = ['node', 'appscripts'].concat(appScriptsArgs); |
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
const chalk = require("chalk"); | ||
@@ -17,3 +10,3 @@ const path = require("path"); | ||
function generate(args) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
if (!args.env.project.directory) { | ||
@@ -24,3 +17,3 @@ return []; | ||
process.argv = ['node', 'appscripts'].concat(appScriptsArgs); | ||
const ionicAngularPackageJsonFilePath = path.resolve(args.env.project.directory, 'node_modules', 'ionic-angular', 'package.json'); | ||
const ionicAngularPackageJsonFilePath = path.resolve(args.env.project.directory, 'node_modules', 'ionic-angular', 'package.json'); // TODO | ||
try { | ||
@@ -68,5 +61,5 @@ const ionicAngularPackageJson = yield cli_utils_1.readPackageJsonFile(ionicAngularPackageJsonFilePath); | ||
function promptQuestions(context) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
return yield generate_1.prompt(context); | ||
}); | ||
} |
import { IHookEngine } from '@ionic/cli-utils'; | ||
export declare const name = "__NAME__"; | ||
export declare const version = "__VERSION__"; | ||
export declare const preferGlobal: boolean; | ||
export declare function registerHooks(hooks: IHookEngine): void; |
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
const chalk = require("chalk"); | ||
@@ -18,7 +11,6 @@ const path = require("path"); | ||
exports.name = '@ionic/cli-plugin-ionic-angular'; | ||
exports.version = '1.4.0-alpha.1b7049bb'; | ||
exports.preferGlobal = false; | ||
exports.version = '1.4.0-alpha.2098819c'; | ||
function getIonicAngularVersion(env) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const ionicAngularPackageJsonFilePath = path.resolve(env.project.directory, 'node_modules', 'ionic-angular', 'package.json'); | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
const ionicAngularPackageJsonFilePath = path.resolve(env.project.directory, 'node_modules', 'ionic-angular', 'package.json'); // TODO | ||
try { | ||
@@ -34,4 +26,4 @@ const ionicAngularPackageJson = yield cli_utils_1.readPackageJsonFile(ionicAngularPackageJsonFilePath); | ||
function getAppScriptsVersion(env) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const appScriptsPackageJsonFilePath = path.resolve(env.project.directory, 'node_modules', '@ionic', 'app-scripts', 'package.json'); | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
const appScriptsPackageJsonFilePath = path.resolve(env.project.directory, 'node_modules', '@ionic', 'app-scripts', 'package.json'); // TODO | ||
try { | ||
@@ -47,3 +39,3 @@ const appScriptsPackageJson = yield cli_utils_1.readPackageJsonFile(appScriptsPackageJsonFilePath); | ||
function registerHooks(hooks) { | ||
hooks.register(exports.name, 'command:docs', ({ env }) => __awaiter(this, void 0, void 0, function* () { | ||
hooks.register(exports.name, 'command:docs', ({ env }) => tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
const docsHomepage = 'https://ionicframework.com/docs'; | ||
@@ -57,6 +49,6 @@ if (!env.project.directory) { | ||
})); | ||
hooks.register(exports.name, 'command:generate', (args) => __awaiter(this, void 0, void 0, function* () { | ||
hooks.register(exports.name, 'command:generate', (args) => tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
yield generate_1.generate(args); | ||
})); | ||
hooks.register(exports.name, 'command:info', ({ env }) => __awaiter(this, void 0, void 0, function* () { | ||
hooks.register(exports.name, 'command:info', ({ env }) => tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
if (!env.project.directory) { | ||
@@ -68,10 +60,10 @@ return []; | ||
{ type: 'local-packages', name: 'Ionic Framework', version: ionicAngularVersion ? `ionic-angular ${ionicAngularVersion}` : 'not installed' }, | ||
{ type: 'local-packages', name: exports.name, version: exports.version }, | ||
{ type: 'cli-packages', name: exports.name, version: exports.version, path: path.dirname(path.dirname(__filename)) }, | ||
{ type: 'local-packages', name: '@ionic/app-scripts', version: appScriptsVersion ? appScriptsVersion : 'not installed' }, | ||
]; | ||
})); | ||
hooks.register(exports.name, 'command:serve', (args) => __awaiter(this, void 0, void 0, function* () { | ||
hooks.register(exports.name, 'command:serve', (args) => tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
return serve_1.serve(args); | ||
})); | ||
hooks.register(exports.name, 'command:build', (args) => __awaiter(this, void 0, void 0, function* () { | ||
hooks.register(exports.name, 'command:build', (args) => tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
yield build_1.build(args); | ||
@@ -78,0 +70,0 @@ })); |
@@ -1,4 +0,2 @@ | ||
import { CommandHookArgs } from '@ionic/cli-utils'; | ||
export declare function serve(args: CommandHookArgs): Promise<{ | ||
[key: string]: any; | ||
}>; | ||
import { CommandHookArgs, ServeCommandHookResponse } from '@ionic/cli-utils'; | ||
export declare function serve(args: CommandHookArgs): Promise<ServeCommandHookResponse>; |
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
const chalk = require("chalk"); | ||
@@ -15,3 +8,3 @@ const cli_utils_1 = require("@ionic/cli-utils"); | ||
function serve(args) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
let chosenIP = 'localhost'; | ||
@@ -47,2 +40,4 @@ if (args.options.externalIpRequired) { | ||
const context = AppScripts.generateContext(); | ||
// using app-scripts and livereload is requested | ||
// Also remove commandName from the rawArgs passed | ||
args.env.log.info(`Starting app-scripts server: ${chalk.bold(appScriptsArgs.join(' '))} - Ctrl+C to cancel`); | ||
@@ -60,5 +55,5 @@ const settings = yield AppScripts.serve(context); | ||
(localAddress !== externalAddress ? `External: ${chalk.bold(externalAddress)}` : '')); | ||
return Object.assign({ publicIp: chosenIP, protocol: 'http' }, settings); | ||
return Object.assign({ publicIp: chosenIP, protocol: 'http', localAddress: 'localhost', externalAddress: chosenIP, port: settings.httpPort }, settings); | ||
}); | ||
} | ||
exports.serve = serve; |
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
const path = require("path"); | ||
@@ -15,3 +8,3 @@ const cli_utils_1 = require("@ionic/cli-utils"); | ||
function getPages(context) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
const AppScripts = modules_1.load('@ionic/app-scripts'); | ||
@@ -31,3 +24,3 @@ const pages = yield AppScripts.getNgModules(context, ['page', 'component']); | ||
function prompt(context) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
return context.appNgModulePath; | ||
@@ -38,3 +31,3 @@ }); | ||
function tabsPrompt(env) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
const tabNames = []; | ||
@@ -41,0 +34,0 @@ const howMany = yield env.prompt({ |
{ | ||
"name": "@ionic/cli-plugin-ionic-angular", | ||
"version": "1.4.0-alpha.1b7049bb", | ||
"version": "1.4.0-alpha.2098819c", | ||
"description": "Ionic CLI build plugin for Ionic Angular projects", | ||
@@ -10,3 +10,3 @@ "homepage": "https://ionic.io/", | ||
"clean": "rm -rf ./dist", | ||
"lint": "tslint -c ../../tslint.json \"src/**/*.ts\"", | ||
"lint": "tslint --config ../../tslint.js --project tsconfig.json --type-check", | ||
"build": "npm run clean && npm run build-ts && npm run build-js", | ||
@@ -46,4 +46,5 @@ "build-ts": "tsc", | ||
"dependencies": { | ||
"@ionic/cli-utils": "1.6.0-alpha.1b7049bb", | ||
"chalk": "^2.0.0" | ||
"@ionic/cli-utils": "1.6.0-alpha.2098819c", | ||
"chalk": "^2.0.0", | ||
"tslib": "^1.7.1" | ||
}, | ||
@@ -55,3 +56,3 @@ "devDependencies": { | ||
"@ionic/app-scripts": "^2.0.0", | ||
"@ionic/cli-scripts": "0.3.0-alpha.1b7049bb", | ||
"@ionic/cli-scripts": "0.3.0-alpha.2098819c", | ||
"@types/chalk": "^0.4.31", | ||
@@ -58,0 +59,0 @@ "@types/clean-css": "^3.4.30", |
17484
3
277
+ Addedtslib@^1.7.1
+ Added@ionic/cli-utils@1.6.0-alpha.2098819c(transitive)
+ Addedtslib@1.14.1(transitive)
- Removed@ionic/cli-utils@1.6.0-alpha.1b7049bb(transitive)
- Removedrimraf@2.7.1(transitive)