fix translation wrong folder creation issue

This commit is contained in:
Eugenio Romano
2017-06-08 16:07:48 +01:00
parent 2c46f265e3
commit ae683ad708
19 changed files with 17 additions and 32 deletions

View File

@@ -114,13 +114,6 @@ module.exports = {
}),
new CopyWebpackPlugin([
... alfrescoLibs.map(lib => {
return {
context: `../ng2-components/${lib}/bundles/assets/` ,
from: '**/*',
to: `assets/`
}
}),
{
context: 'resources/i18n',
from: '**/*.json',

View File

@@ -88,7 +88,7 @@ module.exports = webpackMerge(commonConfig, {
from: '**/*',
to: `assets/${lib}/i18n/`
}
})
}),
])
]
});

View File

@@ -58,14 +58,6 @@ module.exports = webpackMerge(commonConfig, {
plugins: [
new CopyWebpackPlugin([
//Deprecation old files translation strategy from 1.6.0 translation files are in the bundles folder
... alfrescoLibs.map(lib => {
return {
context: 'node_modules',
from: `${lib}/src/i18n/*`,
to: `assets/${lib}/i18n/*`
}
}),
... alfrescoLibs.map(lib => {
return {
context: `node_modules/${lib}/bundles/assets/` ,

View File

@@ -94,7 +94,7 @@ module.exports = {
plugins: [
new CopyWebpackPlugin([{
from: `src/i18n/`,
to: `bundles/assets/ng2-alfresco-tag/i18n/`
to: `bundles/assets/${path.basename(helpers.root(''))}/i18n/`
}]),
new webpack.NoEmitOnErrorsPlugin(),

View File

@@ -93,7 +93,7 @@ module.exports = {
plugins: [
new CopyWebpackPlugin([{
from: `src/i18n/`,
to: `bundles/assets/ng2-alfresco-tag/i18n/`
to: `bundles/assets/${path.basename(helpers.root(''))}/i18n/`
}]),
new webpack.NoEmitOnErrorsPlugin(),

View File

@@ -93,7 +93,7 @@ module.exports = {
plugins: [
new CopyWebpackPlugin([{
from: `src/i18n/`,
to: `bundles/assets/ng2-alfresco-tag/i18n/`
to: `bundles/assets/${path.basename(helpers.root(''))}/i18n/`
}]),
new webpack.NoEmitOnErrorsPlugin(),

View File

@@ -96,7 +96,7 @@ module.exports = {
plugins: [
new CopyWebpackPlugin([{
from: `src/i18n/`,
to: `bundles/assets/ng2-alfresco-tag/i18n/`
to: `bundles/assets/${path.basename(helpers.root(''))}/i18n/`
}]),
new webpack.NoEmitOnErrorsPlugin(),

View File

@@ -88,7 +88,7 @@ module.exports = {
plugins: [
new CopyWebpackPlugin([{
from: `src/i18n/`,
to: `bundles/assets/ng2-alfresco-tag/i18n/`
to: `bundles/assets/${path.basename(helpers.root(''))}/i18n/`
}]),
new webpack.NoEmitOnErrorsPlugin(),

View File

@@ -90,7 +90,7 @@ module.exports = {
plugins: [
new CopyWebpackPlugin([{
from: `src/i18n/`,
to: `bundles/assets/ng2-alfresco-tag/i18n/`
to: `bundles/assets/${path.basename(helpers.root(''))}/i18n/`
}]),
new webpack.NoEmitOnErrorsPlugin(),

View File

@@ -93,7 +93,7 @@ module.exports = {
plugins: [
new CopyWebpackPlugin([{
from: `src/i18n/`,
to: `bundles/assets/ng2-alfresco-tag/i18n/`
to: `bundles/assets/${path.basename(helpers.root(''))}/i18n/`
}]),
new webpack.NoEmitOnErrorsPlugin(),

View File

@@ -94,7 +94,7 @@ module.exports = {
plugins: [
new CopyWebpackPlugin([{
from: `src/i18n/`,
to: `bundles/assets/ng2-alfresco-tag/i18n/`
to: `bundles/assets/${path.basename(helpers.root(''))}/i18n/`
}]),
new webpack.NoEmitOnErrorsPlugin(),

View File

@@ -93,7 +93,7 @@ module.exports = {
plugins: [
new CopyWebpackPlugin([{
from: `src/i18n/`,
to: `bundles/assets/ng2-alfresco-tag/i18n/`
to: `bundles/assets/${path.basename(helpers.root(''))}/i18n/`
}]),
new webpack.NoEmitOnErrorsPlugin(),

View File

@@ -95,7 +95,7 @@ module.exports = {
plugins: [
new CopyWebpackPlugin([{
from: `src/i18n/`,
to: `bundles/assets/ng2-alfresco-tag/i18n/`
to: `bundles/assets/${path.basename(helpers.root(''))}/i18n/`
}]),
new webpack.NoEmitOnErrorsPlugin(),

View File

@@ -93,7 +93,7 @@ module.exports = {
plugins: [
new CopyWebpackPlugin([{
from: `src/i18n/`,
to: `bundles/assets/ng2-alfresco-tag/i18n/`
to: `bundles/assets/${path.basename(helpers.root(''))}/i18n/`
}]),
new webpack.NoEmitOnErrorsPlugin(),

View File

@@ -93,7 +93,7 @@ module.exports = {
plugins: [
new CopyWebpackPlugin([{
from: `src/i18n/`,
to: `bundles/assets/ng2-alfresco-tag/i18n/`
to: `bundles/assets/${path.basename(helpers.root(''))}/i18n/`
}]),
new webpack.NoEmitOnErrorsPlugin(),

View File

@@ -93,7 +93,7 @@ module.exports = {
plugins: [
new CopyWebpackPlugin([{
from: `src/i18n/`,
to: `bundles/assets/ng2-alfresco-tag/i18n/`
to: `bundles/assets/${path.basename(helpers.root(''))}/i18n/`
}]),
new webpack.NoEmitOnErrorsPlugin(),

View File

@@ -93,7 +93,7 @@ module.exports = {
plugins: [
new CopyWebpackPlugin([{
from: `src/i18n/`,
to: `bundles/assets/ng2-alfresco-tag/i18n/`
to: `bundles/assets/${path.basename(helpers.root(''))}/i18n/`
}]),
new webpack.NoEmitOnErrorsPlugin(),

View File

@@ -93,7 +93,7 @@ module.exports = {
plugins: [
new CopyWebpackPlugin([{
from: `src/i18n/`,
to: `bundles/assets/ng2-alfresco-tag/i18n/`
to: `bundles/assets/${path.basename(helpers.root(''))}/i18n/`
}]),
new webpack.NoEmitOnErrorsPlugin(),

View File

@@ -94,7 +94,7 @@ module.exports = {
plugins: [
new CopyWebpackPlugin([{
from: `src/i18n/`,
to: `bundles/assets/ng2-alfresco-tag/i18n/`
to: `bundles/assets/${path.basename(helpers.root(''))}/i18n/`
}]),
new webpack.NoEmitOnErrorsPlugin(),