Skip to content

Commit

Permalink
feat(app): update project to new angular framework
Browse files Browse the repository at this point in the history
  • Loading branch information
edoparearyee authored Apr 24, 2018
1 parent 80ca5fd commit eebfc2b
Show file tree
Hide file tree
Showing 182 changed files with 18,460 additions and 3,995 deletions.
81 changes: 81 additions & 0 deletions .angular-cli.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"project": {
"name": "angular-starter"
},
"apps": [
{
"root": "src",
"outDir": "dist/browser",
"assets": ["assets", "favicon.ico"],
"index": "index.html",
"main": "main.ts",
"polyfills": "polyfills.ts",
"test": "test.ts",
"tsconfig": "tsconfig.app.json",
"testTsconfig": "tsconfig.spec.json",
"prefix": "app",
"styles": ["scss/main.scss"],
"stylePreprocessorOptions": {
"includePaths": ["scss"]
},
"scripts": [],
"environmentSource": "environments/environment.ts",
"environments": {
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
}
},
{
"root": "src",
"outDir": "dist/server",
"assets": ["assets", "favicon.ico"],
"index": "index.html",
"main": "main.server.ts",
"test": "test.ts",
"tsconfig": "tsconfig.server.json",
"testTsconfig": "tsconfig.spec.json",
"prefix": "app",
"styles": ["scss/main.scss"],
"stylePreprocessorOptions": {
"includePaths": ["scss"]
},
"scripts": [],
"environmentSource": "environments/environment.ts",
"environments": {
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
},
"platform": "server",
"name": "ssr"
}
],
"e2e": {
"protractor": {
"config": "./protractor.conf.js"
}
},
"lint": [
{
"project": "src/tsconfig.app.json",
"exclude": "**/node_modules/**"
},
{
"project": "src/tsconfig.spec.json",
"exclude": "**/node_modules/**"
},
{
"project": "e2e/tsconfig.e2e.json",
"exclude": "**/node_modules/**"
}
],
"test": {
"karma": {
"config": "./karma.conf.js"
}
},
"defaults": {
"styleExt": "scss",
"component": {}
}
}
3 changes: 0 additions & 3 deletions .bowerrc

This file was deleted.

23 changes: 23 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#
# CircleCI configuration for angular-starter
#

version: 2
jobs:
build:
working_directory: ~/angular-starter
docker:
- image: circleci/node:8-browsers
steps:
- checkout
- restore_cache:
key: angular-starter-{{ .Branch }}-{{ checksum "package.json" }}
- run: npm i --no-progress
- save_cache:
key: angular-starter-{{ .Branch }}-{{ checksum "package.json" }}
paths:
- "node_modules"
- run: npm run lint
- run: xvfb-run -a npm run test -- --single-run --code-coverage --no-progress --browser=ChromeNoSandbox
- run: xvfb-run -a npm run e2e -- --no-progress
- run: npm run coverage
19 changes: 0 additions & 19 deletions .csslintrc

This file was deleted.

8 changes: 4 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@ lines_after_imports=2
indent_style = space
indent_size = 2

# Front End Languages (HTML, JS, CSS etc)
# Front End Languages (HTML, JS/TS, CSS etc)

[*.{js, css, html}]
[*.{js, ts, css, html}]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true

## JS
[*.js]
## JS/TS
[*.{js, ts}]
quote_type = single

# Misc
Expand Down
60 changes: 45 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,46 @@
logs/*
!.gitkeep
node_modules/
app/components/
app/js/config/
dist/
docs/
css/
coverage/
tmp
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/dist-server
/tmp
/out-tsc

# dependencies
/node_modules

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings

# e2e
/e2e/*.js
/e2e/*.map

# System Files
.DS_Store
.idea
.grunt
*.log
_SpecRunner.html
nohup.out
Thumbs.db

dist-server
13 changes: 0 additions & 13 deletions .htmllintrc

This file was deleted.

89 changes: 0 additions & 89 deletions .jshintrc

This file was deleted.

2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
package.json
package-lock.json
15 changes: 15 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"singleQuote": true,
"useTabs": false,
"tabWidth": 2,
"semi": true,
"bracketSpacing": true,
"overrides": [
{
"files": "src/**/*.scss",
"options": {
"singleQuote": false
}
}
]
}
29 changes: 29 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"extends": ["stylelint-config-standard", "stylelint-config-recommended-scss"],
"rules": {
"order/order": [
"custom-properties",
"declarations"
],
"order/properties-alphabetical-order": true,
"no-empty-source": null,
"selector-type-no-unknown": [
true,
{
"ignore": ["custom-elements", "default-namespace"]
}
],
"selector-pseudo-element-no-unknown": [
true,
{
"ignorePseudoElements": ["ng-deep"]
}
],
"declaration-colon-newline-after": null,
"at-rule-empty-line-before": null,
"block-closing-brace-newline-after": null
},
"plugins": [
"stylelint-order"
]
}
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit eebfc2b

Please sign in to comment.