generated from BuildForSDG/js-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: scaffold angular and set up prelimanary folder structure
- Loading branch information
1 parent
e4848df
commit 119b0fa
Showing
50 changed files
with
14,733 additions
and
7,692 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,16 @@ | ||
# http://editorconfig.org | ||
|
||
# A special property that should be specified at the top of the file outside of | ||
# any sections. Set to true to stop .editor config file search on current file | ||
# Editor configuration, see https://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
# Indentation style | ||
# Possible values - tab, space | ||
charset = utf-8 | ||
indent_style = space | ||
|
||
# Indentation size in single-spaced characters | ||
# Possible values - an integer, tab | ||
indent_size = 2 | ||
|
||
# Line ending file format | ||
# Possible values - lf, crlf, cr | ||
end_of_line = lf | ||
|
||
# File character encoding | ||
# Possible values - latin1, utf-8, utf-16be, utf-16le | ||
charset = utf-8 | ||
|
||
# Denotes whether to trim whitespace at the end of lines | ||
# Possible values - true, false | ||
trim_trailing_whitespace = true | ||
|
||
# Denotes whether file should end with a newline | ||
# Possible values - true, false | ||
insert_final_newline = true | ||
|
||
[*.hbs] | ||
insert_final_newline = false | ||
trim_trailing_whitespace = true | ||
|
||
[*.ts] | ||
indent_size = 2 | ||
|
||
[{package}.json] | ||
indent_size = 2 | ||
quote_type = single | ||
|
||
[*.md] | ||
max_line_length = 0 | ||
max_line_length = off | ||
trim_trailing_whitespace = false | ||
|
||
[*.yml] | ||
indent_size = 2 | ||
|
||
[Makefile] | ||
indent_style = tab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,104 +1,46 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
|
||
# Diagnostic reports (https://nodejs.org/api/report.html) | ||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
*.lcov | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# TypeScript v1 declaration files | ||
typings/ | ||
|
||
# TypeScript cache | ||
*.tsbuildinfo | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Microbundle cache | ||
.rpt2_cache/ | ||
.rts2_cache_cjs/ | ||
.rts2_cache_es/ | ||
.rts2_cache_umd/ | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
.env.test | ||
|
||
# parcel-bundler cache (https://parceljs.org/) | ||
.cache | ||
|
||
# Next.js build output | ||
.next | ||
|
||
# Nuxt.js build / generate output | ||
.nuxt | ||
dist | ||
|
||
# Gatsby files | ||
.cache/ | ||
# Comment in the public line in if your project uses Gatsby and *not* Next.js | ||
# https://nextjs.org/blog/next-9-1#public-directory-support | ||
# public | ||
|
||
# vuepress build output | ||
.vuepress/dist | ||
|
||
# Serverless directories | ||
.serverless/ | ||
|
||
# FuseBox cache | ||
.fusebox/ | ||
|
||
# DynamoDB Local files | ||
.dynamodb/ | ||
|
||
# TernJS port file | ||
.tern-port | ||
# See http://help.github.com/ignore-files/ for more about ignoring files. | ||
|
||
# compiled output | ||
/dist | ||
/tmp | ||
/out-tsc | ||
# Only exists if Bazel was run | ||
/bazel-out | ||
|
||
# dependencies | ||
/node_modules | ||
|
||
# profiling files | ||
chrome-profiler-events*.json | ||
speed-measure-plugin*.json | ||
|
||
# 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 | ||
.history/* | ||
|
||
# misc | ||
/.sass-cache | ||
/connect.lock | ||
/coverage | ||
/libpeerconnection.log | ||
npm-debug.log | ||
yarn-error.log | ||
testem.log | ||
/typings | ||
|
||
# System Files | ||
.DS_Store | ||
Thumbs.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,27 @@ | ||
barebones setup for JavaScript / Node projects replace this with a one-liner phrase describing this project or app | ||
# AsylumFe | ||
|
||
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/bce1ae4d62124746a8574ba7d4442635)](https://app.codacy.com/gh/BuildForSDG/asylum-fe?utm_source=github.com&utm_medium=referral&utm_content=BuildForSDG/asylum-fe&utm_campaign=Badge_Grade_Settings) | ||
[![Codacy Badge](https://img.shields.io/badge/Code%20Quality-D-red)](https://img.shields.io/badge/Code%20Quality-D-red) | ||
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.3. | ||
|
||
## Development server | ||
|
||
## About | ||
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. | ||
|
||
What is this project about. Ok to enrich here or the section above it with an image. | ||
## Code scaffolding | ||
|
||
Once this repo has been setup on Codacy by the TTL, replace the above badge with the actual one from the Codacy dashboard, and add the code coverage badge as well. This is mandatory | ||
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`. | ||
|
||
This is a simple JavaScript starter repo template for setting up your project. The setup contains | ||
## Build | ||
|
||
- Jest: For runnung tests. We strongly recommend that JavaScript projects use Jest | ||
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. | ||
|
||
- Eslint & Prettier: For formatting code to match ESlint AirBnB coding standard. You might need to install the ESlint and Prettier plugins for your code editor to make the most of these utilities | ||
## Running unit tests | ||
|
||
## Why | ||
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). | ||
|
||
Talk about what problem this solves, what SDG(s) and SGD targets it addresses and why these are imoirtant | ||
## Running end-to-end tests | ||
|
||
## Usage | ||
How would someone use what you have built, include URLs to the deployed app, service e.t.c when you have it setup | ||
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/). | ||
|
||
## Further help | ||
|
||
## Setup | ||
|
||
Install `npm` or `yarn` if you dont have any of them already installed. We recommend Yarn though. | ||
|
||
After clonning the repo to your local machine and moving into the cloned folder, Run `yarn install` to get started by installing dependencies. | ||
|
||
`src/index.js` is the entry to the project and source code should go into the `src` folder. | ||
|
||
All tests should be written in the `__tests__' folder. There's a sample in there. | ||
|
||
This starter uses [Parcel](https://parceljs.org/getting_started.html) as the bundler. It is much simpler that WebPack and the others | ||
|
||
#### Hints | ||
|
||
- Run `npm install` or `yarn install` to get started. We'll assume you are using Yarn. | ||
- Install additional dependencies: `yarn add <dependency-name> [-D]` | ||
- Run tests: `yarn test` | ||
- Run tests with test coverage info: `yarn test:cover` | ||
- Check the codebase for proper syntax and formatting compliance: `yarn lint` | ||
- Run your app in local dev mode: `yarn start`. This puts the bundled app in a `dist` folder, set up a local web server at localhost:1234, and continues to watch for your code changes which it syncs with the local server. This means if you loaded the app in a browser, it will auto-refresh as you code along. Feel free to use whatever bundler best meets your needs. Parcel was only added as a sample and for those looking for a simple but effective solution to the hassle of bundlers. | ||
|
||
## Authors | ||
|
||
List the team behind this project. Their names linked to their Github, LinkedIn, or Twitter accounts should siffice. Ok to signify the role they play in the project, including the TTL and mentor | ||
|
||
## Contributing | ||
If this project sounds interesting to you and you'd like to contribute, thank you! | ||
First, you can send a mail to [email protected] to indicate your interest, why you'd like to support and what forms of support you can bring to the table, but here are areas we think we'd need the most help in this project : | ||
1. area one (e.g this app is about human trafficking and you need feedback on your roadmap and feature list from the private sector / NGOs) | ||
2. area two (e.g you want people to opt-in and try using your staging app at staging.project-name.com and report any bugs via a form) | ||
3. area three (e.g here is the zoom link to our end-of sprint webinar, join and provide feedback as a stakeholder if you can) | ||
|
||
## Acknowledgements | ||
|
||
Did you use someone else’s code? | ||
Do you want to thank someone explicitly? | ||
Did someone’s blog post spark off a wonderful idea or give you a solution to nagging problem? | ||
|
||
It's powerful to always give credit. | ||
|
||
## LICENSE | ||
MIT | ||
|
||
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). |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.