Skip to content

Commit 8e7b56c

Browse files
committed
Merged branch master into canary
2 parents 8260519 + b09cfe5 commit 8e7b56c

File tree

103 files changed

+10691
-468
lines changed

Some content is hidden

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

103 files changed

+10691
-468
lines changed

Diff for: .gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ bower_components
55
demo
66
.idea
77
.DS_Store
8-
release.txt
8+
release.txt
9+
static

Diff for: CHANGELOG.md

+143-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,146 @@
1+
<a name="4.1.0"></a>
2+
# [4.1.0](https://github.com/angular-fullstack/generator-angular-fullstack/compare/4.0.5...v4.1.0) (2016-09-30)
3+
4+
5+
## Notable Changes
6+
7+
* We've bumped some of the Babel deps to `^6.16.0`. This should fix the issues everyone's been seeing with class properties being stripped when using the default settings of Babel without Flow types.
8+
9+
10+
### Bug Fixes
11+
12+
* **client:modal:** Fix unknown provider error ([68b7b69](https://github.com/angular-fullstack/generator-angular-fullstack/commit/68b7b69)), closes [#2247](https://github.com/angular-fullstack/generator-angular-fullstack/issues/2247)
13+
14+
15+
### Features
16+
17+
* **client:footer:**
18+
* add documentation link ([ad44ee2](https://github.com/angular-fullstack/generator-angular-fullstack/commit/ad44ee2))
19+
* modify footer ([3ca3cd5](https://github.com/angular-fullstack/generator-angular-fullstack/commit/3ca3cd5))
20+
* **gen:gulp:** port changelog code to gulp ([045abfb](https://github.com/angular-fullstack/generator-angular-fullstack/commit/045abfb))
21+
22+
23+
24+
<a name="4.0.5"></a>
25+
## [4.0.5](https://github.com/angular-fullstack/generator-angular-fullstack/compare/4.0.4...v4.0.5) (2016-09-15)
26+
27+
28+
### Bug Fixes
29+
30+
* **client:auth:** fix hasOwnProperty instances, fix User usage ([#2232](https://github.com/angular-fullstack/generator-angular-fullstack/issues/2232)) ([f41e420](https://github.com/angular-fullstack/generator-angular-fullstack/commit/f41e420)), closes [#2232](https://github.com/angular-fullstack/generator-angular-fullstack/issues/2232) [#2212](https://github.com/angular-fullstack/generator-angular-fullstack/issues/2212)
31+
* **client:oauthButtons:** add ngInject ([#2209](https://github.com/angular-fullstack/generator-angular-fullstack/issues/2209)) ([9ce58e8](https://github.com/angular-fullstack/generator-angular-fullstack/commit/9ce58e8)), closes [#2206](https://github.com/angular-fullstack/generator-angular-fullstack/issues/2206)
32+
* **endpoint:controller:** fix findOneAndUpdate syntax ([1c2a219](https://github.com/angular-fullstack/generator-angular-fullstack/commit/1c2a219)), closes [#2221](https://github.com/angular-fullstack/generator-angular-fullstack/issues/2221)
33+
* **heroku:** Changed port variable to capital letters so heroku recognize it ([44dccba](https://github.com/angular-fullstack/generator-angular-fullstack/commit/44dccba)), closes [#2185](https://github.com/angular-fullstack/generator-angular-fullstack/issues/2185)
34+
* **karma:** remove extra `require` ([c188229](https://github.com/angular-fullstack/generator-angular-fullstack/commit/c188229)), closes [#2219](https://github.com/angular-fullstack/generator-angular-fullstack/issues/2219)
35+
* **server:twitter:** make sure IDs are strings ([5991a72](https://github.com/angular-fullstack/generator-angular-fullstack/commit/5991a72)), closes [#1997](https://github.com/angular-fullstack/generator-angular-fullstack/issues/1997)
36+
* **socket:** add ngInject ([#2208](https://github.com/angular-fullstack/generator-angular-fullstack/issues/2208)) ([b530695](https://github.com/angular-fullstack/generator-angular-fullstack/commit/b530695)), closes [#2203](https://github.com/angular-fullstack/generator-angular-fullstack/issues/2203)
37+
38+
39+
40+
<a name="4.0.4"></a>
41+
## [4.0.4](https://github.com/angular-fullstack/generator-angular-fullstack/compare/4.0.3...v4.0.4) (2016-09-01)
42+
43+
44+
### Bug Fixes
45+
46+
* **webpack:**
47+
* conditionally exclude ui-bootstrap ([dd131d9](https://github.com/angular-fullstack/generator-angular-fullstack/commit/dd131d9))
48+
* fix webpack vendor import ([#2177](https://github.com/angular-fullstack/generator-angular-fullstack/issues/2177)) ([aa32054](https://github.com/angular-fullstack/generator-angular-fullstack/commit/aa32054)), closes [#2177](https://github.com/angular-fullstack/generator-angular-fullstack/issues/2177)
49+
50+
51+
52+
<a name="4.0.3"></a>
53+
## [4.0.3](https://github.com/angular-fullstack/generator-angular-fullstack/compare/4.0.2...v4.0.3) (2016-09-01)
54+
55+
56+
### Bug Fixes
57+
58+
* **gen:** fix doc img generation\n\nAdd gulp task to copy images to gh-pages ([5bb43be](https://github.com/angular-fullstack/generator-angular-fullstack/commit/5bb43be))
59+
* **gen:heroku:** fix module export, gen base ([8e50326](https://github.com/angular-fullstack/generator-angular-fullstack/commit/8e50326)), closes [#2148](https://github.com/angular-fullstack/generator-angular-fullstack/issues/2148)
60+
* **webpack:** fix boostrap-sass import path ([bae1c86](https://github.com/angular-fullstack/generator-angular-fullstack/commit/bae1c86))
61+
62+
63+
64+
<a name="4.0.2"></a>
65+
## [4.0.2](https://github.com/angular-fullstack/generator-angular-fullstack/compare/4.0.1...v4.0.2) (2016-09-01)
66+
67+
68+
### Bug Fixes
69+
70+
* **client:socket.service:** import lodash named exports ([231e500](https://github.com/angular-fullstack/generator-angular-fullstack/commit/231e500))
71+
* **gulp:build:** remove protractor typings ([#2144](https://github.com/angular-fullstack/generator-angular-fullstack/issues/2144)) ([b9abc58](https://github.com/angular-fullstack/generator-angular-fullstack/commit/b9abc58))
72+
73+
74+
### Features
75+
76+
* **docs:** add daux.io docs ([f1e7a87](https://github.com/angular-fullstack/generator-angular-fullstack/commit/f1e7a87))
77+
* **gen:app:**
78+
* add eslint to the yo write stream ([85921be](https://github.com/angular-fullstack/generator-angular-fullstack/commit/85921be)), closes [#2157](https://github.com/angular-fullstack/generator-angular-fullstack/issues/2157)
79+
* run eslint w/ fix on both client & server ([c5ab431](https://github.com/angular-fullstack/generator-angular-fullstack/commit/c5ab431))
80+
* **gen:gulp:** add TODO tasks in gulpfile. rm 2 old grunt tasks ([1e25de7](https://github.com/angular-fullstack/generator-angular-fullstack/commit/1e25de7))
81+
82+
83+
84+
<a name="4.0.0"></a>
85+
## [4.0.0](https://github.com/angular-fullstack/generator-angular-fullstack/compare/3.7.6...v4.0.0) (2016-08-08)
86+
87+
88+
## Notable Changes
89+
90+
### [Webpack](http://webpack.github.io/)
91+
* No more Bower
92+
* Webpack is a Module Bundler for the front-end.
93+
* Everything starts in `client/app.js`. It imports (using CommonJS / ES2015 imports) everything else needed from there.
94+
* Whenever we create a new Angular 1 module, we export its name, and import that name in another module up the tree, all the way to `client/app.js`. This design pattern allows for easy lazy-loading.
95+
96+
### Gulp v Grunt
97+
Grunt has been removed.
98+
* Gulp is significantly faster to run
99+
* Gulp focuses on programmatic configuration, which makes it a breeze to configure compared to Grunt's JSON-config-focused configuration.
100+
* Gulp development is much more active, with Gulp 4.0.0 hopefully being released soon.
101+
102+
### ESLint
103+
JSHint + JSCS have been replaced with ESLint. ESLint provides a gigantic amount of rules, and is easily pluggable with many plugins. It uses Espree. Also, JSCS has merged with ESLint.
104+
105+
### Types
106+
Flow support has been added. TypeScript type errors have been fixed.
107+
108+
### Async/Sync Auth methods
109+
The following methods from the client Auth service have been split into two: `getCurrentUser`, `isLoggedIn`, `hasRole`, `isAdmin`. The reason that these methods could be both synchronous and asynchronous depending on how many arguments were passed is because they were called from Angular templates. Now, the Angular templates call the sync form of these methods (e.x. `getCurrentUserSync`), and the original functions are now only async.
110+
111+
### Constants
112+
The task runner no longer takes care of creating an Angular module for config constants. It is taken care of by webpack now (the `shared.js` files is now just `require`d)
113+
114+
### Endpoint PUT/PATCH
115+
PUT now defaults to an upsert. PATCH now actually does an HTTP PATCH.
116+
117+
### -Livereload +Browsersync
118+
Livereload has been removed in favor of [Browsersync](https://www.browsersync.io/)
119+
120+
121+
122+
<a name="3.8.0"></a>
123+
# [3.8.0](https://github.com/angular-fullstack/generator-angular-fullstack/compare/3.7.6...v3.8.0) (2016-09-15)
124+
125+
126+
### Bug Fixes
127+
128+
* **authorization:** header workaround for IE11 ([2362103](https://github.com/angular-fullstack/generator-angular-fullstack/commit/2362103)), closes [#2051](https://github.com/angular-fullstack/generator-angular-fullstack/issues/2051)
129+
* **endpoint:controller:** wrap saveUpdates in an if(entity) statement ([31c0a79](https://github.com/angular-fullstack/generator-angular-fullstack/commit/31c0a79)), closes [#2052](https://github.com/angular-fullstack/generator-angular-fullstack/issues/2052) [#2059](https://github.com/angular-fullstack/generator-angular-fullstack/issues/2059)
130+
* **grunt:**
131+
* add comma ([485c44b](https://github.com/angular-fullstack/generator-angular-fullstack/commit/485c44b))
132+
* run express:prod on production port ([aac61b2](https://github.com/angular-fullstack/generator-angular-fullstack/commit/aac61b2)), closes [#1814](https://github.com/angular-fullstack/generator-angular-fullstack/issues/1814)
133+
* **gulp:** fix plain css generation ([#2013](https://github.com/angular-fullstack/generator-angular-fullstack/issues/2013)) ([54479fc](https://github.com/angular-fullstack/generator-angular-fullstack/commit/54479fc)), closes [#2013](https://github.com/angular-fullstack/generator-angular-fullstack/issues/2013)
134+
* **gulpfile:** gulp-filter[@4](https://github.com/4).0.0 need "dot:true" option ([1fbf24b](https://github.com/angular-fullstack/generator-angular-fullstack/commit/1fbf24b)), closes [#2146](https://github.com/angular-fullstack/generator-angular-fullstack/issues/2146) [#2151](https://github.com/angular-fullstack/generator-angular-fullstack/issues/2151)
135+
* **server:** return express stuff ([81ea8fa](https://github.com/angular-fullstack/generator-angular-fullstack/commit/81ea8fa))
136+
137+
138+
### Features
139+
140+
* **gen:** add configurable ports ([#2005](https://github.com/angular-fullstack/generator-angular-fullstack/issues/2005)) ([50e6d0c](https://github.com/angular-fullstack/generator-angular-fullstack/commit/50e6d0c))
141+
142+
143+
1144
<a name="3.7.6"></a>
2145
## [3.7.6](https://github.com/angular-fullstack/generator-angular-fullstack/compare/3.7.5...v3.7.6) (2016-06-21)
3146

@@ -8,7 +151,6 @@
8151
* Bumped a few generator dependencies
9152

10153

11-
12154
<a name="3.7.5"></a>
13155
## [3.7.5](https://github.com/angular-fullstack/generator-angular-fullstack/compare/3.7.4...v3.7.5) (2016-06-02)
14156

Diff for: Gruntfile.js

-146
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,11 @@ module.exports = function (grunt) {
1212
var gitCmd = gruntUtils.gitCmd;
1313
var gitCmdAsync = gruntUtils.gitCmdAsync;
1414

15-
// Load grunt tasks automatically, when needed
16-
require('jit-grunt')(grunt, {
17-
buildcontrol: 'grunt-build-control'
18-
});
19-
2015
grunt.initConfig({
2116
config: {
2217
demo: 'demo'
2318
},
2419
pkg: grunt.file.readJSON('package.json'),
25-
conventionalChangelog: {
26-
options: {
27-
changelogOpts: {
28-
// conventional-changelog options go here
29-
preset: 'angular'
30-
},
31-
writerOpts: {
32-
// conventional-changelog-writer options go here
33-
finalizeContext: gruntUtils.conventionalChangelog.finalizeContext,
34-
commitPartial: gruntUtils.conventionalChangelog.commitPartial
35-
}
36-
},
37-
release: {
38-
src: 'CHANGELOG.md'
39-
}
40-
},
4120
release: {
4221
options: {
4322
commitMessage: '<%= version %>',
@@ -51,17 +30,6 @@ module.exports = function (grunt) {
5130
npm: false
5231
}
5332
},
54-
updateSubmodules: {
55-
options: {
56-
modules: ['angular-fullstack-deps']
57-
}
58-
},
59-
commitNgFullstackDeps: {
60-
options: {
61-
cwd: 'angular-fullstack-deps',
62-
files: ['package.json', 'bower.json']
63-
}
64-
},
6533
stage: {
6634
options: {
6735
files: ['CHANGELOG.md', 'angular-fullstack-deps']
@@ -82,43 +50,6 @@ module.exports = function (grunt) {
8250
}
8351
}
8452
},
85-
jshint: {
86-
options: {
87-
curly: false,
88-
node: true
89-
},
90-
all: ['Gruntfile.js', 'src/**/*.js']
91-
},
92-
env: {
93-
fast: {
94-
SKIP_E2E: true
95-
}
96-
},
97-
mochaTest: {
98-
test: {
99-
src: [
100-
'test/*.js'
101-
],
102-
options: {
103-
reporter: 'spec',
104-
timeout: 120000
105-
}
106-
}
107-
},
108-
clean: {
109-
demo: {
110-
files: [{
111-
dot: true,
112-
src: [
113-
'<%= config.demo %>/*',
114-
'!<%= config.demo %>/readme.md',
115-
'!<%= config.demo %>/node_modules',
116-
'!<%= config.demo %>/.git',
117-
'!<%= config.demo %>/dist'
118-
]
119-
}]
120-
}
121-
},
12253
david: {
12354
gen: {
12455
options: {}
@@ -136,26 +67,6 @@ module.exports = function (grunt) {
13667
gitCmd(['add'].concat(files), {}, this.async());
13768
});
13869

139-
grunt.registerTask('updateSubmodules', function() {
140-
grunt.config.requires('updateSubmodules.options.modules');
141-
var modules = grunt.config.get('updateSubmodules').options.modules;
142-
143-
Q()
144-
.then(gitCmdAsync(['submodule', 'update', '--init', '--recursive']))
145-
.then(function() {
146-
var thens = [];
147-
for (var i = 0, modulesLength = modules.length; i < modulesLength; i++) {
148-
var opts = {cwd: modules[i]};
149-
thens.push(gitCmdAsync(['checkout', 'master'], opts));
150-
thens.push(gitCmdAsync(['fetch'], opts));
151-
thens.push(gitCmdAsync(['pull'], opts));
152-
}
153-
return thens.reduce(Q.when, Q());
154-
})
155-
.catch(grunt.fail.fatal.bind(grunt.fail))
156-
.finally(this.async());
157-
});
158-
15970
grunt.registerTask('commitNgFullstackDeps', function() {
16071
grunt.config.requires(
16172
'commitNgFullstackDeps.options.files',
@@ -261,63 +172,6 @@ module.exports = function (grunt) {
261172
}
262173
});
263174

264-
grunt.registerTask('updateFixtures', 'updates package and bower fixtures', function(target) {
265-
var genVer = require('./package.json').version;
266-
var dest = __dirname + ((target === 'deps') ? '/angular-fullstack-deps/' : '/test/fixtures/');
267-
var appName = (target === 'deps') ? 'angular-fullstack-deps' : 'tempApp';
268-
269-
var processJson = function(s, d) {
270-
// read file, strip all ejs conditionals, and parse as json
271-
var json = JSON.parse(fs.readFileSync(path.resolve(s), 'utf8').replace(/<%(.*)%>/g, ''));
272-
// set properties
273-
json.name = appName, json.version = genVer;
274-
if (target === 'deps') { json.private = false; }
275-
// stringify json and write it to the destination
276-
fs.writeFileSync(path.resolve(d), JSON.stringify(json, null, 2));
277-
};
278-
279-
processJson('templates/app/_package.json', dest + 'package.json');
280-
processJson('templates/app/_bower.json', dest + 'bower.json');
281-
});
282-
283-
grunt.registerTask('installFixtures', 'install package and bower fixtures', function() {
284-
var done = this.async();
285-
286-
shell.cd('test/fixtures');
287-
grunt.log.ok('installing npm dependencies for generated app');
288-
child_process.exec('npm install --quiet', {cwd: '../fixtures'}, function (error, stdout, stderr) {
289-
290-
grunt.log.ok('installing bower dependencies for generated app');
291-
child_process.exec('bower install', {cwd: '../fixtures'}, function (error, stdout, stderr) {
292-
293-
if(!process.env.SAUCE_USERNAME) {
294-
grunt.log.ok('running npm run-script update-webdriver');
295-
child_process.exec('npm run-script update-webdriver', function() {
296-
shell.cd('../../');
297-
done();
298-
});
299-
} else {
300-
shell.cd('../../');
301-
done();
302-
}
303-
})
304-
});
305-
});
306-
307-
grunt.registerTask('test', function(target, option) {
308-
if (target === 'fast') {
309-
grunt.task.run([
310-
'env:fast'
311-
]);
312-
}
313-
314-
return grunt.task.run([
315-
'updateFixtures',
316-
'installFixtures',
317-
'mochaTest'
318-
])
319-
});
320-
321175
grunt.registerTask('deps', function(target) {
322176
if (!target || target === 'app') grunt.task.run(['updateFixtures']);
323177
grunt.task.run(['david:' + (target || '')]);

Diff for: ISSUE_TEMPLATE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ etc | etc
1111
Item | Answer
1212
----- | -----
1313
Transpiler | Babel / TypeScript
14-
Markup | HTML / Jade
14+
Markup | HTML / Pug
1515
CSS | CSS / LESS / SCSS / Stylus
1616
Router | ngRoute / ui-router
1717
Client Tests | Jasmine / Mocha

0 commit comments

Comments
 (0)