Commit Graph

42 Commits

Author SHA1 Message Date
Manuel c6b6d02360
Fix wrong memcached version number and Docker min build
* Memcached version number was set wrong accidentally
* Installation of individual document storage client dependencies in Dockerfile made npm read entire package-lock again and install all dependencies
2021-02-15 18:00:56 +01:00
Manuel 3606db4d90
Make Docker image smaller and fix issue with ignore files
* Exclude a bunch of files and directories not needed for Docker image
* Exclude dev dependencies for Docker image build by introducing a production build script
* Using a different alpine base image and multi-stage build reduces the Docker image by roughly 35 MB alone
* Move babel to dev dependencies
* Fix highlight.min.js accidentally being ignored
2021-02-13 10:35:12 +01:00
Manuel 062bdb3dec
Install all storage client deps by default and move them to optional deps
* Moving the storage dependencies again into package.json but to the optionalDependencies
* Add build script that excludes the optional dependencies for manual installation of these
* Add a comment in Dockerfile on how to use the minimal build script
2021-02-13 07:46:01 +01:00
Manuel 94d2054da7
Remove storage client packages and update package-lock
These packages should be installed on demand and not by default
2021-02-12 14:28:22 +01:00
dependabot[bot] 592e484d35
Bump eslint from 7.9.0 to 7.10.0 (#10)
Bumps [eslint](https://github.com/eslint/eslint) from 7.9.0 to 7.10.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.9.0...v7.10.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-01 01:22:07 +02:00
Paweł 8ad927810f
Added all dependencies to package.json (#11)
It seems to be a better practice to keep all dependencies documented in repo and package-lock, so there will be no issues with installing them manually. Even though there are more deps that self-hosters might not use, it makes it easier to change configuration and manage some things like docker images (see #8).
2020-10-01 01:12:07 +02:00
zneix 509971c5ac
Switched to proper babel-minify lib
I Decided to remove static asset compression from actual code to make runtime faster and moved it to package.json script which only builds application once on installation.\nAfter this commit, after every update that changed static/application.js, you also need to run npm run-script build after git pull
2020-09-20 18:18:38 +02:00
zneix 45b4ce87a8
Updated config documentation, changed env vars
Removed HASTE_ prefix as it would not work on evironments like Heroku, relevant comment: https://github.com/zneix/haste-server/pull/7#issuecomment-695790378
2020-09-20 16:39:49 +02:00
dependabot[bot] 63d2568f91
Bump eslint from 7.8.1 to 7.9.0 (#5)
Bumps [eslint](https://github.com/eslint/eslint) from 7.8.1 to 7.9.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.8.1...v7.9.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-18 16:54:38 +02:00
zneix 7d476a668e
Rewritten postgresql document store
This is experimental as there are couple issues with attemting to set duplicate keys and connecting on startup, but it's working regardless of those issues.\nMaybe I can look into solving those later if needed
2020-09-03 19:24:34 +02:00
dependabot[bot] e3e45bee3c
Bump mocha from 8.1.2 to 8.1.3 (#2)
Bumps [mocha](https://github.com/mochajs/mocha) from 8.1.2 to 8.1.3.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v8.1.2...v8.1.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-02 16:23:04 +02:00
dependabot[bot] 7171809d20
Bump eslint from 7.7.0 to 7.8.1 (#4)
Bumps [eslint](https://github.com/eslint/eslint) from 7.7.0 to 7.8.1.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.7.0...v7.8.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-02 16:21:45 +02:00
zneix c165781b18
Rewrote redis storage handler
also removed unnecessary newline in file storage handler
2020-09-01 23:43:54 +02:00
zneix e4eeec3d27 Updated eslint rules 2020-08-28 04:39:03 +02:00
zneix bd5c7f9261 Added mongodb as document store adapter 2020-08-27 00:42:48 +02:00
zneix 78aabf90bb Refactored static files compression 2020-08-26 16:04:20 +02:00
zneix c585e3b815 Huge refactor, switched to express 2020-08-26 04:54:58 +02:00
zneix 06315a91a8 security and deprecation fixes 2020-08-25 22:57:13 +02:00
John Crepezzi 318c5f7ba6 Upgrade uglify and simplify usage
- Upgrade to the most recent version of uglify
- Use the `UglifyJS.minify(code)` helper which does exactly what we want
2017-10-31 21:19:22 -04:00
John Crepezzi e4e025f67e Convert random generator to es6 and add some specs for it directly 2017-10-31 20:40:43 -04:00
John Crepezzi e76c845f16 Upgrade testing libraries
- Upgrade mocha
- Remove should due to limited usage and old style (at least by rspec standards)
- Move spec -> test which is the default
- Update tests accordingly for the above
2017-10-31 20:03:30 -04:00
John Crepezzi c5b859ec98 Bump node engine version & fix asset compression on start 2017-07-11 21:13:33 -04:00
John Crepezzi 6835eef468 Merge pull request #109 from seejohnrun/rate_limiting
Added user-configurable rate limiting
2016-03-10 11:44:57 -10:00
John Crepezzi 84c909a5db Added user-configurable rate limiting 2016-03-06 16:20:40 -05:00
PangeaCake e93f98112b Add `pg` as dependency and update node version
One of the dependencies seemed to be broken with the previous node version, but this node version worked perfectly
2015-01-07 14:27:46 -08:00
John Crepezzi 0471b059a0 Support a form-data POST API
Closes #54
2014-04-21 14:16:23 -04:00
John Crepezzi e536ba1019 Move to an available npm version 2012-09-27 11:56:49 -04:00
John Crepezzi 85fc36d710 Update npm version 2012-09-27 11:56:15 -04:00
John Crepezzi 5d5ae164f3 Set up node engine version 2012-09-27 11:54:40 -04:00
John Crepezzi 79309c75df Bump version to 0.1.0 2012-09-27 11:51:15 -04:00
John Crepezzi 8f0d6260b0 change how redistogo install works 2012-09-27 11:50:12 -04:00
John Crepezzi 4efc5d47d9 Allow redistogo 2012-09-27 11:46:53 -04:00
John Crepezzi ff8ef54e34 Procfile 2012-09-27 11:38:14 -04:00
John Crepezzi 814a49812a Update server config path 2012-09-19 14:28:52 -04:00
John Crepezzi 16080bdc16 Update description - preparing for npm push 2012-04-21 23:49:39 -04:00
John Crepezzi 45cbdcce70 Force down connect version 2012-03-02 14:07:59 -05:00
John Crepezzi 6e4c087319 Remove hashlib dependency and switch to mocha for testing 2012-01-13 11:17:15 -05:00
John Crepezzi 0875ba6252 Auto-compress javascript assets 2011-11-27 15:49:17 -05:00
John Crepezzi 167c7c4adb Use the new router 2011-11-23 13:14:18 -05:00
John Crepezzi a2d17b28df Remove redundant package dependency 2011-11-18 19:56:09 -05:00
John Crepezzi a1d5f79708 Added Redis store support 2011-11-18 19:55:14 -05:00
John Crepezzi 6bac45efe2 More work on the server 2011-11-18 15:44:28 -05:00