Skip to content

Commit 8b3e95e

Browse files
authored
Merge pull request #1 from Rareloop/initial
Initial commit with port of typeorm library
2 parents 584ec9a + 9ec4e72 commit 8b3e95e

Some content is hidden

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

42 files changed

+17245
-3
lines changed

.eslintignore

Whitespace-only changes.

.eslintrc.json

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"root": true,
3+
"overrides": [
4+
{
5+
"files": ["*.ts"],
6+
"parserOptions": {
7+
"project": ["tsconfig.json"],
8+
"createDefaultProgram": true
9+
},
10+
"extends": [
11+
"plugin:@angular-eslint/ng-cli-compat",
12+
"plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
13+
"plugin:@angular-eslint/template/process-inline-templates"
14+
],
15+
"plugins": ["unused-imports"],
16+
"rules": {
17+
"@typescript-eslint/no-unused-vars": "off",
18+
"unused-imports/no-unused-imports-ts": "error",
19+
"unused-imports/no-unused-vars-ts": [
20+
"warn",
21+
{ "vars": "all", "varsIgnorePattern": "^_", "args": "after-used", "argsIgnorePattern": "^_" }
22+
],
23+
"@angular-eslint/component-class-suffix": [
24+
"error",
25+
{
26+
"suffixes": ["Page", "Component"]
27+
}
28+
],
29+
"@angular-eslint/component-selector": [
30+
"error",
31+
{
32+
"type": "element",
33+
"prefix": "rare",
34+
"style": "kebab-case"
35+
}
36+
],
37+
"@angular-eslint/directive-selector": [
38+
"error",
39+
{
40+
"type": "attribute",
41+
"prefix": "rare",
42+
"style": "camelCase"
43+
}
44+
]
45+
}
46+
},
47+
{
48+
"files": ["*.html"],
49+
"extends": ["plugin:@angular-eslint/template/recommended"],
50+
"rules": {}
51+
},
52+
{
53+
"files": ["*.js"],
54+
"parserOptions": {
55+
"ecmaVersion": 6,
56+
"sourceType": "module"
57+
}
58+
}
59+
]
60+
}

.github/workflows/npm-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ jobs:
2828
node-version: 12
2929
registry-url: https://registry.npmjs.org/
3030
- run: npm ci
31-
- run: npm publish
31+
- run: npm run publish
3232
env:
33-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
33+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
3434

3535
publish-gpr:
3636
needs: build
@@ -42,6 +42,6 @@ jobs:
4242
node-version: 12
4343
registry-url: https://npm.pkg.github.com/
4444
- run: npm ci
45-
- run: npm publish
45+
- run: npm run publish
4646
env:
4747
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

.gitignore

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Specifies intentionally untracked files to ignore when using Git
2+
# http://git-scm.com/docs/gitignore
3+
4+
*~
5+
*.sw[mnpcod]
6+
.tmp
7+
*.tmp
8+
*.tmp.*
9+
*.sublime-project
10+
*.sublime-workspace
11+
.DS_Store
12+
Thumbs.db
13+
UserInterfaceState.xcuserstate
14+
$RECYCLE.BIN/
15+
16+
*.log
17+
log.txt
18+
npm-debug.log*
19+
20+
.idea
21+
/.ionic
22+
/.sass-cache
23+
/.sourcemaps
24+
/.versions
25+
/.vscode
26+
/coverage
27+
/node_modules
28+
/platforms
29+
/plugins
30+
/www
31+
32+
dist/

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v12

.prettierignore

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
*~
2+
*.sw[mnpcod]
3+
.tmp
4+
*.tmp
5+
*.tmp.*
6+
*.sublime-project
7+
*.sublime-workspace
8+
.DS_Store
9+
Thumbs.db
10+
UserInterfaceState.xcuserstate
11+
$RECYCLE.BIN/
12+
13+
*.log
14+
*.md
15+
log.txt
16+
npm-debug.log*
17+
18+
.idea
19+
/.ionic
20+
/.sass-cache
21+
/.sourcemaps
22+
/.versions
23+
/.vscode
24+
/coverage
25+
/dist
26+
/node_modules
27+
/platforms
28+
/plugins
29+
/www
30+
/.gitlab-ci
31+
32+
.git/
33+
coverage/

.prettierrc.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
trailingComma: 'es5',
3+
tabWidth: 4,
4+
semi: true,
5+
singleQuote: true,
6+
printWidth: 120,
7+
};

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Ionic TypeORM

angular.json

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

0 commit comments

Comments
 (0)