Commit Graph

68 Commits

Author SHA1 Message Date
OldHawk
6efad86a17 feat(torrents): make torrent image uploads folder 2017-09-28 15:28:15 +08:00
OldHawk
e8975d2d6c feat(torrents): make music cover uploads folder 2017-09-28 13:49:47 +08:00
OldHawk
f052ea853e Merge commit 'b43c80e2c097b11114f4e4f01b9718321721a89b'
* commit 'b43c80e2c097b11114f4e4f01b9718321721a89b':
  feat(build): Update dependencies (#1847)
  fix(travis): Fix Travis failing on webdriver issues (#1845)
  fix(eslint): Inconsistent spacing before function parentheses (#1844)
  fix(mongodb): update ssl connection settings (#1809)
  Remove deprecated crypto package (#1843)
  feat(config): Mongo Seed 2.0 (#1808)
  fix(users): don't fail on missing old image on image upload (#1839)
  feat(build): Turn on mangling for uglify (#1841)
  fix(gulp): fix broken test:server:watch task (#1842)
  feat(core): Enhancement page title directive (#1686)
  feat(user): Add email support to forgot password (#1834)
  fix(mocha): update mochajs version to reduce vulnerabilities (#1830)
  refactor(menus): Refactor to the Menus client service to use functional loops/filters (#1575)
  feat(config): Mongoose 4.11 upgrade (#1818)

# Conflicts:
#	config/env/development.js
#	config/lib/app.js
#	modules/articles/server/models/article.server.model.js
#	modules/chat/client/config/chat.client.routes.js
#	modules/core/client/directives/page-title.client.directive.js
#	modules/core/client/services/menu.client.service.js
#	modules/users/client/config/users-admin.client.routes.js
#	modules/users/client/views/password/forgot-password.client.view.html
#	modules/users/server/models/user.server.model.js
#	package.json
2017-08-22 13:35:29 +08:00
Mikael Korpela
f44c9bce71 fix(eslint): Inconsistent spacing before function parentheses (#1844)
Defines `space-before-function-paren` eslint rule and changes files accordingly.
2017-08-14 23:50:33 +03:00
Michael Leanos
eb9cdd784c feat(config): Mongo Seed 2.0 (#1808)
feat(config): Mongo Seed 2.0

Adds a more configurable and easily extended MongoDB Seed feature.

Adds additional options at the collection, and collection item level to
allow more control over how each environment config handles the seeding
feature.

Enforces seed order based on the order of the  environment's seeding configuration object.

Removes the previous SeedDB config file.

Adds chalk to messages logged to the console for readability.

Refactors the Mongo Seed configuration tests.

Adds Gulp tasks to perform Mongo Seed operations for default, prod, and
test environment configurations. Also, adds accommodating npm scripts.
2017-08-13 16:29:47 -07:00
Mikael Korpela
1e3eeb7e3b feat(build): Turn on mangling for uglify (#1841)
Turns on mangling for uglify (minified javascript for production).

Previously this might've caused issues with AngularJS, but since we are now using `ngAnnotate`, those issues are gone.

https://github.com/mishoo/UglifyJS2#minify-options
2017-08-13 20:10:55 +03:00
gbatz
c467c84e60 fix(gulp): fix broken test:server:watch task (#1842)
Pass the path string of the changed file to `gulp-refresh` plugin, so that an exception won't be thrown when test files are reloaded.
2017-08-13 20:08:42 +03:00
Michael Leanos
dc880eb5a7 feat(config): Mongoose 4.11 upgrade (#1818)
Upgrades Mongoose to 4.11.1

Updates Mongoose connection implementation to accommodate deprecated
features & connection options.

Also, updates the Gulp Mocha tasks to reflect changes to the Mongoose
implementation.

Fixes tests to get the database from the existing Mongoose singleton.

Derives from changes in https://github.com/meanjs/mean/pull/1816

Closes https://github.com/meanjs/mean/issues/1814
2017-07-27 13:19:22 -07:00
OldHawk
0fbed06b1a Merge commit '11777465cf77e2a0bbd0d576a1dadd76a8c2f55d'
* commit '11777465cf77e2a0bbd0d576a1dadd76a8c2f55d':
  Update templateCache root path
  feat(packages): updating packages (#1819)
  feat(Karma): Add mocha style progress to Karma tests
  feat(Travis): Don't allow Node.js 8 testing fail (#1815)
  feat(dependencies): replace PhantomJS in favor of chrome (#1776)
  fix(security): updated compression lib in package.json to reduce vulnerabilities (#1812)
  fix(build): ESLint error in Express config (#1807)
  fix(security): updating vulnerable packages (#1802)
  fix(build): E2E coverage broken on Travis CI (#1805)
  fix(users): Domain config setting (#1803)

# Conflicts:
#	package.json
2017-07-21 18:09:46 +08:00
kit
11777465cf Update templateCache root path 2017-07-18 17:09:05 +03:00
OldHawk
86e2e90b40 feat(forums): add forum attach upload config 2017-07-13 14:35:40 +08:00
OldHawk
62c339aeef fix(core): npm start prod 2017-06-22 16:21:53 +08:00
OldHawk
4596c91d8c Merge commit '8f50eecc7c1ec7dda3363093b3b3e7f17ca9a692'
# Conflicts:
#	modules/users/server/controllers/users/users.authentication.server.controller.js
#	package.json
2017-06-19 12:43:44 +08:00
Mikael Korpela
482c38c287 feat(travis): start testing against Node.js 8 and other CI improvements (#1785)
* Test against Node.js 8

Configure Travis CI test against Node.js 8 and allow failures.

Node.js 8 release notes: https://nodejs.org/en/blog/release/v8.0.0/

* Updates to TravisCI

* Refactor picking debug argument for different Node.js versions
2017-06-14 00:45:34 +03:00
Liran Tal
7b91f76fd3 feat(build): updating supported Node.js versions for CI (#1768) 2017-06-10 23:25:02 +03:00
OldHawk
bbf0b43528 change torrent file upload mode, first save temp folder, when create data ok, then move the file to dest folder,and delete the temp file 2017-05-17 16:03:25 +08:00
OldHawk
5cb2946fb4 auto create subtitle upload dir 2017-04-25 11:58:04 +08:00
Liran Tal
73135df49f fix(protractor): support for gulp-protractor for v6-7 only (#1752)
* fix(protractor): updating gulp-protractor
* re-factoring out protractor prep tasks
2017-04-09 08:40:48 +03:00
Liran Tal
994369d7bb fix(node-inspector): deprecating node-inspector infavor of native nodejs debug (#1744) 2017-04-07 13:19:06 +03:00
OldHawk
85f1be11a6 add announce config item in config.js
add torrents uploads folder in config.js
create the torrents upload folder where app is started
2017-03-27 13:31:07 +08:00
shanavas
d47dd41108 feat(build): Ignore compiled sass/less files from git (#1592)
* Compile sass/less files to appropriate directories

* Include compiled sass/less files in asset

* Ignore compiled sass/less files
2016-10-29 11:30:46 -07:00
Liran Tal
83ffc98efa Merge branch 'master' into feat/replacing-gulp-node-inspector 2016-10-13 22:59:34 +03:00
Liran Tal
19145b920b feat(debug): replacing deprecated gulp-node-inspector with vanilla node-inspector 2016-10-13 22:59:09 +03:00
Liran Tal
119753f902 feat(gulp): replacing the unmaintained gulp-livereload with gulp-refresh
* feat(gulp): replacing the unmaintained gulp-livereload with gulp-refresh
Replacing the unmaintained gulp-livereload with gulp-refresh (#1552)

* ~ instead of ^ for gulp-refresh package
2016-10-11 22:20:56 +03:00
Sujeeth
b0c5ad9f69 feat(core): Add prod asset versioning (#1536)
Asset versioning for prod - idea from #1509

Fixes #1509
2016-10-06 18:48:43 +03:00
Liran Tal
e5a5d24216 chore(tidy): tidying up minor lint and layout issues 2016-09-09 08:56:07 +03:00
Liran Tal
38d92e39ac fix(core): Updating old package dependencies (#1490)
* fix(core): updating old package dependencies

* mistaken updated the wrong package

* updating gulpfile with new csslint package

* updating old gulpfile usage with the failformatter option of csslint

* updating package.json for original version of airbnb supported version

* resolving eslint issue

* eslint back to original package

* updating no failure of CSS issues
2016-09-09 08:52:46 +03:00
hyperreality
70a3e4cac3 fix(tests): Reorganized coverage tests (#1480)
* Added coverage to Gulp

* Moved karma coverage task to Gulpfile, moved LCOV posting to coveralls to .travis.yml config
2016-09-05 20:42:37 +03:00
hyperreality
7be1910420 feat(tests): add client and server test coverage to Gulp (#1466)
* Added coverage to Gulp

* Integrated coveralls tests with gulp

* spurious changes to kick off coveralls
2016-09-04 01:30:32 +03:00
Liran Tal
b198ca75b1 feat(gulp) - refactoring gulpfile to properly add support for node-inspector as its own dedicated gulp task (#1395) 2016-07-23 21:27:32 +03:00
shanavas
0934f87cfb feat(build): Wiredep task for grunt and gulp (#1402)
* Fix(grunt): remove redundant grunt task loading

remove explicit grunt task loading for `grunt-protactor-coverage` as
`load-grunt-tasks` handles it

* Feat(grunt): add wiredep task for grunt

Automatically update bower dependencies.

* Fix(grunt-wiredep):Remove trailing comma from assets

Remove trailing comma from assets configuration generated by wiredep

* Fix(gulp): Remove trailing comma from asset files

Remove trailing comma from asset configurations generated by wiredep

* Fix(npm): use tilde ranges

* Fix(gulp): use wiredep instead of gulp-wiredep

Fixes #1398

* Fix(grunt): use wiredep instead of grunt-wiredep

* Fix(lint): suppress eslint errors in asset files

Fixes #1402
2016-07-23 18:25:35 +03:00
Michael Leanos
4906611ccc fix(users): GitHub strategy missing email (#1250)
Fixes an issue with an empty/missing/null Email coming from GitHub's
OAuth call response.

Also, introduces the `sparse` index option on the User model's Email
field. This will ensure that we can have multiple User documents without
the Email field.

Adds a server-side User model test for the sparse index setting on the
email field.

Confirms that User documents without the email field are not indexed,
illustrating the sparse option on the schema's email field works
properly.

Added the dropdb task to the Gulp test:client & test:server tasks, to
ensure we have a clean database & that any indexes are rebuilt; this
will ensure any Schema changes (in this case the email index is rebuilt using
the sparse index option) are reflected when the database is started again.

Added a UPGRADE.md for tracking important upgrade information for our
user's to be aware of, when we introduce potentially breaking changes.

Included an explanation of the Sparse index being added, and how to apply it
to an existing MEANJS application's database.

Adds a script for dropping the `email` field's index from the User
collection.

Related #1145
2016-04-29 14:13:46 -07:00
Michael Leanos
f2a6bf9afd fix(gulp): Trailing spaces lint error in gulpfile (#1303)
Removes the trailing spaces in the gulpfile causing a linting error.
2016-04-12 00:02:30 -07:00
Michael Leanos
eaead7a30c feat(gulp): test:server:watch task onlyChanged (#1298)
Sets the behavior of the test:server:watch Gulp task to only run a single
test suite if the modified server file is a test suite. Previously this was
acheived through the use of the `onlyChanged` parameter. The parameter has
been removed since this is almost certainly the only use case.

Also, refactors this Gulp task to be a stand-alone watch task rather than
including it in the 'watch' task.

Removed the need for using yargs library, and removed the yargs package
from the framework.

Closes #1297
2016-04-10 16:56:57 -07:00
Liran Tal
8da372519a Merge pull request #1252 from lirantal/bugfix/replace-gulp-css-min
fix(gulp): replacing gulp-cssmin which has been deprecated and un-maintained with gulp-csso
2016-03-28 00:11:11 +03:00
Liran Tal
b4c94642a2 fix(gulp): unhandled error in gulpfile and also changing existing error related console.log() to console.error() 2016-03-17 22:32:16 +02:00
Marek Grzybek
d14d5130af feat(config): Deprecate JSHint in favor of ESLint
Add basic ESLint setup extending well-known Airbnb code style.

Fixes #1072, #1097
2016-03-15 19:11:12 +01:00
IteloFilho
3d199ea93e feat(gulp): add wiredep gulp task 2016-03-10 20:31:32 -03:00
Liran Tal
b661284f59 fix(gulp): replacing gulp-cssmin which has been deprecated and un-maintained with gulp-csso 2016-03-10 12:52:08 +02:00
Liran Tal
0b13107d65 fix(gulp) remove gulp-node-inspector dependency 2016-03-06 22:00:59 +02:00
IteloFilho
936379da20 feat(gulp): Add node-inspector task to Gulp 2016-02-14 17:21:21 -03:00
Ryan Hutchison
6cacc159f0 feat(gulp): Add gulp task mkdir:upload to ensure upload directory exists.
Related #1175
2016-02-12 13:50:56 -05:00
mleanos
b0f76dc4b4 feat(gulp): Add copyLocalEnvConfigExample task to Gulp
Adds a task to copy the example local environment config example, and save
it as a development environment config.

Renamed the task for Gulp from copy:localConfig (Grunt naming convention) to
copyLocalEnvConfigExample.

Releated #1175
2016-02-11 11:47:03 -08:00
Tomás Fernández
59d9347838 fix(gulp): Removing transformUrl replace function from templatecache gulp task 2016-02-09 16:45:47 +01:00
Mikael Korpela
80c08a34a0 fix(build): Linting error at gulpfile.js
Fixes an error occurring when running `gulp`:
```bash
/mean/gulpfile.js
  199:22  error  A space is required after '{'   object-curly-spacing
  199:42  error  A space is required before '}'  object-curly-spacing
```
2016-01-15 12:09:41 -08:00
accraze
1a3f6f8195 feat(build): added imagemin to gulp
in order to minify images,
gulp is now given an imagemin task
2016-01-13 19:23:19 -08:00
mleanos
bf2eeed219 feat(gulp): Gulp Server Watch for Mocha
Adds a Gulp task that watches all server files (including server tests),
and upon any changes it will perform the Gulp *test:server* task.

Added a watch for server assets, to the main gulp watch config. This will only
add the watch when the NODE_ENV is set to "test".

Also, includes an **optional** argument for the task that can specify
that if the changed file is a test, then it will only run that test
file.

Example usage: gulp test:server:watch --onlyChanged
2015-12-16 17:56:53 -08:00
Ilan Biala
6088e0f8c7 fix(test): Remove npm warnings by testing against Node >=0.12
Fixes #1015
2015-11-29 21:58:28 -05:00
jloveland
1f79770663 Fixing jshint issues with grunt, gulp, and reset-password script. 2015-10-28 21:33:28 -04:00
Ilan Biala
1729db38e2 Merge pull request #990 from ilanbiala/eslint
Add ESLint
Fixes #763
2015-10-17 13:48:57 -04:00