Skip to content

Commit 3b1d0b3

Browse files
author
Fernando Gonzalez Goncharov
committed
Initial repo and library setup 🚀
1 parent 0c3cc21 commit 3b1d0b3

23 files changed

Lines changed: 15196 additions & 2 deletions

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
11+
[*.md]
12+
max_line_length = off
13+
trim_trailing_whitespace = false

.gitignore

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
/dist
5+
/documentation
6+
/tmp
7+
/out-tsc
8+
9+
# dependencies
10+
/node_modules
11+
12+
# IDEs and editors
13+
/.idea
14+
.project
15+
.classpath
16+
.c9/
17+
*.launch
18+
.settings/
19+
*.sublime-workspace
20+
21+
# IDE - VSCode
22+
.vscode/*
23+
!.vscode/settings.json
24+
!.vscode/tasks.json
25+
!.vscode/launch.json
26+
!.vscode/extensions.json
27+
28+
# misc
29+
/.sass-cache
30+
/connect.lock
31+
/coverage
32+
/libpeerconnection.log
33+
npm-debug.log
34+
yarn-error.log
35+
testem.log
36+
/typings
37+
38+
# System Files
39+
.DS_Store
40+
Thumbs.db

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.lock
2+
*.scss
3+
*.json

.prettierrc.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"arrowParens": "avoid",
3+
"bracketSpacing": true,
4+
"parser": "typescript",
5+
"printWidth": 80,
6+
"semi": true,
7+
"singleQuote": true,
8+
"tabWidth": 2,
9+
"trailingComma": "none",
10+
"useTabs": false
11+
}

.stylelintrc.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"extends": "stylelint-config-standard",
3+
"rules": {
4+
"indentation": 2,
5+
6+
"color-hex-length": "short",
7+
"color-hex-case": "lower",
8+
"color-named": "never",
9+
"color-no-invalid-hex": true,
10+
11+
"number-leading-zero": "always",
12+
"number-no-trailing-zeros": true,
13+
"length-zero-no-unit": true,
14+
15+
"string-no-newline": true,
16+
"string-quotes": "single",
17+
18+
"unit-case": "lower",
19+
"unit-no-unknown": true,
20+
"unit-whitelist": ["px", "%", "deg", "ms", "em", "rem", "vh", "vw", "vmin", "vmax"],
21+
22+
"shorthand-property-no-redundant-values": true,
23+
"property-case": "lower",
24+
"no-duplicate-at-import-rules": true,
25+
26+
"block-closing-brace-newline-after": "always",
27+
"block-closing-brace-newline-before": "always-multi-line",
28+
"block-opening-brace-newline-after": "always-multi-line",
29+
"block-opening-brace-space-before": "always-multi-line",
30+
31+
"selector-attribute-brackets-space-inside": "never",
32+
"selector-attribute-operator-space-after": "never",
33+
"selector-attribute-operator-space-before": "never",
34+
"selector-combinator-space-after": "always",
35+
"selector-combinator-space-before": "always",
36+
"selector-pseudo-class-case": "lower",
37+
"selector-pseudo-class-parentheses-space-inside": "never",
38+
"selector-pseudo-element-case": "lower",
39+
"selector-pseudo-element-colon-notation": "double",
40+
"selector-pseudo-element-no-unknown": true,
41+
"selector-type-case": "lower",
42+
"selector-max-id": 0,
43+
"no-missing-end-of-source-newline": true,
44+
"max-line-length": 100,
45+
46+
"no-empty-source": null
47+
}
48+
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ npm install --save @rocketloop/ng-rocketparts
1717
Once installed you need to import our main module:
1818

1919
```
20-
import { RocketPartsModule } from '@rocketloop/ng-rocketparts';
20+
import { NgRocketPartsModule } from '@rocketloop/ng-rocketparts';
2121
2222
@NgModule({
2323
...
24-
imports: [ RocketPartsModule, ... ],
24+
imports: [ NgRocketPartsModule, ... ],
2525
...
2626
})
2727
export class YourAppModule {

angular.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"ng-rocketparts": {
7+
"root": "projects/ng-rocketparts",
8+
"sourceRoot": "projects/ng-rocketparts/src",
9+
"projectType": "library",
10+
"prefix": "rp",
11+
"schematics": {
12+
"@schematics/angular:component": {
13+
"styleext": "scss"
14+
}
15+
},
16+
"architect": {
17+
"build": {
18+
"builder": "@angular-devkit/build-ng-packagr:build",
19+
"options": {
20+
"tsConfig": "projects/ng-rocketparts/tsconfig.lib.json",
21+
"project": "projects/ng-rocketparts/ng-package.json"
22+
},
23+
"configurations": {
24+
"production": {
25+
"project": "projects/ng-rocketparts/ng-package.prod.json"
26+
}
27+
}
28+
},
29+
"test": {
30+
"builder": "@angular-devkit/build-angular:karma",
31+
"options": {
32+
"main": "projects/ng-rocketparts/src/test.ts",
33+
"tsConfig": "projects/ng-rocketparts/tsconfig.spec.json",
34+
"karmaConfig": "projects/ng-rocketparts/karma.conf.js"
35+
}
36+
},
37+
"lint": {
38+
"builder": "@angular-devkit/build-angular:tslint",
39+
"options": {
40+
"tsConfig": [
41+
"projects/ng-rocketparts/tsconfig.lib.json",
42+
"projects/ng-rocketparts/tsconfig.spec.json"
43+
],
44+
"exclude": [
45+
"**/node_modules/**"
46+
]
47+
}
48+
}
49+
}
50+
}
51+
},
52+
"defaultProject": "ng-rocketparts"
53+
}

0 commit comments

Comments
 (0)