Actions
Task #133
closedDynamic module installation on FE
Start date:
09/05/2016
Due date:
% Done:
100%
Estimated time:
112.00 h
Owner:
Description
Possible ways:
- New npm module will be added to package.json and gulp script will be run.
- Implement requireJs (not working with browserify).
- Implement isomorfic server.
Updated by Vít Švanda over 8 years ago
Possible ways:
- Webpack - HMR (hot module roload)
- Raptor-Optimizer / Lasso https://github.com/lasso-js/lasso-require
Updated by Vít Švanda over 8 years ago
I tried implement browserify-hrm (Hot-Reload-Module).
- It worked fine for hot reaload source during develpoing. HRM publich websocket server, this server is use for propagate code changes to browser. Reload browser after source are change is not neseccary.
- It is difficult use it for add whole npm module.
- Browserify HRM is only in 0.3.1 version and is no longer developed. (Not good adept for production stage)
Updated by Vít Švanda over 8 years ago
This issue are completed:
- Loading module descriptors through all node modules.
- Create module assembler for all loaded modules.
- Loading less
- is not controlled via module descriptors
- component used in core (their less) must be installed (this is not good)
Updated by Vít Švanda over 8 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 50
- Gulp tasks works synchronously now (loadModules and createModuleAssembler)
- Loading less - is controlled / defined in module descriptors
- Loading routes and routes assembler generating is done.
Updated by Vít Švanda over 8 years ago
- Default theme is loading from module by app config
Updated by Vít Švanda over 8 years ago
- % Done changed from 50 to 80
After separate frontend to client module. I discovered a serious problem with npm dependency.
- If core modules does not under client module (on file system), then core module not have dependency on react module.
- I solved this problem. Node modules folder must be parent folder for all module (core, client, acc ...). I created symlink for easy work with this.
- I solved this problem, but I have to manualy (generate in gulp) add imports another less files to main app.less.
Updated by Vít Švanda over 8 years ago
- % Done changed from 80 to 90
- Created install documentation ... in README.md (frontend/).
- Merge from master to frontend modularity branche
- Merge to master
Updated by Vít Švanda about 8 years ago
Solving problem with inoperalbe Linter for submodules.
- I will have to create task for linter in gulp build file.
Updated by Vít Švanda about 8 years ago
Updated by Vít Švanda about 8 years ago
- Status changed from In Progress to Needs feedback
- Assignee changed from Vít Švanda to Radek Tomiška
Radek please i need your feedback. This task is little duplicate with #131
Updated by Radek Tomiška about 8 years ago
- Status changed from Needs feedback to Closed
- Assignee changed from Radek Tomiška to Vít Švanda
- % Done changed from 90 to 100
It work and code looks nice.
Actions