Website for toddlenhart.com
A lot of the stuff below is just notes for myself and things I need to do for the website.
Using a couple of guides for structure of the angular app/website: https://github.com/johnpapa/ng-demos/tree/master/modular https://github.com/johnpapa/ng-demos
Style Guide: (Not implemented, just putting the link here for now.) https://github.com/johnpapa/angular-styleguide
See https://github.com/johnpapa/ng-demos/tree/master/modular and go through any further setup that may be needed. Each component should be separated out in ...
/build should be generated when deployed/built/maybe even when testing. It shouldn't be added to the repository, (at least for now). /build probably shouldn't have server stuff in it, (since the build folder should be the one used to serve the files.)
Steps to building/running the website. (This is going to change.)
- ...
- Going to want
npm init
, anynpm install
commands. - Any configuration things that need to be setup.
- ...
- Move and compile all file to /build
- Each .css and .js file should be minified and uglified.
- The angular files should be run through the angular pre-minifier thing to prevent things from happening with the uglifier.
- Perhaps add the cdnizer plugin that automatically adds cdn links in html files.
- ...
- Compile .scss files into .css files. Include the source maps.
- Generate sourcemaps for .js files.
- Live reload using Browsersync? or something else...
- ...
- Bundles need to move to /build
- Or, they need to combined and added to the html file (replaced with gulp-html-replace)
- Might want to put all of the individual js files in index.html (or other html files) and bundle them up for /build.
- Keeping it the way it is though (with bundles in /src, and combined in /build), might be the better approach.
Have to decide where and when we are going to copy the html files over to /build and /dist. Decide when to copy the libs over from /node_modules/ to assets/lib/ Decide when to cdnify. Probably when building.
The key to remember here is that the build folder is used for testing, especially on the server. Regular development should occur completely within /src. Gulp live reloading should also use files only in /src. Everything should then be compiled for /build
/dist should be an exact copy of /build
cdnify and bundle other js files at the same time. (When moving to /build). Change load-libs to load-srclibs or load-devlibs Add load-build-libs to move the libs from /src to /build