Commit Graph

76 Commits

Author SHA1 Message Date
Guangcong Luo
52cc7f2e37 Remove Object.values external dependency
An external dependency is kind of overkill when the only
implementation we need is three lines.

This also lets us write a more performant implementation that
omits the parts irrelevant to us.
2016-03-21 10:15:55 -05:00
Guangcong Luo
a125a3ed7b Remove sugar-deprecated 2016-03-16 09:51:23 -05:00
Ivo Julca
0281176fd1 Remove usage of Array|Object methods implemented by Sugar.js
Adds a dependency to shim Object.values until it's natively available.
2016-03-09 16:55:34 -05:00
Ivo Julca
bc1a46eee1 Deps: Deprecate sugar extensions 2016-03-09 16:31:44 -05:00
Guangcong Luo
e624b9d5c7 Merge pull request #2350 from xfix/unify-style
Make code style consistent between files
2015-12-31 23:36:19 +00:00
Konrad Borowski
79a5b23f25 Modify data and mods files to follow style rules 2016-01-01 00:18:00 +01:00
Guangcong Luo
cc6715c677 Add pokemon-showdown binary file
`./pokemon-showdown` should probably eventually replace `node app.js`
as the preferred way to launch PS.

Also update package.json to reflect this.
2015-12-31 16:51:41 -06:00
Ivo Julca
f5b3a3b875 Test: use mock-fs to sandbox the file system 2015-12-20 03:22:02 -05:00
Konrad Borowski
156e193bed Only enable certain ES6 features during ESLint test
Currently, only those features are allowed: let/const, classes, and
octal literals. More can be added when needed, as long main Showdown
server has a supporting Node.js's version.

This also accidentally fixes a bug which caused data files to not
be checked for `let`/`const` keyword existence, which would cause
a problem in a web browser.
2015-12-10 23:07:32 +01:00
Ivo Julca
44adce3f78 Turn on strict mode globally for real 2015-11-08 15:43:47 -05:00
Guangcong Luo
1fc85dce48 Remove es6-shim dependency
We no longer support versions of Node so old they don't have the
level of ES6 support we used es6-shim for.
2015-11-07 22:51:44 -06:00
Ivo Julca
7dddb66253 Migrate build system to ESLint
JSHint's ES6 support is shaky, and its development has stalled as of late.
Since ESLint can do by itself both JSHint and JSCS' jobs, this commit replaces them.
Gulp and its related dependencies are also hereby removed.
2015-11-07 21:36:49 -05:00
Guangcong Luo
bad35b3511 Update Node.js dependency to 4.x
PS now officially supports Node.js 4.x and later.

Unofficially, most versions of iojs are still supported, although
this will probably change as we start using more ES6 features.
2015-11-06 16:36:13 -05:00
Guangcong Luo
68b3754e7d Support new ladder protcol
See 0b3b09e987

This commit doesn't introduce the local ladder yet, it's just some
final changes to support the new protocol.
2015-09-19 15:21:48 -05:00
Irraquated
1fcc947ab4 Update devDependencies to the latest build 2015-09-12 02:58:37 +10:00
Ivo Julca
4d4903d3a7 Update dependency versions and types
- All dependencies are optional except for `sockjs` and `sugar`.
- Fixes global variable leaks in `cloud-env` and `node-static`.
- JSCS: remove (disabled) no longer existent rule: validateJSDoc.
- JSCS: remove `esnext` rule: ES6 is current.
2015-07-28 19:33:38 -05:00
Ivo Julca
3aefdbf7e0 Update formats list protocol to support tournament-only formats 2015-07-24 02:41:29 -05:00
Guangcong Luo
2a94634e7e Increment version number 2015-07-22 18:16:13 -04:00
Ivo Julca
efad2e157f Update dev dependencies
Notable changes: `gulp-jshint` now tracks a proper release and will no longer timeout.
2015-07-02 03:56:52 -05:00
Ivo Julca
b740197244 Implement JSCS rule to enforce PS conditionals' style 2015-06-12 03:36:36 -05:00
Guangcong Luo
3ac05d3432 Update package.json license 2015-06-05 13:28:11 -04:00
Konrad Borowski
b4f272b9b2 Introduce cache for syntax testing.
This cache is quite awful (welcome to the world of Node.js, I guess),
but at least it works. It has few flaws, like not being able to GC
unused cache files. Still, has to work for now. Changes syntax test
times from 10 minutes on my very slow laptop to 0.6 seconds.

(I wonder how this will work with Travis...)

Later I will try to figure out why JSHint is so unbelievably slow.
2015-03-27 21:28:03 +01:00
Guangcong Luo
5ddfe77e7a Update dependencies 2015-03-15 03:24:21 -04:00
Konrad Borowski
35d76cb121 Disable deprecated engineStrict
In newest version of npm, this makes depreciation warnings.

See npm/npm#7171 for justification of removal of this feature from npm.
2015-03-03 18:09:33 +01:00
Ivo Julca
253c2b951e Update dependencies 2015-02-23 04:14:30 -05:00
Ivo Julca
d6c3058673 Deps: update dev dependencies
- Remove `gulp-util`: it's not used and its installation is no longer recommended in Gulp's documentation.
- Next minor version for `gulp-jscs`. Next major for `jshint-stylish`.
2015-02-18 19:51:51 -05:00
Ivo Julca
68aaa48974 Gulpfile: no files are exempt from style checks
- Streams are merged to make sure that all errors and warnings are reported.
- Adds dev dependencies: `merge-stream` and `lazypipe`.
- Tracks a fork of `gulp-jshint` to fix https://github.com/spalger/gulp-jshint/issues/88
2015-02-18 19:51:15 -05:00
Ivo Julca
88c74abe76 Implement Mocha-based test suite 2015-02-15 13:27:36 -05:00
sirDonovan
6e171cb59c Update gulp-jshint to 1.9.2
The old version caused build errors due to one
of the dependencies (rcloader), which was fixed in this newest
release
2015-02-02 12:05:25 -06:00
sirDonovan
68bca82397 Update gulp-replace to 0.5.1
The old version of gulp-replace began to cause build errors due to one
of the dependencies (istextorbinary), which was fixed in this newest
release
2015-01-15 12:55:20 -06:00
Guangcong Luo
80704c272d Merge pull request #1298 from Slayer95/disabled-maybe
Hide moves disabled by Imprison or NEXT's Telepathy
2014-12-10 03:57:30 -06:00
Guangcong Luo
454c5a6cfb Update gulp-jscs to 1.3.1
The old version of gulp-jscs apparently broke somewhere upstream
and is making npm test fail. The newest version works fine, so
I'm updating it.
2014-11-26 15:47:48 -06:00
Ivo Julca
e16346005a Bump version to 0.9.3
Battle choices will now be parsed in a significatively different way.
2014-11-13 14:45:56 -05:00
ryanj
3c943fb096 Autoconfiguration for cloud hosting environments, OpenShift support 2014-10-24 23:02:07 -07:00
小太
5027be79fb Add jscs as a style checker, and add some extra jshint options 2014-09-29 18:38:01 +10:00
Guangcong Luo
f4f0adb5bd Update node-static version 2014-08-24 02:33:30 -04:00
Guangcong Luo
5c2a6e4f43 Update versions in package.json 2014-08-22 00:25:39 -04:00
Guangcong Luo
354a784370 npm test now exits with code 1 on JSLint fail
This is mostly for Travis CI compatibility
2014-08-16 23:53:13 -05:00
Ivo Julca
52a764fdb0 Update SockJS to 0.3.9 2014-08-12 20:09:12 -05:00
Guangcong Luo
075baf89b5 Add gulp-replace to devDependencies 2014-08-11 05:38:46 -04:00
Guangcong Luo
536c6d0d3f Support npm test
Also made linting synchronous, which makes Gulp's output look
slightly nicer (and time it, which is cool).
2014-08-10 21:16:14 -04:00
Slayer95
9f2beb65bd Add ofe as an opt-in dependency
The ´nonDefaultDependencies´ field in package.json is not used by NPM, but allows us to keep track of them.
2014-05-05 20:56:38 -05:00
小太
4f6a3e9c36 Merge remote-tracking branch 'upstream/master' into tournaments-frontend
Conflicts:
	package.json
2014-03-10 12:15:35 +11:00
Guangcong Luo
58e28f0231 Version 0.9.2
(The new team format is an incompatible change)
2014-03-05 23:32:32 -05:00
Tyler Stark
0ffdd34741 Making JSHint actually look helpful, and explicitly ignoring eqeqeq errors 2014-02-09 20:22:33 -06:00
Tyler Stark
949d29be63 Adding Gulp and JSHint 2014-02-09 19:02:06 -06:00
小太
f9101abbe7 Merge remote-tracking branch 'upstream/master' into tournaments-frontend
Conflicts:
	package.json
2014-02-03 00:24:23 +11:00
Guangcong Luo
5e4db2d512 Update SockJS version 2013-12-18 12:53:37 -08:00
Guangcong Luo
d9688b991a PS no longer supports Node <0.10.x 2013-12-18 12:53:01 -08:00
小太
e01604251f Merge remote-tracking branch 'upstream/master' into tournaments 2013-12-12 18:40:20 +11:00