Skip to content

Merge 4.0.0 into master #2081

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 133 commits into from
Jul 22, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
133 commits
Select commit Hold shift + click to select a range
f9e64e2
feat(gen:app): remove bower, initial webpack support
Awk34 May 7, 2016
0f73fac
refactor(gen/test): use gulp for all tests
Awk34 Jun 6, 2016
5151127
test(gen:pre): remove bower pre-tests
Awk34 Jun 6, 2016
af7a6e6
test(gen:get-expected-files): fix expected files
Awk34 Jun 6, 2016
97cc341
refactor(gen:test): don't symlink `bower_components` anymore
Awk34 Jun 6, 2016
1327d0b
fix(e2e): get e2e tests running
Awk34 Jun 6, 2016
445435e
fix(jscs):
Awk34 Jun 6, 2016
dd73e59
fix(gulp): uncomment `open(...)`
Awk34 Jun 6, 2016
f7cae15
fix(e2e): fix some webpack config for e2e
Awk34 Jun 10, 2016
536e9a1
fix(webpack): fix ng-annotate for e2e
Awk34 Jun 10, 2016
4e3f59f
fix(e2e): fix some async quirks
Awk34 Jun 10, 2016
c94f5f2
fix(gen:test): index.html -> _index.html
Awk34 Jun 10, 2016
da9a1ee
chore(package): add jade-loader
Awk34 Jun 11, 2016
e1b2b7e
fix(gen:app): don't run bower after scaffold
Awk34 Jun 11, 2016
f5302a7
chore(package): replace jade-loader with pug-html-loader
Awk34 Jun 11, 2016
ee1a4b1
fix(jade): fix navbar jade template
Awk34 Jun 11, 2016
57a16dd
fix(client): fix template requires
Awk34 Jun 11, 2016
3e65d90
fix(webpack): fix jade/html config
Awk34 Jun 11, 2016
0f4abd9
fix(gulp-protractor): throw on error
Awk34 Jun 11, 2016
1e2311e
fix(client): exclude oauthButtons import if !oauth
Awk34 Jun 11, 2016
e3047a8
chore(circle): remove grunt-cli, wiredep; add sauce-connect
Awk34 Jun 11, 2016
b45af55
test(gen): comment e2e for now
Awk34 Jun 12, 2016
c67572e
chore(package): remove wiredep things
Awk34 Jun 16, 2016
881d170
fix(test:client): fix client tests for TS
Awk34 Jun 16, 2016
03d1c95
fix(gulp): process.exit on karma errors, remove wiredep import
Awk34 Jun 16, 2016
2274545
fix(client): fix ngRoute imports
Koslun Jun 16, 2016
9d95083
fix(client): fix css/font paths
Awk34 Jun 16, 2016
c3b41ef
fix(webpack): use raw loader with jade
Awk34 Jun 16, 2016
718bbd6
feat(client:karma): add karma-sourcemap-loader
Awk34 Jun 16, 2016
523abf4
fix(test:client): require angular in mocks
Awk34 Jun 16, 2016
7960c35
fix(test:client): fix for ts + sprint-js
Awk34 Jun 16, 2016
2dd7987
fix(webpack): don't use `exclude` in ts
Awk34 Jun 16, 2016
edf5524
feat(gulp): separate reg and coverage server tests
Awk34 Jun 16, 2016
e59864e
chore(package): add version numbers for less-loader, stylus-loader
Awk34 Jun 16, 2016
8fa3e0a
fix(server): exclude session code if noModels
Awk34 Jun 16, 2016
34dd31e
fix(webpack): fix some conditionals
Awk34 Jun 16, 2016
86a8fa3
fix(stylus): use bootstrap-styl, font-awesome-stylus
Awk34 Jun 16, 2016
9df7265
refactor(client): `~` in css-loader requires will find `node_modules`…
Awk34 Jun 16, 2016
8bce0f2
fix(webpack): fix style `include`s
Awk34 Jun 16, 2016
b152a77
fix(webpack): fix file-loader regex for versioned font imports
Awk34 Jun 16, 2016
ce0533f
fix(gulp): always use `{bootstrap,font-awesome}`
Awk34 Jun 16, 2016
51e8c6b
fix(tsconfig): fix loading of typings
Koslun Jun 16, 2016
93eea9e
fix(routerDecorator): fix lodash import
Koslun Jun 17, 2016
8f47652
feat(typings): add angular-resource typings
Koslun Jun 17, 2016
98add1d
feat(polyfills): set type for Error
Koslun Jun 17, 2016
d8346f9
fix(webpack): we don't need the raw loader with the pug-html loader
Awk34 Jun 18, 2016
ca4e304
fix(sql): add a `where` parameter for `model.destroy`
Jun 19, 2016
7538bca
fix(client:auth.decorator): redirect the user to the login page if is…
mtvs Jun 20, 2016
7db19e2
feat(flow): add Flow support
Awk34 Jun 20, 2016
e44cb04
feat(package): refactor EJS, add `flow` command
Awk34 Jun 20, 2016
5b00977
feat(webpack): improve comment stripping config
Awk34 Jun 20, 2016
fd99da8
test(gen): add `.flowconfig` file expectation
Awk34 Jun 20, 2016
7f0e1c8
fix(gen): fix flow regex
Awk34 Jun 20, 2016
4350dc3
feat(gen): default flow to false
Awk34 Jun 20, 2016
4da3072
Merge remote-tracking branch 'origin/canary' into webpack
Awk34 Jun 20, 2016
869acf1
Merge branch 'canary' of https://github.com/angular-fullstack/generat…
Awk34 Jun 20, 2016
7e921b5
Merge pull request #1971 from angular-fullstack/webpack
Awk34 Jun 20, 2016
23835e3
feat(project): trade JSHint + JSCS for ESLint
Awk34 Jun 20, 2016
f022e3a
test(gen): update expected files for eslint
Awk34 Jun 20, 2016
272abef
feat(gen): add --skip-config flag
Awk34 Jun 20, 2016
fc4270c
feat(server:user.model): require callback in `makeSalt` function
Awk34 Jun 20, 2016
01d03d4
fix(eslint): default to 2-space indents
Awk34 Jun 20, 2016
4dd71a9
refactor(server): refactor some things to make eslint happier
Awk34 Jun 20, 2016
9e073d5
test(gen): remove JSCS tests
Awk34 Jun 20, 2016
80d2036
fix(gulp): fix build pipeline
Koslun Jun 21, 2016
d5e18f1
fix(gulp): fix gulp build images
Koslun Jun 21, 2016
663a4bb
refactor(gulp:ts): remove deprecated tsconfig injection tasks
Koslun Jun 21, 2016
c85dac2
refactor(ts:config): remove deprecated config "files"
Koslun Jun 21, 2016
0eabe8c
test(gen:endpoint): refactor endpoint tests to use ESLint
Awk34 Jun 21, 2016
1958a2a
Merge pull request #1998 from angular-fullstack/webpack-gulp-clean-up
Awk34 Jun 21, 2016
0748397
fix(gen): remove old jshint config files
Awk34 Jun 21, 2016
d4a61c3
test(gen:endpoint): include sinon,expect globals for eslint
Awk34 Jun 21, 2016
b7f022a
refactor(gen:endpoint): style/refactor to pass ESLint
Awk34 Jun 21, 2016
dd485cb
Merge pull request #1993 from angular-fullstack/eslint
Awk34 Jun 21, 2016
bf78a58
Merge branch 'master' of github.com:angular-fullstack/generator-angul…
Awk34 Jun 21, 2016
6897e91
refactor(gen): remove most references to grunt
Awk34 Jun 27, 2016
12fe222
style(package): use `<%# EJS comments %>`
Awk34 Jun 27, 2016
55a735f
feat(server:seed): modify seed things text
Awk34 Jun 27, 2016
6218e99
fix(package): fix main (server/index.js)
Awk34 Jun 27, 2016
8bc7074
chore(gen:package): use latest node 6
Awk34 Jun 27, 2016
ce6abc9
chore(package): use latest node 4
Awk34 Jun 27, 2016
6759d8d
chore(travis): use latest node 4, 5
Awk34 Jun 27, 2016
3099786
perf(gulp): lazy-load webpack config
Awk34 Jun 27, 2016
3b3e4b5
fix(gen): add port var assignment
Awk34 Jun 27, 2016
58d4bac
fix(client:css): fix vanilla CSS, remove deprecated inject:css task
Awk34 Jun 27, 2016
17c8a28
style(gen:endpoint):
Awk34 Jun 27, 2016
c4b4df8
fix(gen): fix app.css EJS
Awk34 Jun 27, 2016
2ff359d
refactor(client): create constants module ourselves
Awk34 Jun 27, 2016
e81a9c6
fix(gulp): fix css injector for vanilla css
Awk34 Jun 27, 2016
9763f77
fix(package): add back packages
Awk34 Jun 28, 2016
b4e5630
test(gen): add app.constants.js to expected list
Awk34 Jun 28, 2016
71b97df
feat(client:auth.service): create sync methods
Awk34 Jun 28, 2016
f5deecb
refactor(client:navbar): refactor to use new sync auth methods
Awk34 Jun 28, 2016
427cbaf
refactor(client:auth.service): clean up async methods
Awk34 Jun 28, 2016
4ac7235
fix(gen): add port var assignment
Awk34 Jun 27, 2016
95f25af
style(client:auth.service): use object shorthand
Awk34 Jun 28, 2016
a5d489c
refactor(client): remove no-longer-needed extra async auth function p…
Awk34 Jun 28, 2016
1ddf83d
Merge pull request #2023 from angular-fullstack/refactor/split-auth-s…
Awk34 Jun 28, 2016
330e620
Merge pull request #2022 from angular-fullstack/remove-grunt-bower-etc
Awk34 Jun 28, 2016
9e5092a
refactor(client:login): rename error from 'other' to 'login'
Awk34 Jun 28, 2016
f12cad7
feat(client): add a bunch of types, use class in auth.service
Awk34 Jun 28, 2016
bddb2b6
Add logo artwork (#2032)
blakemanzo Jun 30, 2016
aa2741d
fix(client:auth): fixes TS warnings, clarify function use
Koslun Jul 1, 2016
60d3bb2
feat(client:auth): add types to async functions, update documentation
Koslun Jul 1, 2016
6a9b25a
fix(webpack): always save `index.html` to disk
Awk34 Jul 5, 2016
44f1a39
Merge pull request #2025 from angular-fullstack/refactor/client-types
Awk34 Jul 5, 2016
e3b3a99
docs(readme): remove cruft from generated readme
Awk34 Jul 7, 2016
329351f
test(gen): skip server test on sequelize... :shit:
Awk34 Jul 19, 2016
2727cc6
fix(gen:test): don't run `gulp test:server` on sequelize at all
Awk34 Jul 20, 2016
78e179e
feat(gen:endpoint): change PUT to do an upsert instead of an update
Awk34 Jun 22, 2016
da19380
feat(gen:endpoint): change PATCH to do a patch
Awk34 Jun 30, 2016
185a47e
fix(endpoint:test): fix PUT test for upsert
Awk34 Jul 19, 2016
efb69f3
test(endpoint): add integration test for PATCH
Awk34 Jul 19, 2016
3fd494c
style(endpoint): lint fixes
Awk34 Jul 19, 2016
69dc2a0
fix(gen:test): increase exec maxBuffer to 500KB
Awk34 Jul 20, 2016
5700de6
feat(project): replace livereload with browser-sync
Koslun Jul 19, 2016
e0ab407
Merge pull request #2073 from angular-fullstack/browser-sync
Awk34 Jul 20, 2016
f8ce5cb
Merge pull request #2033 from angular-fullstack/put-patch
Awk34 Jul 20, 2016
7c03fa5
refactor(gen:test): `.skip` e2e instead of commenting them out
Awk34 Jul 21, 2016
12aeafb
chore(package): update generator-ng-component to 1.0.0
Awk34 Jul 5, 2016
38d1541
chore(gen): use modules in ng-component
Awk34 Jul 5, 2016
9b9d1a0
fix(gen): replace ng-component 'modules' filter with 'webpack' filter…
Awk34 Jul 21, 2016
2f9b188
chore(package): use pug-html-loader ^1.0.8
Awk34 Jul 21, 2016
6cf2fbd
feat(webpack): allow for .jade || .pug
Awk34 Jul 21, 2016
08ff3c7
refactor(server): exclude lusca import if `noModels`
Awk34 Jul 21, 2016
5854b78
chore(package): enforce ng-component 1.0.1+
Awk34 Jul 21, 2016
2740a23
Merge pull request #2078 from angular-fullstack/canary-ng-component-1
Awk34 Jul 21, 2016
0ec0737
4.0.0-rc.0
Awk34 Jul 21, 2016
1b37da3
Merge branch 'canary' of github.com:angular-fullstack/generator-angul…
Awk34 Jul 21, 2016
41c806e
Merge branch 'master' into canary
Awk34 Jul 21, 2016
215f7a1
fix(gen): return a promise
Awk34 Jul 21, 2016
ace0b66
chore(test): update .yo-rc.json fixture
Awk34 Jul 21, 2016
8260519
fix(gen): remove dockerfile subproject reference
Awk34 Jul 22, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ before_install:
- ./scripts/sauce_connect_setup.sh
- gem update --system
- gem install sass --version "=3.3.7"
- npm install -g bower grunt-cli
- npm install -g gulp-cli
services: mongodb
cache:
directories:
Expand Down
1 change: 0 additions & 1 deletion ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ Transpiler | Babel / TypeScript
Markup | HTML / Jade
CSS | CSS / LESS / SCSS / Stylus
Router | ngRoute / ui-router
Build Tool | Grunt / Gulp
Client Tests | Jasmine / Mocha
DB | MongoDB / SQL
Auth | Y / N
Expand Down
2 changes: 1 addition & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ machine:
node:
version: 5.11.1
post:
- npm install -g gulp-cli grunt-cli bower
- npm install -g gulp-cli

## Customize checkout
checkout:
Expand Down
6 changes: 2 additions & 4 deletions docs/generators/heroku.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,12 @@ Your app should now be live. To view it run `heroku open`.
> heroku config:set DOMAIN=<your-custom-domain>
>

> WARNING: Deployment is untested with Gulp

To make your deployment process easier consider using [grunt-build-control](https://github.com/robwierzbowski/grunt-build-control).

#### Pushing Updates

grunt
gulp build

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

grunt buildcontrol:heroku
gulp buildcontrol:heroku
4 changes: 2 additions & 2 deletions docs/generators/openshift.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ To make your deployment process easier consider using [grunt-build-control](http

**Pushing Updates**

grunt
gulp build

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

grunt buildcontrol:openshift
gulp buildcontrol:openshift
17 changes: 9 additions & 8 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ All of these can be updated with `bower update` as new versions are released.

## Injection

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.
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.

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

## Testing

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

Use `grunt test:server` to only run server tests.
Use `gulp test:server` to only run server tests.

Use `grunt test:client` to only run client tests.
Use `gulp test:client` to only run client tests.

**Protractor tests**

To setup protractor e2e tests, you must first run

`npm run update-webdriver`

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

**Code Coverage**

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

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

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

**Debugging**

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

## Environment Variables

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`.
Keeping your app secrets and other sensitive information in source control isn't a good idea.
To have gulp launch your app with specific environment variables, add them to the git ignored environment config file: `server/config/local.env.js`.

## Project Structure

Expand Down
16 changes: 5 additions & 11 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const transpile = lazypipe()
.pipe(babel);

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

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

if(/package.json/g.test(src) && opt.test) {
delete json.scripts.postinstall;
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';
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';
}

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

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

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

gulp.task('installFixtures', function() {
gutil.log('installing npm & bower dependencies for generated app');
gutil.log('installing npm dependencies for generated app');
let progress = setInterval(() => {
process.stdout.write('.');
}, 1 * 1000);
shell.cd('test/fixtures');

return Promise.all([
execAsync('npm install --quiet', {cwd: '../fixtures'}),
execAsync('bower install', {cwd: '../fixtures'})
]).then(() => {
execAsync('npm install --quiet', {cwd: '../fixtures'}).then(() => {
process.stdout.write('\n');
if(!process.env.SAUCE_USERNAME) {
gutil.log('running npm run-script update-webdriver');
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "generator-angular-fullstack",
"version": "3.7.6",
"version": "4.0.0-rc.0",
"description": "Yeoman generator for creating MEAN stack applications, using MongoDB, Express, AngularJS, and Node",
"keywords": [
"yeoman-generator",
Expand Down Expand Up @@ -40,11 +40,12 @@
"babel-plugin-transform-flow-strip-types": "^6.7.0",
"bluebird": "^3.3.5",
"chalk": "^1.1.0",
"generator-ng-component": "~0.3.1",
"generator-ng-component": "~1.0.1",
"glob": "^7.0.3",
"gulp-babel": "^6.1.2",
"gulp-beautify": "^2.0.0",
"gulp-filter": "^4.0.0",
"gulp-tap": "^0.1.3",
"insight": "~0.8.1",
"lodash": "^4.13.1",
"semver": "^5.1.0",
Expand Down Expand Up @@ -73,7 +74,6 @@
"gulp-plumber": "^1.1.0",
"gulp-util": "^3.0.7",
"jit-grunt": "~0.10.0",
"jscs": "^3.0.3",
"lazypipe": "^1.0.1",
"merge-stream": "^1.0.0",
"minimatch": "^3.0.2",
Expand All @@ -87,8 +87,8 @@
"yeoman-test": "~1.4.0"
},
"engines": {
"node": "^5.10.1",
"npm": "^3.8.3"
"node": "^6.2.2",
"npm": "^3.9.5"
},
"license": "BSD-2-Clause"
}
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@

## Usage

Install `yo`, `grunt-cli`/`gulp-cli`, `bower`, and `generator-angular-fullstack`:
Install `yo`, `gulp-cli`, and `generator-angular-fullstack`:
```
npm install -g yo grunt-cli gulp-cli bower generator-angular-fullstack
npm install -g yo gulp-cli generator-angular-fullstack
```

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

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.
Run `gulp build` for building, `gulp serve` for development, and `gulp serve:dist` for a preview of the built app.

## Prerequisites

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

**General**

* Build Systems: `Grunt` (deprecated, will be removed in 4.0.0), `Gulp`
* Build Systems: `Gulp`
* Testing:
* `Jasmine`
* `Mocha + Chai + Sinon`
Expand Down
Loading