Skip to content

Instantly share code, notes, and snippets.

@eromano
Last active June 9, 2017 00:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eromano/a1c83a00916a4d2986ab5e1cefb9bef7 to your computer and use it in GitHub Desktop.
Save eromano/a1c83a00916a4d2986ab5e1cefb9bef7 to your computer and use it in GitHub Desktop.
How Update ADF from 1.3.0/1.4.0 to 1.5.0
//Add the MaterialModule import in your app.modules.ts or import it in your project
import { MaterialModule } from '@angular/material';
@NgModule({
imports: [
......
MaterialModule.forRoot()
],
declarations: [
......
],
providers: [.....],
bootstrap: [.....]
})
{
.........
"scripts": {
...........
},
"dependencies": {
"@angular/animations": "~4.0.0",
"@angular/common": "~4.0.0",
"@angular/compiler": "~4.0.0",
"@angular/core": "~4.0.0",
"@angular/forms": "~4.0.0",
"@angular/http": "~4.0.0",
"@angular/platform-browser": "~4.0.0",
"@angular/platform-browser-dynamic": "~4.0.0",
"@angular/router": "~4.0.0",
"@angular/compiler-cli": "~4.0.0",
"@angular/material": "2.0.0-beta.1",
.....
.....
.....
"reflect-metadata": "0.1.9",
"rxjs": "5.1.0",
"zone.js": "0.8.11",
"dialog-polyfill": "^0.4.7",
"ng2-translate": "5.0.0",
.......
.......
.......
"alfresco-js-api": "~1.5.0",
"ng2-activiti-analytics": "1.5.0",
"ng2-activiti-diagrams": "1.5.0",
"ng2-activiti-form": "1.5.0",
"ng2-activiti-processlist": "1.5.0",
"ng2-activiti-tasklist": "1.5.0",
"ng2-alfresco-core": "1.5.0",
"ng2-alfresco-datatable": "1.5.0",
"ng2-alfresco-documentlist": "1.5.0",
"ng2-alfresco-login": "1.5.0",
"ng2-alfresco-search": "1.5.0",
"ng2-alfresco-tag": "1.5.0",
"ng2-alfresco-social": "1.5.0",
"ng2-alfresco-upload": "1.5.0",
"ng2-alfresco-userinfo": "1.5.0",
"ng2-alfresco-viewer": "1.5.0",
"ng2-alfresco-webscript": "1.5.0"
.....
.....
.....
.....
},
"devDependencies": {
.....
.....
"awesome-typescript-loader": "3.1.3",
"typescript": "2.0.3"
.....
.....
}
}
{
"compilerOptions": {
"baseUrl": ".",
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"skipLibCheck": true,
"noLib": false,
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"noImplicitAny": false,
"noImplicitReturns": false,
"noImplicitUseStrict": false,
"noFallthroughCasesInSwitch": true,
"removeComments": true,
"declaration": true,
"outDir": "./dist",
"lib": [
"es2015",
"dom"
],
"suppressImplicitAnyIndexErrors": true
},
"exclude": [
"demo",
"node_modules",
"dist"
],
"angularCompilerOptions": {
"strictMetadataEmit": false,
"skipTemplateCodegen": true
}
}
//Modify your plugins in webpack.prod.js and webpack.dev.js adding the following configuration in CopyWebpackPlugin
module.exports = {
......
......
plugins: [
new CopyWebpackPlugin([
.....
.....
{
context: 'node_modules',
from: 'ng2-activiti-*/bundles/assets/images/*.*',
to: 'assets/images',
flatten: true
},
{
context: 'node_modules',
from: 'ng2-alfresco-*/bundles/assets/images/*.*',
to: 'assets/images',
flatten: true
}
]),
....
....
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment