Dan Carr Design splash page rebuilt with Angular2+, Typescript, Sass, Karma, Jasmine, and Webpack.
The project uses Webpack to bundle and transpile the source code to a browser friendly format. You can run the project in two modes (dev and build). Run the following command to install dependencies, then choose a build mode.
$ npm install
Dev mode launches the project in the Webpack Dev Server with hot reloading for editing convience. Run the following command and open a browser to https://localhost:8080.
$ npm start
Build mode sets the environment to 'production' and optimizes the bundle for deployment. The files are optimized by using Webpack plugins and Gzipping the resulting bundle. Run the following command and view the files in the ./dist folder.
$ npm run build
The project uses Karma as a test runner and Jasmine as the BDD test suite. In addition, the project uses Angular's testing tools to unit test the components in the app.
$ npm test