├── client│ ├── app - All of our app specific components go in here│ ├── assets - Custom assets: fonts, images, etc…│ ├── components - Our reusable components, non-specific to to our app│├── e2e - Our protractor end to end tests│└── server ├── api - Our apps server api ├── auth - For handling authentication with different auth strategies ├── components - Our reusable or app-wide components ├── config - Where we do the bulk of our apps configuration │ └── local.env.js - Keep our environment variables out of source control │ └── environment - Configuration specific to the node environment └── views - Server rendered viewsTo create path manager to work with this structure:
If for some reason it is needed to move all the server files into root of dist/dev instead (sort of ignoring server folder),
it can be done by applying envIgnore config, i.e.:
For example, we need to generate the path to the file that is located in client/assets/img/logo.png and client/assets/img2/another.png
To start with, we need to add to config following values: