Skip to content

Commit 7f0aeb6

Browse files
committed
feat: replace web content with pure TypeScript examples
1 parent c77dea3 commit 7f0aeb6

14 files changed

+150
-1801
lines changed

.eslintrc.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ module.exports = {
44
"plugin:@typescript-eslint/recommended",
55
"plugin:prettier/recommended",
66
],
7-
plugins: ["eslint-plugin-html", "simple-import-sort", "import"],
7+
plugins: ["simple-import-sort", "import"],
88
parserOptions: {
99
ecmaVersion: 12,
1010
sourceType: "module",
1111
},
1212
rules: {
13-
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
1413
"simple-import-sort/imports": "error",
1514
"simple-import-sort/exports": "error",
1615
"import/first": "error",

.gitignore

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
yarn-debug.log*
6-
yarn-error.log*
7-
8-
# Dependency directories
91
node_modules/
10-
11-
# Optional npm cache directory
12-
.npm
13-
14-
# Optional eslint cache
15-
.eslintcache
16-
17-
# Output of 'npm pack'
18-
*.tgz
19-
20-
# Yarn Integrity file
21-
.yarn-integrity
22-
23-
# dotenv environment variables file
24-
.env
25-
.env.test
26-
27-
# Build output
28-
dist

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 CodelyTV
3+
Copyright (c) 2022 Codely Enseña y Entretiene SL
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

babel.config.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

jest.config.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
module.exports = {
2-
testMatch: ["**/tests/*.(spec|test).ts"],
2+
testMatch: ["**/tests/*.test.ts"],
33
transform: {
4-
"\\.[jt]sx?$": "ts-jest",
4+
"\\.ts$": "ts-jest",
55
},
6-
moduleNameMapper: {
7-
"\\.(css|less)$": "identity-obj-proxy",
8-
},
9-
testEnvironment: "jsdom",
106
};

package-lock.json

Lines changed: 115 additions & 1356 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "typescript-basic-skeleton",
33
"version": "2.0.0",
4-
"description": "",
4+
"description": "Bootstrap your new TypeScript project with the bare minimum dependencies",
55
"scripts": {
66
"lint": "eslint --ignore-path .gitignore . --ext .ts",
77
"lint:fix": "npm run lint -- --fix",
@@ -11,23 +11,18 @@
1111
"type": "git",
1212
"url": "git+https://github.com/CodelyTV/typescript-basic-skeleton.git"
1313
},
14-
"author": "",
14+
"author": "codelytv",
1515
"license": "MIT",
1616
"bugs": {
1717
"url": "https://github.com/CodelyTV/typescript-basic-skeleton/issues"
1818
},
1919
"homepage": "https://github.com/CodelyTV/typescript-basic-skeleton#readme",
2020
"devDependencies": {
21-
"@babel/core": "^7.14.3",
22-
"@babel/preset-env": "^7.14.4",
23-
"@testing-library/dom": "^7.31.2",
24-
"@testing-library/jest-dom": "^5.13.0",
2521
"@types/jest": "^26.0.23",
2622
"@typescript-eslint/eslint-plugin": "^4.26.1",
2723
"@typescript-eslint/parser": "^4.26.1",
2824
"eslint": "^7.28.0",
2925
"eslint-config-prettier": "^8.3.0",
30-
"eslint-plugin-html": "^6.1.2",
3126
"eslint-plugin-import": "^2.23.4",
3227
"eslint-plugin-jest": "^24.3.6",
3328
"eslint-plugin-prettier": "^3.4.0",
@@ -37,9 +32,5 @@
3732
"prettier": "^2.3.1",
3833
"ts-jest": "^27.0.3",
3934
"typescript": "^4.3.2"
40-
},
41-
"browserslist": [
42-
"defaults",
43-
"not IE 11"
44-
]
35+
}
4536
}

src/Codelyber.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
export class Codelyber {
2+
private GREETING = "Hi";
3+
4+
constructor(private readonly name: string) {}
5+
6+
greet(): string {
7+
return `${this.GREETING} ${this.name} from Codely TypeScript Basic Skeleton!`;
8+
}
9+
}

0 commit comments

Comments
 (0)