Skip to content

Commit

Permalink
Fix: Long readme lines, stray variable, export
Browse files Browse the repository at this point in the history
  • Loading branch information
GeKorm committed Jun 13, 2017
1 parent f3f4638 commit a098602
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,15 @@ Files under *buildFolders* get file-specific permissions.
const PermissionsOutputPlugin = require('webpack-permissions-plugin');

plugins.push(new PermissionsOutputPlugin({
buildFolders: [path.resolve(__dirname, 'resources/'), path.resolve(__dirname, 'dist/')],
// dist/app.js is redundant here, it already got 755 by being included in the buildFolder above
buildFiles: [path.resolve(__dirname, 'someFile.js'), path.resolve(__dirname, 'dist/app.js')]
buildFolders: [
path.resolve(__dirname, 'resources/'),
path.resolve(__dirname, 'dist/')
],
buildFiles: [
path.resolve(__dirname, 'someFile.js'),
path.resolve(__dirname, 'dist/app.js')
]
// dist/app.js is redundant, it already got 755 by being included in the buildFolder above
}));
```
###### Advanced: Per-path modes
Expand All @@ -43,7 +49,6 @@ plugins.push(new PermissionsOutputPlugin({
dirMode: '644'
}
],
// buildFiles can override buildFolders modes
buildFiles: [
{
path: path.resolve(__dirname, 'someFile.js'),
Expand Down
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const FileHound = require('filehound');
function PermissionsOutputPlugin(options) {
this.options = options;
}
const b = 0o755;

PermissionsOutputPlugin.prototype.apply = function (compiler) {
compiler.plugin('done', () => {
Expand Down Expand Up @@ -34,3 +33,5 @@ PermissionsOutputPlugin.prototype.apply = function (compiler) {
}
});
};

module.exports = PermissionsOutputPlugin;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "webpack-permissions-plugin",
"version": "0.0.1",
"version": "0.0.2",
"author": "George Kormaris <[email protected]>",
"description": "A webpack plugin to set permissions for your output files and folders",
"homepage": "https://github.com/GeKorm/webpack-permissions-plugin",
Expand Down

0 comments on commit a098602

Please sign in to comment.