Skip to content

Commit

Permalink
webpackify workflowengine
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Schiwon <[email protected]>
  • Loading branch information
blizzz committed May 9, 2019
1 parent 38efad7 commit e5fefd1
Show file tree
Hide file tree
Showing 21 changed files with 80 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@
/apps/twofactor_backupcodes/js/*.js.map binary
/apps/updatenotification/js/updatenotification.js binary
/apps/updatenotification/js/updatenotification.js.map binary
/apps/workflowengine/js/*.js binary
/apps/workflowengine/js/*.js.map binary

/settings/js/vue* binary
1 change: 1 addition & 0 deletions apps/workflowengine/.l10nignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
js/checkPlugins.js
22 changes: 22 additions & 0 deletions apps/workflowengine/js/workflowengine.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions apps/workflowengine/js/workflowengine.js.map

Large diffs are not rendered by default.

14 changes: 1 addition & 13 deletions apps/workflowengine/lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,7 @@ class_exists(Template::class, true);
]);

script('workflowengine', [
'admin',
'templates',

// Check plugins
'filemimetypeplugin',
'filenameplugin',
'filesizeplugin',
'filesystemtagsplugin',
'requestremoteaddressplugin',
'requesttimeplugin',
'requesturlplugin',
'requestuseragentplugin',
'usergroupmembershipplugin',
'workflowengine',
]);
},
-100
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions apps/workflowengine/src/workflowengine.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import './admin'
import './templates'
import './filemimetypeplugin'
import './filenameplugin'
import './filesizeplugin'
import './filesystemtagsplugin'
import './requestremoteaddressplugin'
import './requesttimeplugin'
import './requesturlplugin'
import './requestuseragentplugin'
import './usergroupmembershipplugin'

window.OCA.WorkflowEngine = OCA.WorkflowEngine
37 changes: 37 additions & 0 deletions apps/workflowengine/webpack.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
const path = require('path');

module.exports = {
entry: path.join(__dirname, 'src', 'workflowengine.js'),
output: {
path: path.resolve(__dirname, './js'),
publicPath: '/js/',
filename: 'workflowengine.js',
},
module: {
rules: [
{
test: /\.css$/,
use: ['style-loader', 'css-loader']
},
{
test: /\.scss$/,
use: ['style-loader', 'css-loader', 'sass-loader']
},
{
test: /\.js$/,
loader: 'babel-loader',
exclude: /node_modules/
},
{
test: /\.(png|jpg|gif|svg)$/,
loader: 'file-loader',
options: {
name: '[name].[ext]?[hash]'
}
}
]
},
resolve: {
extensions: ['*', '.js']
}
};
4 changes: 3 additions & 1 deletion webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const oauth2 = require('./apps/oauth2/webpack')
const systemtags = require('./apps/systemtags/webpack')
const twofactor_backupscodes = require('./apps/twofactor_backupcodes/webpack')
const updatenotifications = require('./apps/updatenotification/webpack')
const workflowengine = require('./apps/workflowengine/webpack')

module.exports = [].concat(
core,
Expand All @@ -22,5 +23,6 @@ module.exports = [].concat(
oauth2,
systemtags,
twofactor_backupscodes,
updatenotifications
updatenotifications,
workflowengine
);

0 comments on commit e5fefd1

Please sign in to comment.