Skip to content

Commit

Permalink
dx(architecture): prepare package with client
Browse files Browse the repository at this point in the history
  • Loading branch information
patzick committed Oct 8, 2019
1 parent a646ef6 commit 6c1746c
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .eslintrc.js
@@ -0,0 +1,22 @@
module.exports = {
root: true,
env: {
node: true
},
extends: ["plugin:vue/essential", "@vue/prettier", "@vue/typescript"],
rules: {
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off"
},
parserOptions: {
parser: "@typescript-eslint/parser"
},
overrides: [
{
files: ["**/__tests__/*.{j,t}s?(x)"],
env: {
jest: true
}
}
]
};
7 changes: 7 additions & 0 deletions packages/shopware-6-client/api-extractor.json
@@ -0,0 +1,7 @@
{
"extends": "../../api-extractor.json",
"mainEntryPointFilePath": "./dist/packages/<unscopedPackageName>/src/index.d.ts",
"dtsRollup": {
"untrimmedFilePath": "./dist/<unscopedPackageName>.d.ts"
}
}
File renamed without changes.
Expand Up @@ -3,7 +3,8 @@ import { config } from "./settings";
import { CATEGORY_ENDPOINT } from "./endpoints";

const getCategories = async function(): Promise<any> {
return axios.get(config.endpoint + CATEGORY_ENDPOINT);
const resp = await axios.get(config.endpoint + CATEGORY_ENDPOINT);
return resp.data;
};

export { getCategories };
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6c1746c

Please sign in to comment.