build: scaffold project

main
Carsten Kragelund 2023-06-12 20:31:57 +02:00
commit 71161c1872
Signed by: nyx
GPG Key ID: CADDADEEC9F753C0
15 changed files with 5956 additions and 0 deletions

@ -0,0 +1,8 @@
# Changesets
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}

@ -0,0 +1,17 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# EditorConfig is awesome: https://EditorConfig.org
root = true
[*]
charset = utf-8
indent_size = 2
indent_style = space
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
# documentation, utils
[*.{md,mdx,diff}]
trim_trailing_whitespace = false

@ -0,0 +1,14 @@
{
"env": {
"node": true
},
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"parserOptions": { "ecmaVersion": 2018, "sourceType": "module" },
"ignorePatterns": ["dist/*", "node_modules/*"],
"rules": {}
}

2
.gitignore vendored

@ -0,0 +1,2 @@
dist/
node_modules/

@ -0,0 +1 @@
lts/*

@ -0,0 +1,7 @@
# create-ctp-port
## 0.1.0
### Minor Changes
- Project Scaffolded

@ -0,0 +1,7 @@
Copyright 2023 Carsten Kragelund <carsten@kragelund.me>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

@ -0,0 +1,3 @@
# Create Catppuccin Port
A CLI tool for bootstrapping catppuccin ports

5789
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -0,0 +1,64 @@
{
"name": "create-ctp-port",
"version": "0.1.0",
"description": "Bootstrap catppuccin ports easily",
"author": "Carsten Kragelund <carsten@kragleund.me>",
"license": "MIT",
"bugs": {
"url": "https://github.com/catppuccin/create-catppuccin-port/issues"
},
"homepage": "https://github.com/catppuccin/create-catppuccin-port#readme",
"exports": "./dist/index.js",
"bin": {
"create-ctp-port": "./dist/index.js"
},
"scripts": {
"typecheck": "tsc",
"build": "tsup",
"dev": "tsup --watch --silent",
"start": "node dist/index.js",
"lint": "eslint . --report-unused-disable-directives",
"lint:fix": "npm run lint -- --fix",
"format": "npm run _format -- --write",
"format:check": "npm run _format -- --check",
"_format": "prettier **/*.{cjs,mjs,ts,tsx,md,json} --ignore-path ./.gitignore --ignore-unknown --no-error-on-unmatched-pattern",
"clean": "rimraf dist",
"changeset": "changeset",
"bump": "changeset version",
"release": "npm run build && npm run bump"
},
"husky": {
"hooks": {
"pre-commit": "npm run format:check && npm run lint && npm run typecheck"
}
},
"devDependencies": {
"@changesets/cli": "^2.26.0",
"@types/node": "^18.16.17",
"@typescript-eslint/eslint-plugin": "^5.59.11",
"@typescript-eslint/parser": "^5.59.11",
"eslint": "^8.42.0",
"eslint-config-prettier": "^8.8.0",
"husky": "^8.0.3",
"prettier": "^2.8.8",
"rimraf": "^5.0.1",
"tsup": "^6.7.0",
"typescript": "^4.9.4"
},
"repository": {
"type": "git",
"url": "git+https://github.com/catppuccin/create-catppuccin-port.git"
},
"keywords": [
"catppuccin",
"theme",
"create",
"ctp",
"colorscheme",
"pastel",
"colors"
],
"engines": {
"node": ">=16.8.0"
}
}

@ -0,0 +1 @@
console.log("Hello World!");

@ -0,0 +1,15 @@
{
"include": ["src/**/*.ts"],
"exclude": ["node_modules"],
"compilerOptions": {
"target": "es2016" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
"module": "commonjs" /* Specify what module code is generated. */,
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
"strict": true /* Enable all strict type-checking options. */,
"noImplicitAny": true,
"skipLibCheck": true /* Skip type checking all .d.ts files. */,
"noUncheckedIndexedAccess": true,
"noEmit": true
}
}

@ -0,0 +1,16 @@
import { defineConfig } from "tsup";
const isDev = process.env.npm_lifecycle_event === "dev";
export default defineConfig({
clean: true,
dts: true,
entry: ["src/index.ts"],
format: ["esm", "cjs"],
minify: !isDev,
metafile: !isDev,
sourcemap: true,
target: "esnext",
outDir: "dist",
onSuccess: isDev ? "node dist/index.js" : undefined,
});