Skip to content

Commit 90ae9e4

Browse files
initial commit
1 parent 105e3d8 commit 90ae9e4

File tree

91 files changed

+3721
-61
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+3721
-61
lines changed

.angular-cli.json

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"project": {
4+
"name": "angular-4-ngx-rocket"
5+
},
6+
"apps": [
7+
{
8+
"root": "src",
9+
"outDir": "dist",
10+
"assets": [
11+
"assets",
12+
"favicon.ico",
13+
"robots.txt"
14+
],
15+
"index": "index.html",
16+
"main": "main.ts",
17+
"polyfills": "polyfills.ts",
18+
"test": "test.ts",
19+
"tsconfig": "tsconfig.app.json",
20+
"testTsconfig": "tsconfig.spec.json",
21+
"prefix": "app",
22+
"styles": [
23+
"main.scss"
24+
],
25+
"scripts": [],
26+
"environmentSource": "environments/environment.ts",
27+
"environments": {
28+
"dev": "environments/environment.ts",
29+
"prod": "environments/environment.prod.ts"
30+
}
31+
}
32+
],
33+
"e2e": {
34+
"protractor": {
35+
"config": "./protractor.conf.js"
36+
}
37+
},
38+
"lint": [
39+
{
40+
"project": "src/tsconfig.app.json"
41+
},
42+
{
43+
"project": "src/tsconfig.spec.json"
44+
},
45+
{
46+
"project": "e2e/tsconfig.e2e.json"
47+
}
48+
],
49+
"test": {
50+
"karma": {
51+
"config": "./karma.conf.js"
52+
}
53+
},
54+
"defaults": {
55+
"styleExt": "scss",
56+
"component": {}
57+
},
58+
"warnings": {
59+
"typescriptMismatch": false
60+
}
61+
}

.editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Editor configuration, see http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
end_of_line = lf
11+
max_line_length = 120
12+
13+
[*.md]
14+
max_line_length = off
15+
trim_trailing_whitespace = false

.gitignore

+57-59
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,57 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
yarn-debug.log*
6-
yarn-error.log*
7-
8-
# Runtime data
9-
pids
10-
*.pid
11-
*.seed
12-
*.pid.lock
13-
14-
# Directory for instrumented libs generated by jscoverage/JSCover
15-
lib-cov
16-
17-
# Coverage directory used by tools like istanbul
18-
coverage
19-
20-
# nyc test coverage
21-
.nyc_output
22-
23-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24-
.grunt
25-
26-
# Bower dependency directory (https://bower.io/)
27-
bower_components
28-
29-
# node-waf configuration
30-
.lock-wscript
31-
32-
# Compiled binary addons (http://nodejs.org/api/addons.html)
33-
build/Release
34-
35-
# Dependency directories
36-
node_modules/
37-
jspm_packages/
38-
39-
# Typescript v1 declaration files
40-
typings/
41-
42-
# Optional npm cache directory
43-
.npm
44-
45-
# Optional eslint cache
46-
.eslintcache
47-
48-
# Optional REPL history
49-
.node_repl_history
50-
51-
# Output of 'npm pack'
52-
*.tgz
53-
54-
# Yarn Integrity file
55-
.yarn-integrity
56-
57-
# dotenv environment variables file
58-
.env
59-
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# Compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
8+
# Dependencies
9+
/node_modules
10+
11+
# Cordova
12+
/www
13+
/plugins
14+
/platforms
15+
16+
# IDEs and editors
17+
.idea/*
18+
!.idea/runConfigurations/
19+
!.idea/codeStyleSettings.xml
20+
.project
21+
.classpath
22+
.c9/
23+
*.launch
24+
.settings/
25+
xcuserdata/
26+
*.sublime-workspace
27+
28+
# IDE - VSCode
29+
.vscode/*
30+
!.vscode/settings.json
31+
!.vscode/tasks.json
32+
!.vscode/launch.json
33+
!.vscode/extensions.json
34+
35+
# Maven
36+
/target
37+
/log
38+
39+
# Misc
40+
/.sass-cache
41+
/connect.lock
42+
/coverage/*
43+
/libpeerconnection.log
44+
npm-debug.log
45+
testem.log
46+
/typings
47+
/reports
48+
/src/translations/template.*
49+
/src/environments/.env.json
50+
51+
# E2E
52+
/e2e/*.js
53+
/e2e/*.map
54+
55+
# System Files
56+
.DS_Store
57+
Thumbs.db

.htmlhintrc

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"tagname-lowercase": false,
3+
"attr-lowercase": false,
4+
"attr-value-double-quotes": true,
5+
"tag-pair": true,
6+
"spec-char-escape": true,
7+
"id-unique": true,
8+
"src-not-empty": true,
9+
"attr-no-duplication": true,
10+
"title-require": true,
11+
"tag-self-close": true,
12+
"head-script-disabled": true,
13+
"doctype-html5": true,
14+
"id-class-value": "dash",
15+
"style-disabled": true,
16+
"inline-style-disabled": true,
17+
"inline-script-disabled": true,
18+
"space-tab-mixed-disabled": "true",
19+
"id-class-ad-disabled": true,
20+
"attr-unsafe-chars": true
21+
}

.stylelintrc

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"extends": ["stylelint-config-standard", "stylelint-config-recommended-scss"],
3+
"rules": {
4+
"font-family-name-quotes": "always-where-recommended",
5+
"function-url-quotes": ["always", { "except": ["empty"] }],
6+
"selector-attribute-quotes": "always",
7+
"string-quotes": "double",
8+
"max-nesting-depth": 3,
9+
"selector-max-compound-selectors": 3,
10+
"selector-max-specificity": "0,3,2",
11+
"declaration-no-important": true,
12+
"at-rule-no-vendor-prefix": true,
13+
"media-feature-name-no-vendor-prefix": true,
14+
"property-no-vendor-prefix": true,
15+
"selector-no-vendor-prefix": true,
16+
"value-no-vendor-prefix": true,
17+
"no-empty-source": null,
18+
"selector-class-pattern": "[a-z-]+",
19+
"selector-id-pattern": "[a-z-]+",
20+
"selector-max-id": 0,
21+
"selector-no-qualifying-type": true,
22+
"selector-max-universal": 0,
23+
"unit-whitelist": ["px", "%", "em", "rem", "vw", "vh", "deg"],
24+
"max-empty-lines": 2,
25+
"max-line-length": 120
26+
}
27+
}

.yo-rc.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"generator-ngx-rocket": {
3+
"version": "2.3.0",
4+
"props": {
5+
"appName": "angular 4 ngx rocket",
6+
"target": [
7+
"web"
8+
],
9+
"pwa": false,
10+
"ui": "bootstrap",
11+
"auth": true,
12+
"projectName": "angular-4-ngx-rocket",
13+
"mobile": [],
14+
"webview": []
15+
}
16+
}
17+
}

README.md

+130-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,130 @@
1-
# angular-4-ngx-rocket
2-
ngx rocket
1+
# angular 4 ngx rocket
2+
3+
This project was generated with [ngX-Rocket](https://github.com/ngx-rocket/generator-ngx-rocket/)
4+
version 2.3.0
5+
6+
# Getting started
7+
8+
1. Go to project folder and install dependencies:
9+
```bash
10+
npm install
11+
```
12+
13+
2. Launch development server, and open `localhost:4200` in your browser:
14+
```bash
15+
npm start
16+
```
17+
18+
# Project structure
19+
20+
```
21+
dist/ web app production build
22+
docs/ project docs and coding guides
23+
e2e/ end-to-end tests
24+
src/ project source code
25+
|- app/ app components
26+
| |- core/ core module (singleton services and single-use components)
27+
| |- shared/ shared module (common components, directives and pipes)
28+
| |- app.component.* app root component (shell)
29+
| |- app.module.ts app root module definition
30+
| |- app-routing.module.ts app routes
31+
| +- ... additional modules and components
32+
|- assets/ app assets (images, fonts, sounds...)
33+
|- environments/ values for various build environments
34+
|- theme/ app global scss variables and theme
35+
|- translations/ translations files
36+
|- index.html html entry point
37+
|- main.scss global style entry point
38+
|- main.ts app entry point
39+
|- polyfills.ts polyfills needed by Angular
40+
+- test.ts unit tests entry point
41+
reports/ test and coverage reports
42+
proxy.conf.js backend proxy configuration
43+
```
44+
45+
# Main tasks
46+
47+
Task automation is based on [NPM scripts](https://docs.npmjs.com/misc/scripts).
48+
49+
Task | Description
50+
--------------------------------|--------------------------------------------------------------------------------------
51+
`npm start` | Run development server on `http://localhost:4200/`
52+
`npm run build [-- --env=prod]` | Lint code and build web app for production (with [AOT](https://angular.io/guide/aot-compiler)) in `dist/` folder
53+
`npm test` | Run unit tests via [Karma](https://karma-runner.github.io) in watch mode
54+
`npm run test:ci` | Lint code and run unit tests once for continuous integration
55+
`npm run e2e` | Run e2e tests using [Protractor](http://www.protractortest.org)
56+
`npm run lint` | Lint code
57+
`npm run translations:extract` | Extract strings from code and templates to `src/app/translations/template.json`
58+
`npm run docs` | Display project documentation
59+
60+
When building the application, you can specify the target environment using the additional flag `--env <name>` (do not
61+
forget to prepend `--` to pass arguments to npm scripts).
62+
63+
The default build environment is `prod`.
64+
65+
## Development server
66+
67+
Run `npm start` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change
68+
any of the source files.
69+
You should not use `ng serve` directly, as it does not use the backend proxy configuration by default.
70+
71+
## Code scaffolding
72+
73+
Run `npm run generate -- component <name>` to generate a new component. You can also use
74+
`npm run generate -- directive|pipe|service|class|module`.
75+
76+
If you have installed [angular-cli](https://github.com/angular/angular-cli) globally with `npm install -g @angular/cli`,
77+
you can also use the command `ng generate` directly.
78+
79+
## Additional tools
80+
81+
Tasks are mostly based on the `angular-cli` tool. Use `ng help` to get more help or go check out the
82+
[Angular-CLI README](https://github.com/angular/angular-cli).
83+
84+
# What's in the box
85+
86+
The app template is based on [HTML5](http://whatwg.org/html), [TypeScript](http://www.typescriptlang.org) and
87+
[Sass](http://sass-lang.com). The translation files use the common [JSON](http://www.json.org) format.
88+
89+
#### Tools
90+
91+
Development, build and quality processes are based on [angular-cli](https://github.com/angular/angular-cli) and
92+
[NPM scripts](https://docs.npmjs.com/misc/scripts), which includes:
93+
94+
- Optimized build and bundling process with [Webpack](https://webpack.github.io)
95+
- [Development server](https://webpack.github.io/docs/webpack-dev-server.html) with backend proxy and live reload
96+
- Cross-browser CSS with [autoprefixer](https://github.com/postcss/autoprefixer) and
97+
[browserslist](https://github.com/ai/browserslist)
98+
- Asset revisioning for [better cache management](https://webpack.github.io/docs/long-term-caching.html)
99+
- Unit tests using [Jasmine](http://jasmine.github.io) and [Karma](https://karma-runner.github.io)
100+
- End-to-end tests using [Protractor](https://github.com/angular/protractor)
101+
- Static code analysis: [TSLint](https://github.com/palantir/tslint), [Codelyzer](https://github.com/mgechev/codelyzer),
102+
[Stylelint](http://stylelint.io) and [HTMLHint](http://htmlhint.com/)
103+
- Local knowledgebase server using [Hads](https://github.com/sinedied/hads)
104+
105+
#### Libraries
106+
107+
- [Angular](https://angular.io)
108+
- [Bootstrap 4](https://v4-alpha.getbootstrap.com)
109+
- [ng-bootsrap](https://ng-bootstrap.github.io/)
110+
- [Font Awesome](http://fontawesome.io)
111+
- [RxJS](http://reactivex.io/rxjs)
112+
- [ngx-translate](https://github.com/ngx-translate/core)
113+
- [Lodash](https://lodash.com)
114+
115+
#### Coding guides
116+
117+
- [Angular](docs/coding-guides/angular.md)
118+
- [TypeScript](docs/coding-guides/typescript.md)
119+
- [Sass](docs/coding-guides/sass.md)
120+
- [HTML](docs/coding-guides/html.md)
121+
- [Unit tests](docs/coding-guides/unit-tests.md)
122+
- [End-to-end tests](docs/coding-guides/e2e-tests.md)
123+
124+
#### Other documentation
125+
126+
- [I18n guide](docs/i18n.md)
127+
- [Working behind a corporate proxy](docs/corporate-proxy.md)
128+
- [Updating dependencies and tools](docs/updating.md)
129+
- [Using a backend proxy for development](docs/backend-proxy.md)
130+
- [Browser routing](docs/routing.md)

0 commit comments

Comments
 (0)