[ADF-721] Fix translation reference for dev task (#1923)

* move translation files in the bundles folder

* fix after review
ripristinate tslint and remove override tsconfig
This commit is contained in:
Eugenio Romano
2017-06-02 09:17:08 +01:00
committed by Eugenio Romano
parent 7572c8d098
commit 9db047f8fc
77 changed files with 247 additions and 146 deletions

View File

@@ -2,6 +2,7 @@ const webpack = require('webpack');
const helpers = require('./helpers');
const fs = require('fs');
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
module.exports = {
@@ -110,6 +111,11 @@ module.exports = {
},
plugins: [
new CopyWebpackPlugin([{
from: `src/i18n/`,
to: `bundles/assets/ng2-alfresco-datatable/i18n/`
}]),
new webpack.NoEmitOnErrorsPlugin(),
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),

View File

@@ -103,14 +103,7 @@ module.exports = {
context: 'resources/i18n',
from: '**/*.json',
to: 'resources/i18n'
},
... alfrescoLibs.map(lib => {
return {
context: 'node_modules',
from: `${lib}/src/i18n/*.json`,
to: 'node_modules'
}
})
}
]),
new webpack.optimize.CommonsChunkPlugin({

View File

@@ -0,0 +1,3 @@
{
}