diff --git a/.angular-cli.json b/.angular-cli.json index 74aaa400a..3fa170a56 100644 --- a/.angular-cli.json +++ b/.angular-cli.json @@ -1,17 +1,13 @@ { "$schema": "./node_modules/@angular/cli/lib/config/schema.json", "project": { - "name": "sb-admin-angular4-bootstrap4" + "name": "test-ng4" }, "apps": [ { "root": "src", "outDir": "dist", - "assets": [ - "assets", - "favicon.ico", - ".htaccess" - ], + "assets": ["assets", "favicon.ico"], "index": "index.html", "main": "main.ts", "polyfills": "polyfills.ts", @@ -23,9 +19,7 @@ "../node_modules/font-awesome/css/font-awesome.css", "styles/app.scss" ], - "scripts": [ - "../node_modules/chart.js/dist/Chart.js" - ], + "scripts": ["../node_modules/chart.js/dist/Chart.js"], "environmentSource": "environments/environment.ts", "environments": { "dev": "environments/environment.ts", @@ -40,13 +34,16 @@ }, "lint": [ { - "project": "src/tsconfig.app.json" + "project": "src/tsconfig.app.json", + "exclude": "**/node_modules/**" }, { - "project": "src/tsconfig.spec.json" + "project": "src/tsconfig.spec.json", + "exclude": "**/node_modules/**" }, { - "project": "e2e/tsconfig.e2e.json" + "project": "e2e/tsconfig.e2e.json", + "exclude": "**/node_modules/**" } ], "test": { diff --git a/.gitignore b/.gitignore index 3a63b9701..54bfd2001 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # See http://help.github.com/ignore-files/ for more about ignoring files. -yarn-error.log + # compiled output +/dist /tmp /out-tsc diff --git a/README.md b/README.md index 219791205..12a82002a 100644 --- a/README.md +++ b/README.md @@ -1,57 +1,27 @@ -# SB Admin rewritten in Angular4 and Bootstrap 4 +# TestNg4 -Simple Dashboard Admin App built using Angular 4 and Bootstrap 4 +This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.4.3. -This project is a port of the famous Free Admin Bootstrap Theme [SB Admin v4.0](http://startbootstrap.com/template-overviews/sb-admin-2/) to Angular4 Theme. +## Development server -Powered by [StartAngular](http://startangular.com/) & [StrapUI](http://strapui.com/) +Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files. -## [Demo](http://rawgit.com/start-angular/SB-Admin-BS4-Angular-4/master/dist/) +## Code scaffolding -This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.0.0. +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`. -### Introduction -Provides fast, reliable and extensible starter for the development of Angular projects. +## Build -`sb-admin-bs4-angular4` provides the following features: -- Developed using boostrap-v4.0.0-alpha.6 -- angular-v4.2.4 -- angular/cli-v1.1.3 -- Following the best practices. -- Ahead-of-Time compilation support. -- Official Angular i18n support. -- Production and development builds. -- Tree-Shaking production builds. +Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build. -### How to start -**Note** that this seed project requires **node >=v6.9.0 and npm >=3**. - -In order to start the project use: -```bash -$ git clone https://github.com/start-angular/SB-Admin-BS4-Angular-4 -$ cd SB-Admin-BS4-Angular-4 -# install the project's dependencies -$ npm install -# watches your files and uses livereload by default run `npm start` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files. -$ npm start -# prod build, will output the production application in `dist` -# the produced code can be deployed (rsynced) to a remote server -$ npm run build -``` - -### Code scaffolding - -Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive/pipe/service/class/module`. - -### Running unit tests +## Running unit tests Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). -### Running end-to-end tests +## Running end-to-end tests Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/). -Before running the tests make sure you are serving the app via `ng serve`. -### Further help +## Further help To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md). diff --git a/dist/0.eb90c44e0bc4ae102504.chunk.js b/dist/0.eb90c44e0bc4ae102504.chunk.js deleted file mode 100644 index 7c9f1db5a..000000000 --- a/dist/0.eb90c44e0bc4ae102504.chunk.js +++ /dev/null @@ -1 +0,0 @@ -webpackJsonp([0],{"2waW":function(t,e,n){"use strict";var l=n("/oeL"),r=n("qbdv"),i=n("hMLV"),o=n("f1rf");n.d(e,"a",function(){return s});var s=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[o.a]}},t}();s.decorators=[{type:l.NgModule,args:[{declarations:i.a,exports:i.a,imports:[r.d]}]}],s.ctorParameters=function(){return[]}},CVNG:function(t,e,n){"use strict";function l(t){return o["ɵvid"](0,[(t()(),o["ɵeld"](0,null,null,4,"button",[["aria-label","Close"],["class","close"],["type","button"]],null,[[null,"click"]],function(t,e,n){var l=!0,r=t.component;if("click"===e){l=!1!==r.closeHandler()&&l}return l},null,null)),(t()(),o["ɵted"](null,["\n "])),(t()(),o["ɵeld"](0,null,null,1,"span",[["aria-hidden","true"]],null,null,null,null,null)),(t()(),o["ɵted"](null,["×"])),(t()(),o["ɵted"](null,["\n "]))],null,null)}function r(t){return o["ɵvid"](2,[(t()(),o["ɵted"](null,["\n "])),(t()(),o["ɵeld"](0,null,null,6,"div",[["role","alert"]],[[8,"className",0]],null,null,null,null)),(t()(),o["ɵted"](null,["\n "])),(t()(),o["ɵand"](16777216,null,null,1,null,l)),o["ɵdid"](16384,null,0,s.p,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),o["ɵted"](null,["\n "])),o["ɵncd"](null,0),(t()(),o["ɵted"](null,["\n "])),(t()(),o["ɵted"](null,["\n "]))],function(t,e){t(e,4,0,e.component.dismissible)},function(t,e){var n=e.component;t(e,1,0,"alert alert-"+n.type+(n.dismissible?" alert-dismissible":""))})}function i(t){return o["ɵvid"](0,[(t()(),o["ɵeld"](0,null,null,1,"ngb-alert",[],null,null,null,r,d)),o["ɵdid"](49152,null,0,u.a,[a.a],null,null)],null,null)}var o=n("/oeL"),s=n("qbdv"),u=n("PVMJ"),a=n("nVXb");n.d(e,"c",function(){return d}),e.b=r,n.d(e,"a",function(){return p});var c=[],d=o["ɵcrt"]({encapsulation:2,styles:c,data:{}}),p=o["ɵccf"]("ngb-alert",u.a,i,{dismissible:"dismissible",type:"type"},{close:"close"},["*"])},PVMJ:function(t,e,n){"use strict";var l=n("/oeL"),r=n("nVXb");n.d(e,"a",function(){return i});var i=function(){function t(t){this.close=new l.EventEmitter,this.dismissible=t.dismissible,this.type=t.type}return t.prototype.closeHandler=function(){this.close.emit(null)},t}();i.decorators=[{type:l.Component,args:[{selector:"ngb-alert",changeDetection:l.ChangeDetectionStrategy.OnPush,template:'\n