Skip to content

Commit

Permalink
complete deno refactor including test and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlescure committed Apr 24, 2020
1 parent 4734d5f commit 0a2a7eb
Show file tree
Hide file tree
Showing 14 changed files with 367 additions and 221 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

3 changes: 0 additions & 3 deletions .eslintrc.js

This file was deleted.

4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "short_uuid"]
path = short_uuid
url = https://github.com/jeanlescure/short_uuid
branch = master
20 changes: 0 additions & 20 deletions .neutrinorc.js

This file was deleted.

3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"deno.enable": true
}
5 changes: 0 additions & 5 deletions jest.config.js

This file was deleted.

14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,22 @@
"tiny"
],
"main": "dist/short-unique-id.min.js",
"license": "MIT",
"module": "src/index.js",
"license": "Apache",
"module": "lib/short-unique-id.js",
"homepage": "https://jeanlescure.github.io/short-unique-id/",
"repository": {
"type": "git",
"url": "https://github.com/jeanlescure/short-unique-id"
},
"runkitExampleFilename": "./test/runkit.js",
"scripts": {
"test": "jest && yarn link && yarn link short-unique-id && node ./test/runkit.js",
"lint": "eslint --format codeframe --ext mjs,js src test",
"gen:version": "echo \"{\\\"version\\\": `jq .version package.json`}\" > src/version.json",
"test": "yarn gen:version && cd src && deno test && cd .. && yarn link && yarn link short-unique-id && node ./runkit.js",
"lint": "tslint ./src/*.ts"
},
"devDependencies": {
"eslint": "^6",
"jest": "^25"
"tslint": "^6.1.1",
"tslint-config-airbnb-base": "^0.3.0",
"typescript": "^3.8.3"
}
}
File renamed without changes.
1 change: 1 addition & 0 deletions short_uuid
Submodule short_uuid added at 9d2c55
139 changes: 0 additions & 139 deletions src/index.js

This file was deleted.

41 changes: 0 additions & 41 deletions test/short-unique-id_test.js

This file was deleted.

10 changes: 10 additions & 0 deletions tslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"defaultSeverity": "error",
"extends": [
"tslint:recommended",
"tslint-config-airbnb-base"
],
"jsRules": {},
"rules": {},
"rulesDirectory": []
}
6 changes: 0 additions & 6 deletions webpack.config.js

This file was deleted.

Loading

0 comments on commit 0a2a7eb

Please sign in to comment.