From 64ba20821f3b0dab50fc48fd95b3254ece888b36 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 27 Jun 2023 01:59:03 -0400 Subject: [PATCH] feat: initial version --- .github/workflows/ci.yml | 13 +++++++++++++ package.json | 23 +++++++++++++++++++++++ src/index.ts | 17 +++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 .github/workflows/ci.yml create mode 100644 package.json create mode 100644 src/index.ts diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..edc4109 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,13 @@ +name: Build/Publish + +on: + push: + branches: + - master + - develop + - develop-* + +jobs: + main: + uses: lumeweb/github-node-deploy-workflow/.github/workflows/main.yml@master + secrets: inherit diff --git a/package.json b/package.json new file mode 100644 index 0000000..f8eb786 --- /dev/null +++ b/package.json @@ -0,0 +1,23 @@ +{ + "name": "@lumeweb/presetter-kernel-module-preset", + "version": "0.1.0", + "type": "module", + "main": "lib/index.js", + "devDependencies": { + "@lumeweb/node-library-preset": "^0.2.5", + "presetter": "*" + }, + "readme": "ERROR: No README data found!", + "_id": "@lumeweb/presetter-kernel-module-preset@0.1.0", + "scripts": { + "prepare": "presetter bootstrap", + "build": "run build", + "semantic-release": "semantic-release" + }, + "dependencies": { + "presetter-preset-rollup": "^4.0.1" + }, + "publishConfig": { + "access": "public" + } +} diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..77ddf0a --- /dev/null +++ b/src/index.ts @@ -0,0 +1,17 @@ +import type { PresetAsset } from "presetter-types"; +import { PresetContext } from "presetter-types"; + +/** + * get the list of templates provided by this preset + * @returns list of preset templates + */ +export default async function (context: PresetContext): Promise { + const ignores = !context.custom.config?.official + ? [".github/workflows/ci.yml"] + : []; + + return { + extends: ["presetter-preset-rollup", "@lumeweb/node-library-preset"], + supplementaryIgnores: ignores, + }; +}