Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

to typescript #1

Merged
merged 27 commits into from
Sep 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
b62f779
to Typescript v1
Himenon Sep 17, 2018
50d1a49
to Typescript v2
Himenon Sep 17, 2018
30b7d2f
format
Himenon Sep 18, 2018
e2c9b7e
to typescript v3
Himenon Sep 18, 2018
1c7b22d
to typescript v4
Himenon Sep 18, 2018
11cb6d3
format(prettier): formating
Himenon Sep 19, 2018
97bf5fa
format(lint): tslint
Himenon Sep 19, 2018
ea3e213
update(package): update package version to latest
Himenon Sep 20, 2018
edbf427
add type and ignore no implicit any
Himenon Sep 20, 2018
66589df
update(typing): add types file
Himenon Sep 21, 2018
eb1018c
update(typing): 型の更新
Himenon Sep 23, 2018
8abaff9
update(typing): add types
Himenon Sep 23, 2018
26570d4
update(typing): add some typing
Himenon Sep 24, 2018
8340071
update(typing): add types
Himenon Sep 24, 2018
d5e76c0
update(typing): add some typing
Himenon Sep 24, 2018
7926e1c
update(typing): add typing to scoped variable
Himenon Sep 24, 2018
d84aae4
update(typing): add webfont type
Himenon Sep 24, 2018
dae716b
update(typings): challenge
Himenon Sep 24, 2018
0928713
update(typing): lib
Himenon Sep 25, 2018
bb76ed5
update(typing): remove any
Himenon Sep 25, 2018
f38aec0
update(typing): complete
Himenon Sep 25, 2018
0757047
update(typing): move interface
Himenon Sep 26, 2018
e6c8cca
update(typing): add alias file
Himenon Sep 27, 2018
4fd5f60
update(typing): add generateStatic.ts
Himenon Sep 27, 2018
06fc9d1
update(rename): rename variables
Himenon Sep 27, 2018
b5579a2
test(jest): convert ava to jest
Himenon Sep 27, 2018
719d97d
update(test): add jest snapshot
Himenon Sep 27, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
139 changes: 139 additions & 0 deletions .dependency-cruiser.json
@@ -0,0 +1,139 @@
{
"forbidden": [
{
"name": "not-to-test",
"comment": "Don't allow dependencies from outside the test folder to test",
"severity": "error",
"from": {
"pathNot": "^(test|spec)"
},
"to": {
"path": "^(test|spec)"
}
},
{
"name": "not-to-spec",
"comment": "Don't allow dependencies to (typescript/ javascript/ coffeescript) spec files",
"severity": "error",
"from": {},
"to": {
"path": "\\.spec\\.(js|ts|ls|coffee|litcoffee|coffee\\.md)$"
}
},
{
"name": "no-circular",
"severity": "warn",
"comment": "Warn in case there's circular dependencies",
"from": {},
"to": {
"circular": true
}
},
{
"name": "no-orphans",
"severity": "info",
"comment": "Inform in case there's orphans hiding in the code base",
"from": {
"orphan": true,
"pathNot": "\\.d\\.ts$"
},
"to": {}
},
{
"name": "no-deprecated-core",
"comment": "Warn about dependencies on deprecated core modules.",
"severity": "warn",
"from": {},
"to": {
"dependencyTypes": [
"core"
],
"path": "^(punycode|domain|constants|sys|_linklist)$"
}
},
{
"name": "no-deprecated-npm",
"comment": "These npm modules are deprecated - find an alternative.",
"severity": "warn",
"from": {},
"to": {
"dependencyTypes": [
"deprecated"
]
}
},
{
"name": "not-to-unresolvable",
"comment": "Don't allow dependencies on modules dependency-cruiser can't resolve to files on disk (which probably means they don't exist)",
"severity": "error",
"from": {},
"to": {
"couldNotResolve": true
}
},
{
"name": "not-to-dev-dep",
"severity": "error",
"comment": "Don't allow dependencies from src/app/lib to a development only package",
"from": {
"path": "^(src|app|lib)",
"pathNot": "\\.spec\\.(js|ts|ls|coffee|litcoffee|coffee\\.md)$"
},
"to": {
"dependencyTypes": [
"npm-dev"
]
}
},
{
"name": "no-non-package-json",
"severity": "error",
"comment": "Don't allow dependencies to packages not in package.json (except from within node_modules)",
"from": {
"pathNot": "^node_modules"
},
"to": {
"dependencyTypes": [
"unknown",
"undetermined",
"npm-no-pkg",
"npm-unknown"
]
}
},
{
"name": "optional-deps-used",
"severity": "info",
"comment": "nothing serious - but just check you have some serious try/ catches around the import/ requires of these",
"from": {},
"to": {
"dependencyTypes": [
"npm-optional"
]
}
},
{
"name": "peer-deps-used",
"comment": "Warn about the use of a peer dependency (peer dependencies are deprecated with the advent of npm 3 - and probably gone with version 4).",
"severity": "warn",
"from": {},
"to": {
"dependencyTypes": [
"npm-peer"
]
}
},
{
"name": "no-duplicate-dep-types",
"comment": "Warn if a dependency you're actually using occurs in your package.json more than once (technically: has more than one dependency type)",
"severity": "warn",
"from": {},
"to": {
"moreThanOneDependencyType": true
}
}
],
"options": {
"doNotFollow": "node_modules"
}
}
5 changes: 5 additions & 0 deletions .gitignore
Expand Up @@ -2,3 +2,8 @@
.nyc_output
coverage
package-lock.json
node_modules
lib
test.js.snap
.vscode
*.log
11 changes: 11 additions & 0 deletions .prettierrc
@@ -0,0 +1,11 @@
{
"useTabs": false,
"printWidth": 140,
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "all",
"jsxBracketSameLine": false,
"parser": "typescript",
"bracketSpacing": true,
"semi": false
}
98 changes: 0 additions & 98 deletions bin/cli.js

This file was deleted.

Binary file added images/index.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions jest.config.json
@@ -0,0 +1,34 @@
{
"automock": false,
"unmockedModulePathPatterns": [
"<rootDir>/node_modules/*"
],
"roots": [
"<rootDir>/src"
],
"globals": {
"__DEV__": true,
"ts-jest": {
"tsConfig": "tsconfig.json"
}
},
"moduleDirectories": [
"node_modules"
],
"moduleFileExtensions": [
"js",
"jsx",
"node",
"ts",
"tsx"
],
"testMatch": [
"**/__tests__/*.test.+(ts|tsx)"
],
"collectCoverage": true,
"transform": {
"^.+\\.(ts|tsx)$": "ts-jest"
},
"preset": "ts-jest",
"testEnvironment": "node"
}