Skip to content

Commit

Permalink
Create grunt tasks for installing client and server dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jtojnar committed Jun 15, 2017
1 parent 37311e5 commit 5e56ae1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ Selfoss uses [composer](https://getcomposer.org/) for installing external librar

For the client side, you will also need JavaScript dependencies installed by calling `npm install` in the `public` directory.

If you want to create a package with all the dependencies bundled, you will additionally require [grunt](https://gruntjs.com/). After installing it, execute `npm install` in the selfoss directory to obtain the required tasks. Then you can run `grunt` command to produce a zipball. As a bonus, you can also use `grunt install` as a shortcut for installing the selfoss dependencies described above.

CREDITS
-------

Expand Down
5 changes: 4 additions & 1 deletion gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,10 @@ module.exports = function(grunt) {
}
});

grunt.registerTask('default', ['auto_install', 'composer:install:no-dev:optimize-autoloader:prefer-dist', 'versionupdater', 'compress']);
grunt.registerTask('client:install', 'Install client-side dependencies.', ['auto_install']);
grunt.registerTask('server:install', 'Install server-side dependencies.', ['composer:install:no-dev:optimize-autoloader:prefer-dist']);
grunt.registerTask('install', 'Install both client-side and server-side dependencies.', ['client:install', 'server:install']);
grunt.registerTask('default', ['install', 'versionupdater', 'compress']);
grunt.registerTask('version', ['versionupdater']);
grunt.registerTask('zip', ['compress']);
};

0 comments on commit 5e56ae1

Please sign in to comment.