Commit Graph

123 Commits

Author SHA1 Message Date
Peter Jaszkowiak
beb652ee43 Move minifier.js to src/meta 2017-02-20 00:44:04 -07:00
Peter Jaszkowiak
9b1068e868 Minify all module scripts in production 2017-02-19 02:07:19 -07:00
Peter Jaszkowiak
bb1bfb0449 Merge branch 'master' into assets-route 2017-02-06 15:52:54 -07:00
pichalite
de28ff5d43 Ability to crop profile images before uploading 2017-02-03 00:47:09 +00:00
Peter Jaszkowiak
186209a0a3 Build plugin staticDirs
- route `/plugins` -> `build/public/plugins`
- symlink `staticDirs` directories into `build/public/plugins`
- remove custom `/plugins` route handling
2017-01-21 18:57:27 -07:00
Peter Jaszkowiak
8c86b2e32c Build pipeline improvements
- Refactor meta/css
- `fs.link` usage consolidated to `file.link`
- rimraf built modules directory to fix error
- Remove `local-assets` flag
2017-01-15 12:38:16 -07:00
Peter Jaszkowiak
05b68391dd Use /assets for client assets
- Route `/assets` -> `build/public`, falling back on `public`
- Moved destinations for `nodebb.min.js`, `acp.min.js`, `admin.css`, `stylesheet.css`, `templates`, and `sounds` to `build/public`
- r.js modules previously routed through express are now symlinked into `public/build/src/modules`
- minfiles no longer served from a memory cache
- use config `views_dir` setting everywhere template directory is used
- fix cache buster `v=v=`
2017-01-14 22:38:40 -07:00
Barış Soner Uşaklı
c4d4d2385b closes #3973 closes #5303 2016-12-22 01:48:41 +03:00
Peter Jaszkowiak
0b4c39338e Translation bootbox wrapper
- Replaced minfied bootbox file with unminified one since it's minified at build anyways
- Removed existing override
- Made translator more verbose in dev mode; it now warns about missing translations
2016-12-19 15:51:43 -05:00
barisusakli
afef79a81e closes #5241 2016-11-29 17:16:12 +03:00
barisusakli
31168c669b closes #5231 2016-11-23 21:08:04 +03:00
barisusakli
12d46ca441 remove async.series 2016-11-23 21:05:12 +03:00
barisusakli
f7b77c5341 removed file.exists from getFromFile 2016-11-23 12:58:48 +03:00
barisusakli
259d49e392 all procs should load the js from file 2016-11-23 03:21:31 +03:00
barisusakli
4f0e93732a #5211
remove passing js/css between procs
2016-11-17 12:56:00 +03:00
Julian Lam
e6c9c89342 closes #5197 2016-11-10 13:50:37 -05:00
Julian Lam
66aea0eed1 closes #5167 2016-11-01 13:00:37 -04:00
HeeL
4a3c31b2dc Fix space-before-function-paren linter rule 2016-10-13 11:43:39 +02:00
Barış Soner Uşaklı
9d0dc35703 closes #5081 2016-10-04 20:10:59 +03:00
Peter Jaszkowiak
59ed13b581 Rewrite translator for efficiency and clarity (#5013)
* Rewrite translator for efficiency and clarity

* Fixed failing tests

* Gorram tabs

* Move cache to Translator class, simplify creation

* Documentation and linting

* Use new translator API where it makes sense

* Revert 499fbe21fd (except translator.d.ts)

* promise polyfill for node<4

* Set `load` on the prototype

* Comment on Translator#translate

* Delete translator.d.ts

* Support translations added by plugins
2016-09-12 15:52:50 -04:00
phit
00a06e9253 Use mousetrap.js minified version
didn't see a reason it shouldn't use the minified version
2016-09-04 20:02:02 +02:00
pichalite
3ef7c57a63 make jquery ui a r.js module 2016-08-29 21:53:12 +00:00
psychobunny
0afa55517f fixed app.loadJQueryUI; minified jquery-ui.js; removed jqueryui from cold load payload; fixed broken image paths 2016-08-26 17:31:57 -04:00
Julian Lam
785f4fc5a0 updating to jQuery 3.x on frontend and ACP 2016-08-26 15:36:50 -04:00
barisusakli
5c83075806 moved variables parse to ajaxify.js 2016-08-26 16:39:09 +03:00
barisusakli
e5ecb333f9 closes #4978 2016-08-26 12:53:00 +03:00
Mathias Schreck
ce9ee62fa0 Handle callback errors 2016-08-17 12:54:59 +02:00
pichalite
b7b909bcc0 remove unused autosize lib 2016-07-29 23:03:47 +00:00
pichalite
8ef7ca4bdb update chart.js to new version 2016-07-29 19:31:48 +00:00
Julian Lam
e407dbfdd4 fix module bridging output to log the correct number 2016-07-20 11:46:31 -04:00
barisusakli
bb7303834f remove csrf r.js module 2016-07-14 21:44:39 +03:00
Julian Lam
cf7540d41c appeasing Travis CI, 'cause fuck code reuse, right? 2016-07-08 11:03:28 -04:00
Julian Lam
55bcc28e0e closes #4831 2016-07-08 10:43:28 -04:00
AdJones
693e724802 Fixing issue where the relative path was ignored for express modules (#4621)
* Fixing issue where the relative path was ignored for express modules

* Fixing issue where the relative path was ignored for express modules (without the console log lines!)
2016-05-10 09:13:45 -04:00
Julian Lam
1d7a5f58e2 fixes #4576 2016-04-27 14:14:22 -04:00
psychobunny
d83a1987eb fix routing of rjs modules 2016-04-19 12:03:30 -04:00
Julian Lam
b6a10c7729 removed console log 2016-04-04 21:26:49 -04:00
Julian Lam
94a505a6bb removed symlink logic and using route bridging instead.
Also allowed plugins to define modules from their plugin.json
2016-04-04 20:43:21 -04:00
Julian Lam
f91f705f90 Merge branch 'master' into fix-vendors 2016-04-04 18:46:24 -04:00
psychobunny
359b1fbe1a cleanup 2016-03-30 16:05:11 -04:00
psychobunny
e2bc5f241a optimizing process.send for js minification 2016-03-30 15:54:45 -04:00
psychobunny
acd24d856f run tasks in series to speed up startup time 2016-03-30 14:37:00 -04:00
Julian Lam
8013f124da fixes #4471 2016-03-25 19:54:22 -04:00
psychobunny
aa2af345f9 removed unused deps 2016-03-02 23:58:01 -05:00
psychobunny
329a7a1e08 @barisusakli fixing minfile caching for multiple processes 2016-03-02 23:56:47 -05:00
Julian Lam
3f2872979f added buzz 2016-02-26 12:34:48 -05:00
Julian Lam
44aae7daa5 removed hammer, updated semver, added mousetrap 2016-02-26 12:12:12 -05:00
Julian Lam
e1323c0295 Updated js code so vendors can be added to the modules folder, so
they can be required properly and we can finally get rid of that
really annoying "mismatched anonymous" error in Require.js.

First module to make the transition: Chart.js
2016-02-26 11:29:17 -05:00
barisusakli
3336365e53 closes #4024 2016-02-01 20:58:16 +02:00
barisusakli
c2e1426e57 fix syntax error, and actually show error if minification fails 2016-01-27 20:48:10 +02:00