Skip to content

Commit 2f2eaca

Browse files
committed
Merge branch 'canary'
2 parents ab86240 + 1245309 commit 2f2eaca

File tree

179 files changed

+17252
-5302
lines changed

Some content is hidden

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

179 files changed

+17252
-5302
lines changed

CHANGELOG.md

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,131 @@
1+
<a name="5.0.0-rc.0"></a>
2+
# [5.0.0-rc.0](https://github.com/angular-fullstack/generator-angular-fullstack/compare/5.0.0-beta.1...v5.0.0-rc.0) (2018-03-08)
3+
4+
5+
### Bug Fixes
6+
7+
* **client:** fix some outstanding client bugs ([f4c5471](https://github.com/angular-fullstack/generator-angular-fullstack/commit/f4c5471))
8+
* **client:auth:guard:** declare `authService` on class ([afc725f](https://github.com/angular-fullstack/generator-angular-fullstack/commit/afc725f))
9+
* **gen:**
10+
* canary cleanup ([96364a7](https://github.com/angular-fullstack/generator-angular-fullstack/commit/96364a7))
11+
* don't convert main html file ([8d37569](https://github.com/angular-fullstack/generator-angular-fullstack/commit/8d37569))
12+
* **package:** add missing comma ([b2a745b](https://github.com/angular-fullstack/generator-angular-fullstack/commit/b2a745b))
13+
* **seed:** rename index.html to app.html to fix CRSF and token issues ([2e784bf](https://github.com/angular-fullstack/generator-angular-fullstack/commit/2e784bf))
14+
* **server:** fix express router usage ([542337e](https://github.com/angular-fullstack/generator-angular-fullstack/commit/542337e))
15+
* **server:auth:** specify digest for pbkdf2 ([689c3fc](https://github.com/angular-fullstack/generator-angular-fullstack/commit/689c3fc)), closes [#2628](https://github.com/angular-fullstack/generator-angular-fullstack/issues/2628)
16+
* **server:test:** resolve primus in non-dev ([7bed185](https://github.com/angular-fullstack/generator-angular-fullstack/commit/7bed185))
17+
* **test:**
18+
* only save new primus.js in dev ([483dda0](https://github.com/angular-fullstack/generator-angular-fullstack/commit/483dda0))
19+
* use babel in `protractor.conf.js` ([ffb16cb](https://github.com/angular-fullstack/generator-angular-fullstack/commit/ffb16cb))
20+
* misc cleanup ([a1619e6](https://github.com/angular-fullstack/generator-angular-fullstack/commit/a1619e6))
21+
22+
23+
### Features
24+
25+
* **client:** add auth-guard service ([a5cbada](https://github.com/angular-fullstack/generator-angular-fullstack/commit/a5cbada))
26+
* **package:**
27+
* add separate client lint script for TS ([d426be7](https://github.com/angular-fullstack/generator-angular-fullstack/commit/d426be7))
28+
* add test:server script ([24b6144](https://github.com/angular-fullstack/generator-angular-fullstack/commit/24b6144))
29+
30+
<a name="5.0.0-beta.3"></a>
31+
# [5.0.0-beta.3](https://github.com/angular-fullstack/generator-angular-fullstack/compare/5.0.0-beta.1...v5.0.0-beta.3) (2017-11-30)
32+
33+
34+
### Bug Fixes
35+
36+
* **client:auth:guard:** declare `authService` on class ([afc725f](https://github.com/angular-fullstack/generator-angular-fullstack/commit/afc725f))
37+
38+
39+
40+
<a name="5.0.0-beta.2"></a>
41+
# [5.0.0-beta.2](https://github.com/angular-fullstack/generator-angular-fullstack/compare/5.0.0-beta.1...v5.0.0-beta.2) (2017-11-12)
42+
43+
44+
### Bug Fixes
45+
46+
* **package:** add missing comma ([b2a745b](https://github.com/angular-fullstack/generator-angular-fullstack/commit/b2a745b))
47+
* **server:test:** resolve primus in non-dev ([7bed185](https://github.com/angular-fullstack/generator-angular-fullstack/commit/7bed185))
48+
* **test:**
49+
* only save new primus.js in dev ([483dda0](https://github.com/angular-fullstack/generator-angular-fullstack/commit/483dda0))
50+
* use babel in `protractor.conf.js` ([ffb16cb](https://github.com/angular-fullstack/generator-angular-fullstack/commit/ffb16cb))
51+
52+
53+
### Features
54+
55+
* Upgraded to Angular 5.0.1
56+
* **client:** add auth-guard service ([a5cbada](https://github.com/angular-fullstack/generator-angular-fullstack/commit/a5cbada))
57+
58+
59+
60+
<a name="5.0.0-beta.1"></a>
61+
# [5.0.0-beta.1](https://github.com/angular-fullstack/generator-angular-fullstack/compare/5.0.0-beta.0...v5.0.0-beta.1) (2017-10-17)
62+
63+
64+
### Bug Fixes
65+
66+
* **client:** fix thing redirect ([6e1b254](https://github.com/angular-fullstack/generator-angular-fullstack/commit/6e1b254))
67+
* **client:auth:** fix session re-establish ([31a6ecf](https://github.com/angular-fullstack/generator-angular-fullstack/commit/31a6ecf)), closes [#2625](https://github.com/angular-fullstack/generator-angular-fullstack/issues/2625)
68+
* **client:test:** fixes for TS ([47b9d3e](https://github.com/angular-fullstack/generator-angular-fullstack/commit/47b9d3e))
69+
* **gen:**
70+
* fix gen issue with flow on ([4f9618a](https://github.com/angular-fullstack/generator-angular-fullstack/commit/4f9618a))
71+
* remedy test failure ([f226df9](https://github.com/angular-fullstack/generator-angular-fullstack/commit/f226df9))
72+
* **server:** swap shrink-ray back out for compression ([e225a67](https://github.com/angular-fullstack/generator-angular-fullstack/commit/e225a67))
73+
* **test:** disable `main.component.spec.js` ([c5e6db9](https://github.com/angular-fullstack/generator-angular-fullstack/commit/c5e6db9))
74+
* **ts:** exclude typescript specs files from generating error on transpilling ([46f762e](https://github.com/angular-fullstack/generator-angular-fullstack/commit/46f762e))
75+
* **webpack:** use a mock for primus in test ([689d0b2](https://github.com/angular-fullstack/generator-angular-fullstack/commit/689d0b2))
76+
77+
78+
### Features
79+
80+
* **client:auth:** don't submit forms if invalid ([d967554](https://github.com/angular-fullstack/generator-angular-fullstack/commit/d967554))
81+
* **gen:** default Flow on ([804a917](https://github.com/angular-fullstack/generator-angular-fullstack/commit/804a917))
82+
* **package:**
83+
* add `start:mongo` convenience script ([101f567](https://github.com/angular-fullstack/generator-angular-fullstack/commit/101f567))
84+
* add linting scripts ([8cfe32e](https://github.com/angular-fullstack/generator-angular-fullstack/commit/8cfe32e))
85+
* add start scripts ([e2bfff8](https://github.com/angular-fullstack/generator-angular-fullstack/commit/e2bfff8))
86+
* add test:client script ([9be904d](https://github.com/angular-fullstack/generator-angular-fullstack/commit/9be904d))
87+
88+
89+
90+
<a name="5.0.0-alpha.5"></a>
91+
# [5.0.0-alpha.5](https://github.com/angular-fullstack/generator-angular-fullstack/compare/4.1.0...v5.0.0-alpha.5) (2017-05-14)
92+
93+
94+
### Bug Fixes
95+
96+
* **client:**
97+
* fix a few client code errors ([5535fe3](https://github.com/angular-fullstack/generator-angular-fullstack/commit/5535fe3))
98+
* fix loading css ([5d780fe](https://github.com/angular-fullstack/generator-angular-fullstack/commit/5d780fe))
99+
* fix upgrade stuff ([01e1054](https://github.com/angular-fullstack/generator-angular-fullstack/commit/01e1054))
100+
* **client:footer:** fix hardcoded template & style extentions ([c638fb6](https://github.com/angular-fullstack/generator-angular-fullstack/commit/c638fb6)), closes [#2421](https://github.com/angular-fullstack/generator-angular-fullstack/issues/2421)
101+
* **client:main:** fix add/delete things ([91b920b](https://github.com/angular-fullstack/generator-angular-fullstack/commit/91b920b))
102+
* **client:navbar:** fix hardcoded template ext ([5e999b2](https://github.com/angular-fullstack/generator-angular-fullstack/commit/5e999b2)), closes [#2469](https://github.com/angular-fullstack/generator-angular-fullstack/issues/2469)
103+
* **client:userService:** use `id` or `_id` property ([4be3191](https://github.com/angular-fullstack/generator-angular-fullstack/commit/4be3191))
104+
* **events:** mongoose event registration ([79bdeed](https://github.com/angular-fullstack/generator-angular-fullstack/commit/79bdeed)), closes [#2479](https://github.com/angular-fullstack/generator-angular-fullstack/issues/2479)
105+
* **gen:**
106+
* comment out ngCompnent stuff ([ab1bf13](https://github.com/angular-fullstack/generator-angular-fullstack/commit/ab1bf13)), closes [#2403](https://github.com/angular-fullstack/generator-angular-fullstack/issues/2403)
107+
* fix another type stripping; also TS doesn't like default exports ([a55691a](https://github.com/angular-fullstack/generator-angular-fullstack/commit/a55691a))
108+
* **gen:factory:** fix factory subgen location ([b09cfe5](https://github.com/angular-fullstack/generator-angular-fullstack/commit/b09cfe5)), closes [#2381](https://github.com/angular-fullstack/generator-angular-fullstack/issues/2381)
109+
* **mocha:** fix server not closing ([2ba3dd8](https://github.com/angular-fullstack/generator-angular-fullstack/commit/2ba3dd8))
110+
* **package:** move syntax plugins to deps ([c016979](https://github.com/angular-fullstack/generator-angular-fullstack/commit/c016979)), closes [#2405](https://github.com/angular-fullstack/generator-angular-fullstack/issues/2405)
111+
* **server:**
112+
* fix new shared default export ([d4e4a7a](https://github.com/angular-fullstack/generator-angular-fullstack/commit/d4e4a7a))
113+
* fix some bluebird warnings ([a84ff90](https://github.com/angular-fullstack/generator-angular-fullstack/commit/a84ff90)), closes [#2412](https://github.com/angular-fullstack/generator-angular-fullstack/issues/2412) [#2363](https://github.com/angular-fullstack/generator-angular-fullstack/issues/2363)
114+
* **webpack:** fix CSS loader options ([3f7e2b4](https://github.com/angular-fullstack/generator-angular-fullstack/commit/3f7e2b4))
115+
116+
117+
### Features
118+
119+
* **app:** convert to Angular 2 ([6c3b307](https://github.com/angular-fullstack/generator-angular-fullstack/commit/6c3b307))
120+
* **gen:**
121+
* add functions for adding TS public/private keywords ([17fea6c](https://github.com/angular-fullstack/generator-angular-fullstack/commit/17fea6c))
122+
* consolidate templates, convert html to pug during write ([f6deb25](https://github.com/angular-fullstack/generator-angular-fullstack/commit/f6deb25))
123+
* generate js with jscodeshift instead of babel ([bf8f9fc](https://github.com/angular-fullstack/generator-angular-fullstack/commit/bf8f9fc))
124+
* replace socket.io w/ primus + uws ([ccea1f3](https://github.com/angular-fullstack/generator-angular-fullstack/commit/ccea1f3))
125+
* use new base classes ([3debe1c](https://github.com/angular-fullstack/generator-angular-fullstack/commit/3debe1c))
126+
127+
128+
1129
<a name="4.2.3"></a>
2130
## [4.2.3](https://github.com/angular-fullstack/generator-angular-fullstack/compare/4.2.2...v4.2.3) (2017-11-29)
3131

Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ module.exports = function (grunt) {
112112
testing: 'jasmine',
113113
auth: true,
114114
oauth: ['googleAuth', 'twitterAuth'],
115-
socketio: true
115+
ws: true
116116
};
117117

118118
var deps = [

circle.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 2
22
jobs:
33
build:
44
docker:
5-
- image: node:7
5+
- image: node:8
66
- image: mongo
77
command: [mongod, --smallfiles]
88

@@ -56,11 +56,11 @@ jobs:
5656
- ~/generator-angular-fullstack/test/fixtures/node_modules
5757

5858
- run: gulp build
59-
- run: gulp test
59+
- run: npm test
6060

6161
- deploy:
6262
command: |
63-
if [ "${CIRCLE_BRANCH}" == "master" ]; then
63+
if [ "${CIRCLE_BRANCH}" == "master" ]; then
6464
git config --global user.email "[email protected]"
6565
git config --global user.name "CircleCI"
6666
cd docs && npm install && npm run build && npm run deploy

docs/content/developing/01_Adding_a_Route.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
> ATTENTION: THIS PAGE IS OUT-OF-DATE
2+
13
# Adding a Route
24

35
Alright, now let's add another route to our app. We'll call it 'foo'. We can easily do this with the `yo angular-fullstack:route` subgenerator command:
@@ -10,11 +12,10 @@ $ yo angular-fullstack:route foo
1012
? Where would you like to create this route? client/app/
1113
? What will the url of your route be? (/foo)
1214
? What will the url of your route be? /foo
13-
identical client\app\foo\foo.routes.js
14-
identical client\app\foo\foo.component.js
15-
identical client\app\foo\foo.component.spec.js
16-
identical client\app\foo\foo.html
17-
identical client\app\foo\foo.scss
15+
create client\app\foo\foo.component.js
16+
create client\app\foo\foo.component.spec.js
17+
create client\app\foo\foo.html
18+
create client\app\foo\foo.scss
1819

1920
In the parent of this component, you should now import this component and add it as a dependency:
2021

@@ -23,11 +24,14 @@ In the parent of this component, you should now import this component and add it
2324
export angular.module('myParentModule', [FooComponent]);
2425
```
2526

26-
We give it our route name ('foo'), and a few more details: the name of the Angular module to create ('myApp.foo'), which folder to put the route under ('client/app/foo/'), and the URL of the route ('localhost:3000/foo').
27+
We give it our route name ('foo'), and a few more details: the name of the Angular module to create ('myApp.foo'), which
28+
folder to put the route under ('client/app/foo/'), and the URL of the route ('localhost:3000/foo').
2729

28-
This will create an Angular 1.5 component with an Angular module (`foo.component.js`), a template file (`foo.html`), a CSS file (`foo.scss`), a unit test file (`foo.component.spec.js`), and a routing file (`foo.routes.js`).
30+
This will create an Angular component with an Angular module (`foo.component.js`), a template file (`foo.html`), a CSS
31+
file (`foo.scss`), a unit test file (`foo.component.spec.js`), and a routing file (`foo.routes.js`).
2932

30-
Since we're using Webpack, We'll need to import our component somewhere. Since this is a generic app route (and for simplicity), we'll import it in `app.js`, under our root Angular module, like so:
33+
Since we're using Webpack, We'll need to import our component somewhere. Since this is a generic app route
34+
(and for simplicity), we'll import it in `app.js`, under our root Angular module, like so:
3135

3236
`client/app/app.js`
3337
```js

docs/content/get-started/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ your computer's startup. Example:
2828

2929
### node-gyp
3030

31-
`node-gyp` is a cross-platform command-line tool written in Node.js for compiling native addon modules for Node.js. You'll need it for things like brotli compression.
31+
`node-gyp` is a cross-platform command-line tool written in Node.js for compiling native addon modules for Node.js. You'll need it for things like `uws`.
3232

3333
Read through the [Installation section of the `node-gyp` readme](https://github.com/nodejs/node-gyp#installation). Basically you'll need [Python 2.7](https://www.python.org/downloads/), `make`, and a C/C++ compiler (like GCC on unix, Xcode on OS X, or Visual Studio tools on Windows). To tell npm to use Python 2.7 (if you also have a different version installed), run `npm config set python /path/to/executable/python2.7`. Here's a snapshot of the instructions from their readme:
3434

docs/content/get-started/running.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@ sort: 2
55

66
## Running Your New App
77

8-
You can start your new app by running `gulp serve`. This will do some preliminary things like clean out temporary
9-
files, lint your scripts, inject any new CSS files into your main one, apply environment variables, and download
10-
any new TypeScript definitions. It will then start up a new development server, which will kick off a Webpack build.
11-
it uses Browser Sync to facilitate front-end development. Your files will also be watched for changes. Any front-end
12-
changes will kick off another webpack build. Any back-end changes will restart the back-end server, cleaning the
13-
development database and re-seeding it as well.
8+
You can start your new app by running `npm run start:server` and `npm run start:client`. This will start up the Node.js
9+
back-end server, as well as a Webpack dev server to serve the front-end files (with things like Hot Module Replacement).
10+
Your files will be watched for changes. Any front-end changes will be seen by the Webpack server, and any back-end
11+
changes will restart the back-end server, cleaning the development database and re-seeding it as well.
1412

15-
Once the `serve` tasks are complete, a browser tab should be opened to your new app server.
13+
The `npm run start:client` task will show you at which local port you can access your front-end app (usually http://localhost:8080/).

gulpfile.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,11 @@ const mocha = lazypipe()
2525
reporter: 'spec',
2626
timeout: 120000,
2727
slow: 500,
28-
globals: {
29-
should: require('should')
30-
},
3128
require: [
32-
'./mocha.conf'
33-
]
29+
'./mocha.conf',
30+
'should'
31+
],
32+
compilers: ['js:babel-core/register']
3433
});
3534

3635
const transpile = lazypipe()
@@ -190,9 +189,6 @@ gulp.task('deps', () => console.log('TODO')); // updateFixtures, david
190189
gulp.task('release', () => console.log('TODO'));
191190
gulp.task('lint', () => console.log('TODO')); // ['gulpfile.js', 'src/**/*.js']
192191

193-
gulp.task('daux', () => {
194-
return execAsync('daux');
195-
});
196192
gulp.task('copy_docs_images', () => {
197193
return gulp.src('./media/svg/*')
198194
.pipe(gulp.dest('./static/'));

0 commit comments

Comments
 (0)