From 2b11ee80eb6718c45586d907ae15e07bc4f59b8f Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Sun, 25 Jun 2023 02:18:23 +0000 Subject: [PATCH] chore(release): 0.1.0 [skip ci] # [0.1.0](https://git.lumeweb.com/LumeWeb/node-library-preset/compare/v0.0.1...v0.1.0) (2023-06-25) ### Features * initial version ([1f8d48d](https://git.lumeweb.com/LumeWeb/node-library-preset/commit/1f8d48d5ea5f03d3aa04e7870163cd29734cd2b2)) --- CHANGELOG.md | 6 ++++++ lib/index.d.ts | 5 +++++ lib/index.js | 22 ++++++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 CHANGELOG.md create mode 100644 lib/index.d.ts create mode 100644 lib/index.js diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..4352915 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,6 @@ +# [0.1.0](https://git.lumeweb.com/LumeWeb/node-library-preset/compare/v0.0.1...v0.1.0) (2023-06-25) + + +### Features + +* initial version ([1f8d48d](https://git.lumeweb.com/LumeWeb/node-library-preset/commit/1f8d48d5ea5f03d3aa04e7870163cd29734cd2b2)) diff --git a/lib/index.d.ts b/lib/index.d.ts new file mode 100644 index 0000000..92575e6 --- /dev/null +++ b/lib/index.d.ts @@ -0,0 +1,5 @@ +import type { PresetAsset } from "presetter-types"; +export declare const DEFAULT_VARIABLE: { + source: string; +}; +export default function (): Promise; diff --git a/lib/index.js b/lib/index.js new file mode 100644 index 0000000..526f537 --- /dev/null +++ b/lib/index.js @@ -0,0 +1,22 @@ +import { dirname, resolve } from "node:path"; +import { fileURLToPath } from "node:url"; +const DIR = dirname(fileURLToPath(import.meta.url)); +const TEMPLATES = resolve(DIR, "..", "templates"); +export const DEFAULT_VARIABLE = { + source: "src", +}; +export default async function () { + return { + extends: ["presetter-preset-strict"], + template: { + ".circleci/config.yml": resolve(TEMPLATES, "circleci.yml"), + }, + variable: DEFAULT_VARIABLE, + supplementaryConfig: { + prettier: { + singleQuote: false, + }, + }, + }; +} +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxXQUFXLENBQUM7QUFDN0MsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLFVBQVUsQ0FBQztBQUl6QyxNQUFNLEdBQUcsR0FBRyxPQUFPLENBQUMsYUFBYSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQztBQUdwRCxNQUFNLFNBQVMsR0FBRyxPQUFPLENBQUMsR0FBRyxFQUFFLElBQUksRUFBRSxXQUFXLENBQUMsQ0FBQztBQUNsRCxNQUFNLENBQUMsTUFBTSxnQkFBZ0IsR0FBRztJQUM5QixNQUFNLEVBQUUsS0FBSztDQUNkLENBQUM7QUFNRixNQUFNLENBQUMsT0FBTyxDQUFDLEtBQUs7SUFDbEIsT0FBTztRQUNMLE9BQU8sRUFBRSxDQUFDLHlCQUF5QixDQUFDO1FBQ3BDLFFBQVEsRUFBRTtZQUNSLHNCQUFzQixFQUFFLE9BQU8sQ0FBQyxTQUFTLEVBQUUsY0FBYyxDQUFDO1NBQzNEO1FBQ0QsUUFBUSxFQUFFLGdCQUFnQjtRQUMxQixtQkFBbUIsRUFBRTtZQUNuQixRQUFRLEVBQUU7Z0JBQ1IsV0FBVyxFQUFFLEtBQUs7YUFDbkI7U0FDRjtLQUNGLENBQUM7QUFDSixDQUFDIn0= \ No newline at end of file