webpackify workflowengine

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2019-05-09 18:39:40 +02:00
parent 38efad7881
commit e5fefd1338
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
21 changed files with 80 additions and 14 deletions

2
.gitattributes vendored
View File

@ -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

View File

@ -0,0 +1 @@
js/checkPlugins.js

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -60,19 +60,7 @@ class Application extends \OCP\AppFramework\App {
]);
script('workflowengine', [
'admin',
'templates',
// Check plugins
'filemimetypeplugin',
'filenameplugin',
'filesizeplugin',
'filesystemtagsplugin',
'requestremoteaddressplugin',
'requesttimeplugin',
'requesturlplugin',
'requestuseragentplugin',
'usergroupmembershipplugin',
'workflowengine',
]);
},
-100

View File

@ -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

View File

@ -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']
}
};

View File

@ -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,
@ -22,5 +23,6 @@ module.exports = [].concat(
oauth2,
systemtags,
twofactor_backupscodes,
updatenotifications
updatenotifications,
workflowengine
);