mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
* mdl2 transition part form 1 * hyperlink * radio buttons * label * people component * [ADF-852] moved textarea to new angular material * number widget * change error multiline * [ADF-852] added md desgin for dropdown * [ADF-852] removed unused css file * functional widget * error dropdown * [ADF-852] - changed to new md date * remove md-date-time-picker dependency in ng2-alfresco-from * [ADF-852] conversion dynamic table phase 1 * container widget * remove test unused * validation change * [ADF-852] convert dynamic table phase 2 * [ADF-852] improving style and fixing bugs * move custom style for form in form.scss * error footer refactor * fix models and test * [ADF-852]- fixed minor twitch on dynamic table * align fields and fix tests dropdown * disabling button in readonly clean mdl form start process form * align dropdown * [ADF-1048] Upload widget can manage multiple files. (#2134) * [ADF-1048] improving upload widget * [ADF-1048] added ability to upload multiple file on upload widget * [ADF-1048] added multiple upload elements on upload widget * [ADF-1048] - show all the files on the completed form * [ADF-1048] fixed wrong selecion on displya upload * [ADF-1048] removed fdescribe from upload widget * date validation and custom moment data adapter * move content widget in the widget folder * add style fields and theming * color primary radio and checkbox * fix amount widget and colors * change ViewEncapsulation and fix date style button issue * empty form customization 1736 * focus label style * [ADF-224] fix the rendering of custom stencils when form is opened in readonly state. (#2161) * [ADF-224] Fixed rendering of custom stencil in readonly mode * [ADF-224] improved variable name * test fix * container filter in form model creation * show display value correctly * fix change date and test * fix date editor and add some test coverage for date * style minor issue * fix new unused local import rule * fix test date * strict date check * fix analytics failing test * restore null as default in model * unify model diagrams and analytics
179 lines
5.3 KiB
JavaScript
179 lines
5.3 KiB
JavaScript
const webpack = require('webpack');
|
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
|
const ExtractTextPlugin = require("extract-text-webpack-plugin");
|
|
const helpers = require('./helpers');
|
|
const path = require('path');
|
|
|
|
module.exports = {
|
|
entry: {
|
|
'polyfills': './app/polyfills.ts',
|
|
'vendor': './app/vendor.ts',
|
|
'app': './app/main.ts'
|
|
},
|
|
|
|
resolveLoader: {
|
|
alias: {
|
|
"license-check": path.resolve(__dirname, "./loaders/license-check")
|
|
}
|
|
},
|
|
|
|
module: {
|
|
rules: [
|
|
{
|
|
enforce: 'pre',
|
|
test: /\.js$/,
|
|
include: [helpers.root('app'), helpers.root('../ng2-components')],
|
|
loader: 'source-map-loader',
|
|
exclude: [/node_modules/, /public/, /resources/, /dist/]
|
|
},
|
|
{
|
|
enforce: 'pre',
|
|
test: /\.ts$/,
|
|
loader: 'tslint-loader',
|
|
include: [helpers.root('app')],
|
|
options: {
|
|
emitErrors: true,
|
|
fix: true
|
|
},
|
|
exclude: [/node_modules/, /public/, /resources/, /dist/]
|
|
},
|
|
{
|
|
enforce: 'pre',
|
|
test: /\.ts$/,
|
|
use: 'source-map-loader',
|
|
exclude: [/public/, /resources/, /dist/]
|
|
},
|
|
{
|
|
test: /\.html$/,
|
|
include: [helpers.root('app'), helpers.root('../ng2-components')],
|
|
loader: 'html-loader',
|
|
exclude: [/node_modules/, /public/, /resources/, /dist/]
|
|
},
|
|
{
|
|
test: /\.css$/,
|
|
exclude: [helpers.root('app'), helpers.root('../ng2-components')],
|
|
loader: ExtractTextPlugin.extract({
|
|
fallback: 'style-loader',
|
|
use: 'css-loader?sourceMap'
|
|
})
|
|
},
|
|
{
|
|
test: /\.css$/,
|
|
include: [helpers.root('app'), helpers.root('../ng2-components')],
|
|
loader: 'raw-loader'
|
|
},
|
|
{
|
|
test: /\.scss$/,
|
|
include: [helpers.root('app'), helpers.root('../ng2-components')],
|
|
use: [{
|
|
loader: "to-string-loader"
|
|
}, {
|
|
loader: "raw-loader"
|
|
}, {
|
|
loader: "sass-loader",
|
|
options: {
|
|
includePaths: [path.resolve(__dirname, '../../ng2-components/ng2-alfresco-core/styles')]
|
|
}
|
|
}],
|
|
exclude: [/node_modules/, /bundles/, /dist/, /demo/]
|
|
},
|
|
{
|
|
test: /\.(png|jpe?g|gif|svg|woff|woff2|ttf|eot|ico)$/,
|
|
loader: 'file-loader?name=assets/[name].[hash].[ext]'
|
|
},
|
|
{
|
|
enforce: 'pre',
|
|
test: /\.ts$/,
|
|
loader: 'license-check',
|
|
include: helpers.root('app'),
|
|
options: {
|
|
emitErrors: true,
|
|
licenseFile: path.resolve(__dirname, '../assets/license_header.txt')
|
|
},
|
|
exclude: [/node_modules/, /bundles/, /dist/, /demo/]
|
|
}
|
|
]
|
|
},
|
|
|
|
plugins: [
|
|
new webpack.ContextReplacementPlugin(
|
|
// The (\\|\/) piece accounts for path separators in *nix and Windows
|
|
/angular(\\|\/)core(\\|\/)@angular/,
|
|
helpers.root('./app'), // location of your src
|
|
{} // a map of your routes
|
|
),
|
|
new HtmlWebpackPlugin({
|
|
template: './index.html'
|
|
}),
|
|
|
|
new CopyWebpackPlugin([
|
|
{
|
|
context: 'resources/i18n',
|
|
from: '**/*.json',
|
|
to: 'resources/i18n'
|
|
},
|
|
{
|
|
from: 'app.config-dev.json'
|
|
},
|
|
{
|
|
from: 'app.config-prod.json'
|
|
},
|
|
{
|
|
from: 'favicon-96x96.png'
|
|
},
|
|
{
|
|
from: 'node_modules/pdfjs-dist/build/pdf.worker.js',
|
|
to: 'pdf.worker.js'
|
|
},
|
|
{
|
|
context: 'public',
|
|
from: '',
|
|
to: ''
|
|
},
|
|
{
|
|
from: 'versions.json'
|
|
}
|
|
]),
|
|
|
|
new webpack.optimize.CommonsChunkPlugin({
|
|
name: ['app', 'vendor', 'polyfills']
|
|
})
|
|
],
|
|
|
|
devServer: {
|
|
contentBase: helpers.root('dist'),
|
|
compress: true,
|
|
port: 3000,
|
|
historyApiFallback: true,
|
|
host: '0.0.0.0',
|
|
inline: true,
|
|
proxy: {
|
|
'/ecm': {
|
|
target: {
|
|
host: "0.0.0.0",
|
|
protocol: 'http:',
|
|
port: 8080
|
|
},
|
|
pathRewrite: {
|
|
'^/ecm': ''
|
|
}
|
|
},
|
|
'/bpm': {
|
|
target: {
|
|
host: "0.0.0.0",
|
|
protocol: 'http:',
|
|
port: 9999
|
|
},
|
|
pathRewrite: {
|
|
'^/bpm': ''
|
|
}
|
|
}
|
|
}
|
|
},
|
|
|
|
node: {
|
|
fs: 'empty'
|
|
}
|
|
};
|