summaryrefslogtreecommitdiff
path: root/Gruntfile.js
AgeCommit message (Collapse)Author
2016-06-18Replaced dist{...} with dist.jsonakpu1
2016-06-17Added siteName variable for references to site in textakpu1
siteUrl and max_upload_size are used similarly already
2016-06-17Remove unneccessary taskEliot Whalan
2016-06-17Add task to copy faviconEliot Whalan
2016-06-17Change grunt tasks to new location of filesEliot Whalan
2016-06-16Rename pages folder to better describe its purposeEliot Whalan
2016-06-16Remove deleted pages from Gruntfile.jsEliot Whalan
2016-06-14Resolve merge conflictEliot Whalan
2016-06-14Revert "Remove grunt-contrib-imagemin image minification"Eliot Whalan
This reverts commit 90e6b7bdfeccff5e96f0bda23bc5c9ab7b33238a.
2016-06-14Revert "Remove grunt-contrib-htmlmin HTML minification"Eliot Whalan
This reverts commit 51d101f50785b0da88deaf4ede6031fbc7176c7a.
2016-04-30Merge branch 'maint'Juuso Lapinlampi
Sync with latest maint branch bugfixes. - Fix/Update LibreJS @source URL to cgit tree - Change package.json bugs contact to bugs@pantsu.cat email, remove URL - package.json: Use lowercase pomf for package name - Gruntfile: Sort grunt-swig options alphabetically Conflicts: Gruntfile.js
2016-04-30Gruntfile: Sort grunt-swig options alphabeticallyJuuso Lapinlampi
Code cleanup, that's all. Reviewed-by: Eliot Whalan <ewhal@pantsu.cat>
2016-04-30Fix/Update LibreJS @source URL to cgit treeJuuso Lapinlampi
git.pantsu.cat has switched from gogs to cgit. gogs used a slightly different URLs to point to tree, so the old URLs from gogs are no longer valid. For consideration, to ease maintenance we'll just keep pointing the URL to the master branch and not a specific commit or maint branch. ?h=master is not really required here, it's the default branch. I am aware that the current maint and master branches diverge heavily from each other in terms of JavaScript, but this will be an issue that will disappear eventually. Thus, this is the simplest fix. A HTTP redirect will be setup for the old URL to the new one (eventually) to fix broken links. Reviewed-by: Eliot Whalan <ewhal@pantsu.cat>
2016-04-30pages: Get metadata generator value from pkg.versionJuuso Lapinlampi
Instead of hardcoding the version number and duplicating version strings in markup, have Grunt grab the version value from package.json. Adds Gruntfile value pkgVersion. For consideration, this will cause some issues in efforts to remove Grunt from Pomf 3.x branch. Right now it's still considerably the best or simplest thing we can do. Suggested-by: Eliot Whalan <ewhal@pantsu.cat> Suggested-by: Austin Gillmann <alucard@cuntflaps.me>
2016-01-17Replace old JavaScript with simpler vanilla versionLuminarys
Pomf's old JavaScript is a frozen dependency hell with an old version of Zepto. The amount of code included has reached the point of unmaintainability, where nobody really understands very well how the code works. This code gets rid of all the previous client-side JavaScript and replaces it with new, vanilla JavaScript. No dependencies required. This new JavaScript should be quite a bit faster too. Browser backwards compatibility has not been tested yet, however it is expected that IE10 and later will work, improving our current backwards compatibility. Reviewed-by: Eliot Whalan <ewhal@pantsu.cat> [wub@partyvan.eu: Added Git commit message and fixed Git branching. Reverted /* outline-offset: -2px;*/ removal.] Signed-off-by: Juuso Lapinlampi <wub@partyvan.eu>
2015-11-18Remove erroneous extra comma in Grunt swig taskJuuso Lapinlampi
Fixup to previous commit 120627d. Fixes Grunt build failure. Gladly, I am working on replacing Grunt with Makefile for 2.1.0 or 3.0.0 release so that these mistakes should happen less frequently.
2015-11-18Remove dead Catalan pages from Grunt swig taskJuuso Lapinlampi
Catalan translation was removed in commit 566611c. However, the commit was incomplete and forgot to remove the swig build task from Grunt. We can safely remove these Catalan pages from Grunt swig build. They no longer exist and this is dead code. OK luminarys@
2015-10-14Remove unused grunt-mkdir taskJuuso Lapinlampi
This does nothing as far as I see it, no dist/img/ is created. And hey, it works without it. grunt-contrib-copy can create directories for us.
2015-10-14Add img/ to Gruntfile copy taskJuuso Lapinlampi
Grunt would not copy `img/` to `dist/img/`, because the task of copying images was previously on the now-removed imagemin task. This bug was introduced in commit 90e6b7b.
2015-10-13Remove grunt-contrib-htmlmin HTML minificationJuuso Lapinlampi
The benefits of HTML minification are too small and outweighted by the benefits of not having to deal with yet another dependency in Pomf's code. `Vary: Accept-Encoding` on the server is the recommended way to approach this, also for clarity and debugging without browser consoles. We don't need this.
2015-10-13Remove grunt-contrib-imagemin image minificationJuuso Lapinlampi
Ever since liberating images in c76f70c, there's no really a need to minify images. Furthermore, the dependency update in 6ef710a changed PNG minification to be lossless, so most of the benefits were lost (because our images are already compressed in the repository). We don't need this anymore.
2015-10-13Remove all JSHint tools and headersJuuso Lapinlampi
JSHint is "deprecated" in favor of ESLint. Personally I have not used JSHint ever since switching to ESLint. Vague OK from ewhal@
2015-09-27Remove Gruntfile cssmin task banner optionJuuso Lapinlampi
The banner option was removed in grunt-contrib-cssmin v0.11.0. This removes the dead config option.
2015-09-26Indent Gruntfile uglify task banner to two spacesJuuso Lapinlampi
Improves readability and consistency.
2015-09-26Add new Catalan translations to Gruntfile buildJuuso Lapinlampi
Previously, links to Catalan FAQ and others would be broken because the generated files would not exist. This is like a hack. Hopefully someone will soon tell me how to organize these pages to subfolders to regain my sanity.
2015-09-26Rename ca.swig as indexca.swigJuuso Lapinlampi
ca.swig is confusing and difficult to find. This commit creates consistency with other pages until someone more knowledgeable person tells me how to sort these to /pages/ca/ with Gruntfile.
2015-09-23Add JS source location for LibreJSEliot Whalan
2015-09-23Increase max_upload_size to 128MiBEliot Whalan
2015-09-23Merge branch 'update-depends'Eliot Whalan
2015-09-23Update Gruntfile to work with updated dependenciesEliot Whalan
2015-09-22Change MIT to expat license in GruntfileEliot Whalan
2015-09-20Move JSHint task away from default/dist to testWubTheCaptain
It should not be fatal to fail the build process if there's a syntax error somewhere. Users don't need to care about that too much, only developers should.
2015-09-20Remove Gruntfile from JSHint testingWubTheCaptain
There's no sense to test the Gruntfile at this time, because it will always fail to module.exports which works as intended.
2015-09-20Indent Gruntfile from tabs to two spacesWubTheCaptain
This creates consistency with the project's style.
2015-09-20Add undef: true check to Gruntfile's JSHint taskWubTheCaptain
This should also fix the syntax, which fixes a build failure.
2015-09-20Add all Javascript files to JSHint taskpantsucat
2015-09-20Add jshint to grunt.registerTaskpantsucat
2015-09-20Add jshint grunt task and dependencypantsucat
2015-09-19Refactor banner for improved readabilitypantsucat
2015-09-19Enable 'screwIE8' option for UglifyJS taskWubTheCaptain
Considering how IE11 too has difficulties working right now, there's no interest to support broken browsers. OK pantsucat
2015-09-19Add LibreJS compatibilitypantsucat
2015-09-19Fix whitespace and restore PSR-2 styleWubTheCaptain
2015-09-18Add more translations to catalanpantsucat
2015-09-17Add a version of the site without JavaScriptpantsucat
2015-09-15Change production to false in Gruntfile.jspantsucat
2015-09-15Add other.swig to Gruntfile.js. Change site url to pantsu.catpantsucat
2015-09-15Increased max_upload_size in Gruntfile.js and reverted changed to ↵pantsucat
pages/upload_form.swig
2015-06-25Add max upload size to gruntfileKieran Harkin
2015-02-05Minify output HTML codecenci0
- Minify HTML pages (using `grunt-contrib-htmlmin`) - Fix minor display error (force encode of HTML entity)
2013-10-31Add package.json and Gruntfile.jsPeter Lejeck