Skip to content

Commit 0f24867

Browse files
author
Ben Talbot
committed
Initial version of create-material-angular-workspace
1 parent a6c4a23 commit 0f24867

38 files changed

+29523
-0
lines changed

Diff for: .editorconfig

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Editor configuration, see http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = tab
7+
indent_size = 4
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.json]
12+
indent_style = space
13+
indent_size = 2
14+
15+
[*.md]
16+
max_line_length = off
17+
trim_trailing_whitespace = false

Diff for: .eslintrc.json

+111
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": ["**/*"],
4+
"plugins": ["@nrwl/nx", "simple-import-sort", "import", "prefer-arrow"],
5+
"overrides": [
6+
{
7+
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
8+
"rules": {
9+
"@nrwl/nx/enforce-module-boundaries": [
10+
"error",
11+
{
12+
"enforceBuildableLibDependency": true,
13+
"allow": [],
14+
"depConstraints": [
15+
{ "sourceTag": "*", "onlyDependOnLibsWithTags": ["*"] }
16+
]
17+
}
18+
]
19+
}
20+
},
21+
{
22+
"files": ["*.ts", "*.tsx"],
23+
"extends": [
24+
"plugin:@nrwl/nx/typescript",
25+
"plugin:@typescript-eslint/recommended-requiring-type-checking"
26+
],
27+
"parserOptions": {
28+
"ecmaVersion": 6
29+
},
30+
"env": { "es6": true },
31+
"rules": {
32+
"indent": ["error", "tab", { "SwitchCase": 1 }],
33+
"array-bracket-spacing": ["error", "always"],
34+
"object-curly-spacing": ["error", "always"],
35+
"space-in-parens": ["error", "always"],
36+
"keyword-spacing": ["error", { "before": true, "after": true }],
37+
"block-spacing": ["error", "always"],
38+
"key-spacing": [2, { "beforeColon": false, "afterColon": true }],
39+
"comma-spacing": ["error", { "before": false, "after": true }],
40+
"arrow-spacing": ["error", { "before": true, "after": true }],
41+
"template-curly-spacing": ["error", "always"],
42+
"semi-spacing": ["error", { "before": false, "after": true }],
43+
"brace-style": ["error", "stroustrup"],
44+
"space-unary-ops": "error",
45+
"arrow-body-style": ["error", "as-needed"],
46+
"space-infix-ops": ["error", { "int32Hint": false }],
47+
"space-before-blocks": ["error"],
48+
"prefer-template": "error",
49+
"quotes": ["error", "single", { "avoidEscape": true }],
50+
"curly": "error",
51+
"func-call-spacing": ["error", "never"],
52+
"no-mixed-spaces-and-tabs": "error",
53+
"no-multiple-empty-lines": [
54+
"error",
55+
{ "max": 2, "maxEOF": 0, "maxBOF": 1 }
56+
],
57+
"lines-between-class-members": [
58+
"error",
59+
"always",
60+
{ "exceptAfterSingleLine": true }
61+
],
62+
"padding-line-between-statements": [
63+
"error",
64+
{ "blankLine": "always", "prev": "*", "next": "function" },
65+
{ "blankLine": "always", "prev": "*", "next": "export" }
66+
],
67+
"@typescript-eslint/type-annotation-spacing": [
68+
"error",
69+
{
70+
"before": false,
71+
"after": true,
72+
"overrides": { "arrow": { "before": true, "after": true } }
73+
}
74+
],
75+
"eqeqeq": ["error", "smart"],
76+
"object-shorthand": "error",
77+
"simple-import-sort/imports": "error",
78+
"simple-import-sort/exports": "error",
79+
"import/first": "error",
80+
"import/newline-after-import": "error",
81+
"import/no-duplicates": "error",
82+
"prefer-arrow/prefer-arrow-functions": [
83+
"error",
84+
{
85+
"disallowPrototype": true,
86+
"singleReturnOnly": false,
87+
"classPropertiesAllowed": false,
88+
"allowStandaloneDeclarations": true
89+
}
90+
]
91+
}
92+
},
93+
{
94+
"files": ["*.spec.ts", "*.spec.tsx"],
95+
"parserOptions": {
96+
"project": "./tsconfig.*?.json"
97+
},
98+
"rules": {
99+
"@typescript-eslint/no-unsafe-assignment": "off",
100+
"@typescript-eslint/no-unsafe-call": "off",
101+
"@typescript-eslint/no-unsafe-member-access": "off",
102+
"@typescript-eslint/no-unsafe-return": "off"
103+
}
104+
},
105+
{
106+
"files": ["*.js", "*.jsx"],
107+
"extends": ["plugin:@nrwl/nx/javascript"],
108+
"rules": {}
109+
}
110+
]
111+
}

Diff for: .gitignore

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

Diff for: .prettierignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Add files here to ignore them from prettier formatting
2+
3+
/dist
4+
/coverage

Diff for: .prettierrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"singleQuote": true
3+
}

Diff for: .vscode/extensions.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["esbenp.prettier-vscode", "firsttris.vscode-jest-runner"]
3+
}

Diff for: .vscode/settings.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"eslint.format.enable": true,
3+
"eslint.alwaysShowStatus": true,
4+
"editor.formatOnSave": true,
5+
"editor.codeActionsOnSave": {
6+
"source.fixAll.eslint": true
7+
},
8+
"[html]": {
9+
"editor.defaultFormatter": "esbenp.prettier-vscode"
10+
},
11+
"[typescript]": {
12+
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
13+
}
14+
}

Diff for: jest.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
projects: ['<rootDir>/packages/cli'],
3+
};

Diff for: jest.preset.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const nxPreset = require('@nrwl/jest/preset');
2+
3+
module.exports = { ...nxPreset };

Diff for: nx.json

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"npmScope": "create-material-angular-workspace",
3+
"affected": { "defaultBase": "master" },
4+
"implicitDependencies": {
5+
"workspace.json": "*",
6+
"package.json": { "dependencies": "*", "devDependencies": "*" },
7+
"tsconfig.base.json": "*",
8+
"tslint.json": "*",
9+
".eslintrc.json": "*",
10+
"nx.json": "*"
11+
},
12+
"tasksRunnerOptions": {
13+
"default": {
14+
"runner": "@nrwl/workspace/tasks-runners/default",
15+
"options": { "cacheableOperations": ["build", "lint", "test", "e2e"] }
16+
}
17+
},
18+
"projects": {
19+
"cli": { "tags": ["scope:public", "type:util", "target:all"] }
20+
},
21+
"workspaceLayout": { "appsDir": "packages", "libsDir": "packages" }
22+
}

0 commit comments

Comments
 (0)