This project was generated with Angular CLI version 1.6.5.
A Starter Kit for QTS that uses Angular 7, the latest stable version of Foundation for Sites using the XY Grid and SCSS by default and ngx-foundation. The starter kit contains all of the basic assets to get our SPA up and running quickly.
This project was generated with Angular CLI version 7.
- Getting Started
- Install Angular CLI Globally and Packages
- Imported ngx-foundation Modules
- Development Server
- API and Examples
- Code Scaffolding
- Stylesheets and Assets
- What-input
- Build and Tests
- Help
- License
cd to the directory that you want to install this starter kit to, then do a git clone:
git clone https://github.com/nthompson777/qts-spa-starterkit
Then rename your project folder.
Run yarn global add @angular/cli
or npm i -g @angular/cli
Simply run yarn
or npm install
If you do not already have Yarn installed, install it globally here.
All ngx-foundation modules are imported by default and are globally available in your project: /src/app/shared/ngx-foundation.module.ts
. Remove or comment out the modules that you do not need.
import {
AccordionModule,
AlertModule,
ButtonsModule,
CarouselModule,
CollapseModule,
BsDatepickerModule,
BsDropdownModule,
ModalModule,
OffcanvasModule,
PaginationModule,
ProgressbarModule,
RatingModule,
SortableModule,
TabsModule,
TimepickerModule,
TooltipModule,
TypeaheadModule,
} from 'ngx-foundation';
If you are implementing Lazy Loading in your project you will need to remove import { NgxFoundationModule } from './shared/ngx-foundation.module';
located in /src/app/app.module.ts
and then import whatever modules you need for each component in your route.
Run yarn start
or ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Visit the ngx-foundation site to see examples with extensive code snippets.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
The main stylesheet /src/styles.scss
contains all of the needed base imports. All other stylesheets are located in the assets directory: /src/assets/scss
. All Foundation components and the Motion UI Sass Library are imported by default, so be sure to comment out any unneeded Foundation components that you're not using in your project to keep your stylesheet file size smaller.
what-input.js
is imported as a dependency and is in the scripts
array located in the /angular.json
file.
"scripts": [
"./node_modules/what-input/dist/what-input.min.js"
]
Run yarn build
or ng build
to build your project. The build artifacts will be stored in the dist/
directory. Use the -prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
Visit the ngx-foundation site to see examples with extensive code snippets.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.
MIT