Skip to content

Commit ea1caf2

Browse files
authored
Merge pull request #2081 from angular-fullstack/canary
Merge 4.0.0 into master
2 parents 1e06e6d + 8260519 commit ea1caf2

File tree

134 files changed

+2651
-2888
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+2651
-2888
lines changed

Diff for: .travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ before_install:
1414
- ./scripts/sauce_connect_setup.sh
1515
- gem update --system
1616
- gem install sass --version "=3.3.7"
17-
- npm install -g bower grunt-cli
17+
- npm install -g gulp-cli
1818
services: mongodb
1919
cache:
2020
directories:

Diff for: ISSUE_TEMPLATE.md

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Transpiler | Babel / TypeScript
1414
Markup | HTML / Jade
1515
CSS | CSS / LESS / SCSS / Stylus
1616
Router | ngRoute / ui-router
17-
Build Tool | Grunt / Gulp
1817
Client Tests | Jasmine / Mocha
1918
DB | MongoDB / SQL
2019
Auth | Y / N

Diff for: circle.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ machine:
33
node:
44
version: 5.11.1
55
post:
6-
- npm install -g gulp-cli grunt-cli bower
6+
- npm install -g gulp-cli
77

88
## Customize checkout
99
checkout:

Diff for: docs/generators/heroku.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,12 @@ Your app should now be live. To view it run `heroku open`.
4141
> heroku config:set DOMAIN=<your-custom-domain>
4242
>
4343
44-
> WARNING: Deployment is untested with Gulp
45-
4644
To make your deployment process easier consider using [grunt-build-control](https://github.com/robwierzbowski/grunt-build-control).
4745

4846
#### Pushing Updates
4947

50-
grunt
48+
gulp build
5149

5250
Commit and push the resulting build, located in your dist folder:
5351

54-
grunt buildcontrol:heroku
52+
gulp buildcontrol:heroku

Diff for: docs/generators/openshift.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ To make your deployment process easier consider using [grunt-build-control](http
3131

3232
**Pushing Updates**
3333

34-
grunt
34+
gulp build
3535

3636
Commit and push the resulting build, located in your dist folder:
3737

38-
grunt buildcontrol:openshift
38+
gulp buildcontrol:openshift

Diff for: docs/index.md

+9-8
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ All of these can be updated with `bower update` as new versions are released.
5050

5151
## Injection
5252

53-
A grunt/gulp task looks for new files in your `client/app` and `client/components` folder and automatically injects them in the appropriate places based on an injection block.
53+
A gulp task looks for new files in your `client/app` and `client/components` folder and automatically injects them in the appropriate places based on an injection block.
5454

5555
* `less` files into `client/app/app.less`
5656
* `scss` files into `client/app/app.scss`
@@ -68,23 +68,23 @@ A `.yo-rc` file is generated for helping you copy configuration across projects,
6868

6969
## Testing
7070

71-
Running `grunt test` will run the client and server unit tests with karma and mocha.
71+
Running `gulp test` will run the client and server unit tests with karma and mocha.
7272

73-
Use `grunt test:server` to only run server tests.
73+
Use `gulp test:server` to only run server tests.
7474

75-
Use `grunt test:client` to only run client tests.
75+
Use `gulp test:client` to only run client tests.
7676

7777
**Protractor tests**
7878

7979
To setup protractor e2e tests, you must first run
8080

8181
`npm run update-webdriver`
8282

83-
Use `grunt test:e2e` to have protractor go through tests located in the `e2e` folder.
83+
Use `gulp test:e2e` to have protractor go through tests located in the `e2e` folder.
8484

8585
**Code Coverage**
8686

87-
Use `grunt test:coverage` to run mocha-istanbul and generate code coverage reports.
87+
Use `gulp test:coverage` to run mocha-istanbul and generate code coverage reports.
8888

8989
`coverage/server` will be populated with `e2e` and `unit` folders containing the `lcov` reports.
9090

@@ -97,11 +97,12 @@ The coverage taget has 3 available options:
9797

9898
**Debugging**
9999

100-
Use `grunt serve:debug` for a more debugging-friendly environment.
100+
Use `gulp serve:debug` for a more debugging-friendly environment.
101101

102102
## Environment Variables
103103

104-
Keeping your app secrets and other sensitive information in source control isn't a good idea. To have grunt launch your app with specific environment variables, add them to the git ignored environment config file: `server/config/local.env.js`.
104+
Keeping your app secrets and other sensitive information in source control isn't a good idea.
105+
To have gulp launch your app with specific environment variables, add them to the git ignored environment config file: `server/config/local.env.js`.
105106

106107
## Project Structure
107108

Diff for: gulpfile.js

+5-11
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const transpile = lazypipe()
3535
.pipe(babel);
3636

3737
gulp.task('clean', () => {
38-
return del(['generators/**/*', './test/(**|!fixtures/node_modules|!fixtures/bower_components)/*']);
38+
return del(['generators/**/*', './test/(**|!fixtures/node_modules)/*']);
3939
});
4040

4141
gulp.task('babel', () => {
@@ -86,7 +86,7 @@ var processJson = function(src, dest, opt) {
8686

8787
if(/package.json/g.test(src) && opt.test) {
8888
delete json.scripts.postinstall;
89-
json.scripts['update-webdriver'] = 'node node_modules/grunt-protractor-runner/node_modules/protractor/bin/webdriver-manager update || node node_modules/protractor/bin/webdriver-manager update';
89+
json.scripts['update-webdriver'] = 'node node_modules/gulp-protractor-runner/node_modules/protractor/bin/webdriver-manager update || node node_modules/protractor/bin/webdriver-manager update';
9090
}
9191

9292
// set properties
@@ -113,10 +113,7 @@ function updateFixtures(target) {
113113
const dest = __dirname + (deps ? '/angular-fullstack-deps/' : '/test/fixtures/');
114114
const appName = deps ? 'angular-fullstack-deps' : 'tempApp';
115115

116-
return Promise.all([
117-
processJson('templates/app/_package.json', dest + 'package.json', {appName, genVer, private: !deps, test: test}),
118-
processJson('templates/app/_bower.json', dest + 'bower.json', {appName, genVer, private: !deps, test: test})
119-
]);
116+
return processJson('templates/app/_package.json', dest + 'package.json', {appName, genVer, private: !deps, test: test});
120117
}
121118

122119
gulp.task('updateFixtures', cb => {
@@ -143,16 +140,13 @@ function execAsync(cmd, opt) {
143140
}
144141

145142
gulp.task('installFixtures', function() {
146-
gutil.log('installing npm & bower dependencies for generated app');
143+
gutil.log('installing npm dependencies for generated app');
147144
let progress = setInterval(() => {
148145
process.stdout.write('.');
149146
}, 1 * 1000);
150147
shell.cd('test/fixtures');
151148

152-
return Promise.all([
153-
execAsync('npm install --quiet', {cwd: '../fixtures'}),
154-
execAsync('bower install', {cwd: '../fixtures'})
155-
]).then(() => {
149+
execAsync('npm install --quiet', {cwd: '../fixtures'}).then(() => {
156150
process.stdout.write('\n');
157151
if(!process.env.SAUCE_USERNAME) {
158152
gutil.log('running npm run-script update-webdriver');

Diff for: package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "generator-angular-fullstack",
3-
"version": "3.7.6",
3+
"version": "4.0.0-rc.0",
44
"description": "Yeoman generator for creating MEAN stack applications, using MongoDB, Express, AngularJS, and Node",
55
"keywords": [
66
"yeoman-generator",
@@ -40,11 +40,12 @@
4040
"babel-plugin-transform-flow-strip-types": "^6.7.0",
4141
"bluebird": "^3.3.5",
4242
"chalk": "^1.1.0",
43-
"generator-ng-component": "~0.3.1",
43+
"generator-ng-component": "~1.0.1",
4444
"glob": "^7.0.3",
4545
"gulp-babel": "^6.1.2",
4646
"gulp-beautify": "^2.0.0",
4747
"gulp-filter": "^4.0.0",
48+
"gulp-tap": "^0.1.3",
4849
"insight": "~0.8.1",
4950
"lodash": "^4.13.1",
5051
"semver": "^5.1.0",
@@ -73,7 +74,6 @@
7374
"gulp-plumber": "^1.1.0",
7475
"gulp-util": "^3.0.7",
7576
"jit-grunt": "~0.10.0",
76-
"jscs": "^3.0.3",
7777
"lazypipe": "^1.0.1",
7878
"merge-stream": "^1.0.0",
7979
"minimatch": "^3.0.2",
@@ -87,8 +87,8 @@
8787
"yeoman-test": "~1.4.0"
8888
},
8989
"engines": {
90-
"node": "^5.10.1",
91-
"npm": "^3.8.3"
90+
"node": "^6.2.2",
91+
"npm": "^3.9.5"
9292
},
9393
"license": "BSD-2-Clause"
9494
}

Diff for: readme.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919

2020
## Usage
2121

22-
Install `yo`, `grunt-cli`/`gulp-cli`, `bower`, and `generator-angular-fullstack`:
22+
Install `yo`, `gulp-cli`, and `generator-angular-fullstack`:
2323
```
24-
npm install -g yo grunt-cli gulp-cli bower generator-angular-fullstack
24+
npm install -g yo gulp-cli generator-angular-fullstack
2525
```
2626

2727
> To install the latest 4.0.0 Beta with Webpack support, use `generator-angular-fullstack@beta`
@@ -36,7 +36,7 @@ Run `yo angular-fullstack`, optionally passing an app name:
3636
yo angular-fullstack [app-name]
3737
```
3838

39-
Run `grunt`/`gulp build` for building, `grunt serve`/`gulp serve` for development, and `grunt serve:dist`/`gulp serve:dist` for a preview of the built app.
39+
Run `gulp build` for building, `gulp serve` for development, and `gulp serve:dist` for a preview of the built app.
4040

4141
## Prerequisites
4242

@@ -47,7 +47,7 @@ Run `grunt`/`gulp build` for building, `grunt serve`/`gulp serve` for developmen
4747

4848
**General**
4949

50-
* Build Systems: `Grunt` (deprecated, will be removed in 4.0.0), `Gulp`
50+
* Build Systems: `Gulp`
5151
* Testing:
5252
* `Jasmine`
5353
* `Mocha + Chai + Sinon`

0 commit comments

Comments
 (0)