feat: initial version

This commit is contained in:
Derrick Hammer 2023-06-27 01:59:03 -04:00
parent a3fd9cca5b
commit 64ba20821f
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
3 changed files with 53 additions and 0 deletions

13
.github/workflows/ci.yml vendored Normal file
View File

@ -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

23
package.json Normal file
View File

@ -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"
}
}

17
src/index.ts Normal file
View File

@ -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<PresetAsset> {
const ignores = !context.custom.config?.official
? [".github/workflows/ci.yml"]
: [];
return {
extends: ["presetter-preset-rollup", "@lumeweb/node-library-preset"],
supplementaryIgnores: ignores,
};
}