Skip to content

Commit

Permalink
Use @angular/cli instead of angular-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
beeman committed Feb 5, 2017
1 parent b6bb882 commit e932e99
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions SETUP.md
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -11,11 +11,11 @@ $ git clone [email protected]: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
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion fireloop-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion generator-fireloop/src/ng2universal/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'); }
Expand Down
2 changes: 1 addition & 1 deletion generator-fireloop/src/ng2web/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'); }
Expand Down
2 changes: 1 addition & 1 deletion generator-fireloop/src/serve/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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']
}
}
Expand Down

0 comments on commit e932e99

Please sign in to comment.