Skip to content

Commit

Permalink
v 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyasairam-d committed Jun 17, 2020
1 parent 05c9531 commit 7d4ad8c
Show file tree
Hide file tree
Showing 45 changed files with 25,214 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Editor configuration, see https://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
max_line_length = off
trim_trailing_whitespace = false
47 changes: 47 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# 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
/projects/ngx-encrypt-cookie/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
ngx-secure-cookie-1.0.3.tgz
19 changes: 19 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

# Contribution guide lines for ngx-secure-cookie
* fork the project
* so before doing any changes to code it is always a better practice to check for errors.
* run `npm run build` or `ng build`.
* run `npm run test` or `ng test`.
* and finally run `ng serve`. it is for testing the library on UI.


## Modifying code

* add the comments to that function you are working and mention params so what type of input is passing and mention what type of output or value is returning
* write all possible test cases for your code .
* always run `npm run build` to check whether code is breaking or not.
* add explanation in`README.md`.

## Pushing Code
* now push your code to forked repo.
* now rasie a pull request to make merge changes on the main repo of ngx-secure-cookie
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Projects

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.3.26.

## Development server

Run `npm run serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.open console to check for cookies.


## Build

Run `npm run build` to build the library. The build artifacts will be stored in the `dist/` directory.
## Running unit tests

* Run `npm run test` to execute the unit tests for library via [Karma](https://karma-runner.github.io).
* Run `npm run test-headless` to execute the unit tests for library without opening chrome


## 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).
163 changes: 163 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {

"cookietest": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
}
},
"root": "projects/cookietest",
"sourceRoot": "projects/cookietest/src",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/cookietest",
"index": "projects/cookietest/src/index.html",
"main": "projects/cookietest/src/main.ts",
"polyfills": "projects/cookietest/src/polyfills.ts",
"tsConfig": "projects/cookietest/tsconfig.app.json",
"aot": false,
"assets": [
"projects/cookietest/src/favicon.ico",
"projects/cookietest/src/assets"
],
"styles": [
"projects/cookietest/src/styles.scss"
],
"scripts": []
},
"configurations": {
"production": {
"fileReplacements": [{
"replace": "projects/cookietest/src/environments/environment.ts",
"with": "projects/cookietest/src/environments/environment.prod.ts"
}],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb",
"maximumError": "10kb"
}
]
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "cookietest:build"
},
"configurations": {
"production": {
"browserTarget": "cookietest:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "cookietest:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/cookietest/src/test.ts",
"polyfills": "projects/cookietest/src/polyfills.ts",
"tsConfig": "projects/cookietest/tsconfig.spec.json",
"karmaConfig": "projects/cookietest/karma.conf.js",
"assets": [
"projects/cookietest/src/favicon.ico",
"projects/cookietest/src/assets"
],
"styles": [
"projects/cookietest/src/styles.scss"
],
"scripts": []
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/cookietest/tsconfig.app.json",
"projects/cookietest/tsconfig.spec.json",
"projects/cookietest/e2e/tsconfig.json"
],
"exclude": [
"**/node_modules/**"
]
}
},
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "projects/cookietest/e2e/protractor.conf.js",
"devServerTarget": "cookietest:serve"
},
"configurations": {
"production": {
"devServerTarget": "cookietest:serve:production"
}
}
}
}
},
"ngx-encrypt-cookie": {
"projectType": "library",
"root": "projects/ngx-encrypt-cookie",
"sourceRoot": "projects/ngx-encrypt-cookie/src",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/ngx-encrypt-cookie/tsconfig.lib.json",
"project": "projects/ngx-encrypt-cookie/ng-package.json"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/ngx-encrypt-cookie/src/test.ts",
"tsConfig": "projects/ngx-encrypt-cookie/tsconfig.spec.json",
"karmaConfig": "projects/ngx-encrypt-cookie/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/ngx-encrypt-cookie/tsconfig.lib.json",
"projects/ngx-encrypt-cookie/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
}
},
"defaultProject": "ngx-encrypt-cookie"
}
Loading

0 comments on commit 7d4ad8c

Please sign in to comment.