From e932e9924c80f65e59395fba1e6870ebe5ae9d32 Mon Sep 17 00:00:00 2001 From: Bram Borggreve Date: Sun, 5 Feb 2017 03:18:25 -0500 Subject: [PATCH] Use @angular/cli instead of angular-cli --- SETUP.md | 10 +++++----- fireloop-cli/package.json | 2 +- generator-fireloop/src/ng2universal/index.ts | 2 +- generator-fireloop/src/ng2web/index.ts | 2 +- generator-fireloop/src/serve/index.ts | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/SETUP.md b/SETUP.md index 30dab80..e83cc46 100644 --- a/SETUP.md +++ b/SETUP.md @@ -1,7 +1,7 @@ How to locally setup FireLoop ============== -If you want to start contributing or just because you want to have FireLoop locally installed, then you will need to read the following steps: +If you want to start contributing or just because you want to have FireLoop installed locally, then you will need to read the following steps: ## Clone FireLoop Repo First of all you need to clone the FireLoop repository from GitHub. @@ -11,11 +11,11 @@ $ git clone git@github.com:mean-expert-official/fireloop.io.git ```` ## FireLoop CLI -The FireLoop CLI is a gateway that acts as an interface for the final user, thought it uses a couple of yeoman generators to work on the actual scaffolding. +The FireLoop CLI is a gateway that acts as an interface for the final user, though it uses a couple of yeoman generators to work on the actual scaffolding. -Since the FireLoop CLI is for users public entrace, you will require to `$npm link` this specific project locally running. +Since the FireLoop CLI is for users public entrance, you will require to `npm link` this specific project locally running. -> IMPORTANT: Make sure you globally uninstall previous versions of fireloop $ npm uninstall -g @mean-expert/fireloop +> IMPORTANT: Make sure you globally uninstall previous versions of fireloop `$ npm uninstall -g @mean-expert/fireloop` ````sh $ cd fireloop.io/fireloop-cli @@ -25,7 +25,7 @@ $ npm link The commands described above will install local copy of the FireLoop CLI running from the code you just cloned. -Any change you make within the fireloop-cli code, will be immediatly reflected within the command line interface functionality. +Any change you make within the fireloop-cli code, will be immediately reflected within the command line interface functionality. ## FireLoop Generator The FireLoop Generator is a yeoman generator that actually coordinates the setup of the project, sdk generations and it provides with the templates that transforms a regular LoopBack application into a FireLoop Application. diff --git a/fireloop-cli/package.json b/fireloop-cli/package.json index 8437f98..01107e2 100644 --- a/fireloop-cli/package.json +++ b/fireloop-cli/package.json @@ -24,7 +24,7 @@ }, "homepage": "https://github.com/mean-expert-official/fireloop.io#readme", "dependencies": { - "angular-cli": "^1.0.0-beta.24", + "@angular/cli": "^1.0.0-beta.30", "chalk": "1.1.3", "extfs": "0.0.7", "generator-fireloop": "1.0.0-beta.1.3", diff --git a/generator-fireloop/src/ng2universal/index.ts b/generator-fireloop/src/ng2universal/index.ts index df7900d..0ddab4d 100644 --- a/generator-fireloop/src/ng2universal/index.ts +++ b/generator-fireloop/src/ng2universal/index.ts @@ -34,7 +34,7 @@ module.exports = generators.Base.extend({ done(); } else { this.log(chalk.green(`\n\nCreating new Angular 2 Application: ${answers.name}`)); - let nmdir: string = require.resolve('angular-cli').replace(/angular-cli(\/|\\)lib(\/|\\)cli(\/|\\)index.js/, ''); + let nmdir: string = require.resolve('@angular/cli').replace(/@angular(\/|\\)cli(\/|\\)lib(\/|\\)cli(\/|\\)index.js/, ''); let clicmd: string = path.join(nmdir, '.bin/ng'); let args: string[] = ['new', answers.name]; if (answers.universal) { args.push('--universal'); } diff --git a/generator-fireloop/src/ng2web/index.ts b/generator-fireloop/src/ng2web/index.ts index a2d7725..22388ed 100644 --- a/generator-fireloop/src/ng2web/index.ts +++ b/generator-fireloop/src/ng2web/index.ts @@ -32,7 +32,7 @@ module.exports = generators.Base.extend({ done(); } else { this.log(chalk.green(`\n\nCreating new Angular 2 Application: ${answers.name}`)); - let nmdir:string = require.resolve('angular-cli').replace(/angular-cli(\/|\\)lib(\/|\\)cli(\/|\\)index.js/, ''); + let nmdir:string = require.resolve('@angular/cli').replace(/@angular(\/|\\)cli(\/|\\)lib(\/|\\)cli(\/|\\)index.js/, ''); let clicmd: string = path.join(nmdir, '.bin/ng'); let args: string[] = ['new', answers.name]; if (answers.universal) { args.push('--universal'); } diff --git a/generator-fireloop/src/serve/index.ts b/generator-fireloop/src/serve/index.ts index cfd9ca6..3ed001e 100644 --- a/generator-fireloop/src/serve/index.ts +++ b/generator-fireloop/src/serve/index.ts @@ -33,7 +33,7 @@ module.exports = generators.Base.extend({ cmd : path.join(require.resolve('nodemon').replace(/nodemon(\/|\\)lib(\/|\\)nodemon.js/, ''), '.bin/nodemon') }, ng2web: { - cmd : path.join(require.resolve('angular-cli').replace(/angular-cli(\/|\\)lib(\/|\\)cli(\/|\\)index.js/, ''), '.bin/ng'), + cmd : path.join(require.resolve('@angular/cli').replace(/@angular(\/|\\)cli(\/|\\)lib(\/|\\)cli(\/|\\)index.js/, ''), '.bin/ng'), argv : ['serve'] } }