This commit is contained in:
tibing 2016-10-13 16:27:42 +03:00
parent 43257a6081
commit 1b2b3f4ca1
4 changed files with 95 additions and 68 deletions

View file

@ -53,24 +53,35 @@
<div class="subHeader"></div><p>The project structure is originally based on <a href="https://github.com/AngularClass/angular2-webpack-starter#file-structure">Angular2 Webpack Starter</a>. We made some changes we thought would be better in our particular&nbsp;case.</p>
<p>The directory structure of this template is as&nbsp;follows:</p>
<pre><code>ng2-admin/
├──config/ * build configuration
├──config/ * webpack build configuration
│ ├──head-config.common.js * configuration for head elements in index.html
│ │
│ ├──helpers.js * helper functions for our configuration files
│ │
│ ├──webpack.dev.js * development webpack config
│ │
│ ├──webpack.prod.js * production webpack config
│ └──webpack.test.js * testing webpack config
│ │
│ ├──webpack.test.js * testing webpack config
│ │
│ ├──electron/ * electron webpack config
│ │
│ └──html-elements-plugin/ * html elements plugin
├──src/ * source files that will be compiled to javascript
│ ├──main.browser.ts * entry file for our browser environment
│ ├──custom-typings.d.ts * custom typings for third-party modules
│ │
│ ├──desktop.ts * electron window initialization
│ │
│ ├──index.html * application layout
│ │
│ ├──polyfills.ts * polyfills file
│ ├──main.browser.ts * entry file for our browser environment
│ │
│ ├──vendor.ts * vendors file
│ ├──package.json * electrons package.json
│ │
│ ├──custom-typings.d.ts * custom typings for third-party modules
│ ├──polyfills.browser.ts * polyfills file
│ │
│ ├──platform/ * platform dependent imports
│ ├──vendor.browser.ts * vendors file
│ │
│ ├──app/ * application code - our working directory
│ │ │
@ -78,9 +89,15 @@
│ │ │
│ │ ├──app.loader.ts * requires initial css styles (most important for application loading stage)
│ │ │
│ │ ├──app.routes.ts * application routes and menu configuration
│ │ ├──app.menu.ts * menu pages routes
│ │ │
│ │ ├──app.state.ts * global application state for data exchange between components
│ │ ├──app.module.ts * main application module
│ │ │
│ │ ├──app.routes.ts * application routes
│ │ │
│ │ ├──global.state.ts * global application state for data exchange between components
│ │ │
│ │ ├──environment.ts * environment provider
│ │ │
│ │ ├──app.scss * application styles
│ │ │