-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #237 from eik-lib/refactor
Common package refactor
- Loading branch information
Showing
87 changed files
with
642 additions
and
401 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,34 @@ | ||
{ | ||
"extends": ["airbnb-base", "prettier"], | ||
"plugins": ["prettier"], | ||
"rules": { | ||
"strict": [0, "global"], | ||
"class-methods-use-this": [0], | ||
"no-underscore-dangle": [0], | ||
"no-restricted-syntax": [0] | ||
} | ||
"parser": "@babel/eslint-parser", | ||
"extends": [ | ||
"airbnb-base", | ||
"prettier" | ||
], | ||
"plugins": [ | ||
"prettier" | ||
], | ||
"parserOptions": { | ||
"ecmaVersion": 11, | ||
"sourceType": "module", | ||
"requireConfigFile": false | ||
}, | ||
"rules": { | ||
"import/prefer-default-export": "off", | ||
"import/extensions": [ | ||
"error", | ||
{ | ||
"js": "ignorePackages", | ||
"json": "ignorePackages" | ||
} | ||
], | ||
"class-methods-use-this": [ | ||
0 | ||
], | ||
"no-underscore-dangle": [ | ||
0 | ||
], | ||
"no-restricted-syntax": [ | ||
0 | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,5 @@ tmp/**/* | |
*.log | ||
coverage | ||
.vscode | ||
eik.json | ||
types | ||
.eik.json | ||
types |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
node_modules | ||
.nyc_output | ||
node_modules/**/* | ||
.nyc_output/**/* | ||
package-lock.json | ||
node_modules/**/* | ||
.DS_Store | ||
|
2 changes: 0 additions & 2 deletions
2
test/fixtures/client-with-bare-imports.js → fixtures/client-with-bare-imports.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
'use strict'; | ||
|
||
const main = () => { | ||
const thing = 'this is a test fixture'; | ||
return thing; | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
'use strict'; | ||
|
||
const main = () => { | ||
const thing = 'this is a test fixture'; | ||
return thing; | ||
|
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,9 @@ | ||
{ | ||
"name": "@eik/common", | ||
"version": "4.0.0-next.5", | ||
"description": "Common utilities for Eik modules", | ||
"main": "lib/index.js", | ||
"types": "types/index.d.ts", | ||
"files": [ | ||
"CHANGELOG.md", | ||
"package.json", | ||
"lib", | ||
"types", | ||
"eikjson.d.ts" | ||
], | ||
"scripts": { | ||
"test": "tap --no-check-coverage", | ||
"lint:fix": "eslint --fix .", | ||
"lint": "eslint .", | ||
"schema:types": "json2ts lib/schemas/eikjson.schema.json > eikjson.d.ts", | ||
"schema:outdated": "npm run schema:types && git diff --exit-code HEAD:eikjson.d.ts eikjson.d.ts", | ||
"style:check": "prettier -c .", | ||
"style:format": "prettier -w .", | ||
"typecheck": "tsc", | ||
"prepublish": "npm run typecheck" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/eik-lib/common.git" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/eik-lib/common/issues" | ||
}, | ||
"homepage": "https://github.com/eik-lib/common#readme", | ||
"dependencies": { | ||
"ajv": "^8.6.2", | ||
"ajv-formats": "^2.1.0", | ||
"glob": "^8.0.0", | ||
"is-glob": "^4.0.1", | ||
"mime-types": "^2.1.29", | ||
"node-fetch": "^2.6.1", | ||
"semver": "^7.0.0", | ||
"validate-npm-package-name": "^4.0.0" | ||
}, | ||
"devDependencies": { | ||
"@hapi/hapi": "20.2.2", | ||
"@semantic-release/changelog": "6.0.1", | ||
"@semantic-release/git": "10.0.1", | ||
"eslint": "7.32.0", | ||
"eslint-config-airbnb-base": "14.2.1", | ||
"eslint-config-prettier": "8.5.0", | ||
"eslint-plugin-import": "2.26.0", | ||
"eslint-plugin-prettier": "4.2.1", | ||
"express": "4.18.1", | ||
"fastify": "3.29.0", | ||
"json-schema-to-typescript": "10.1.5", | ||
"prettier": "2.7.1", | ||
"semantic-release": "18.0.1", | ||
"stoppable": "1.1.0", | ||
"tap": "15.2.3", | ||
"typescript": "4.7.4" | ||
} | ||
"workspaces": [ | ||
"packages/config-loader", | ||
"packages/utils", | ||
"packages/schemas", | ||
"packages/validators" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
node_modules/**/* | ||
.nyc_output/**/* | ||
package-lock.json | ||
node_modules/**/* | ||
.DS_Store | ||
tmp/**/* | ||
.idea | ||
.idea/**/* | ||
*.iml | ||
*.log | ||
coverage | ||
.vscode | ||
eikjson.d.ts | ||
CHANGELOG.md | ||
dist | ||
types | ||
renovate.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const ReadFile = require('./src/classes/read-file.js'); | ||
const EikConfig = require('./src/eik-config.js'); | ||
const getDefaults = require('./src/get-defaults.js'); | ||
const configStore = require('./src/config-store.js'); | ||
const localAssets = require('./src/local-assets'); | ||
|
||
module.exports = { | ||
ReadFile, | ||
EikConfig, | ||
getDefaults, | ||
configStore, | ||
localAssets, | ||
}; |
Oops, something went wrong.