Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
chizukicn authored Sep 9, 2023
0 parents commit 6b8f723
Show file tree
Hide file tree
Showing 12 changed files with 4,279 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@antfu"
}
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI

on:
push:
branches:
- main

pull_request:
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set node
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: Setup PNPM
uses: pnpm/action-setup@v2.4.0
with:
version: 8.7.4

- name: Install
run: pnpm i

- name: Lint
run: pnpm lint

- name: Build
run: pnpm build

- name: Test
run: pnpm test
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
dist
*.log
.vscode
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ignore-workspace-root-check=true
shamefully-hoist=true
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 zyyv <https://github.com/zyyv>

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.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# unocss-preset-starter [![npm](https://img.shields.io/npm/v/unocss-preset-starter)](https://npmjs.com/package/unocss-preset-starter)

UnoCSS preset quickstart template.

## Features
- 🔥 Description of the preset

## Usage
```shell
pnpm i -D unocss-preset-starter unocss
```

```ts
// uno.config.ts
import { defineConfig } from 'unocss'
import { presetStarter } from 'unocss-preset-starter'

export default defineConfig({
presets: [
// ...
presetStarter(),
],
})
```

## License

[MIT](./LICENSE) License © 2023 [zyyv](https://github.com/zyyv)
15 changes: 15 additions & 0 deletions build.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { defineBuildConfig } from 'unbuild'

export default defineBuildConfig({
entries: [
'src/index',
],
clean: true,
declaration: true,
rollup: {
emitCJS: true,
},
externals: [
'unocss',
],
})
67 changes: 67 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"name": "unocss-preset-starter",
"type": "module",
"version": "0.0.0",
"packageManager": "pnpm@8.7.0",
"description": "<description>",
"author": "unpreset <https://github.com/unpreset>",
"license": "MIT",
"homepage": "https://github.com/unpreset/unocss-preset-starter#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/unpreset/unocss-preset-starter.git"
},
"bugs": {
"url": "https://github.com/unpreset/unocss-preset-starter/issues"
},
"keywords": [
"unocss",
"unpreset",
"unocss-preset",
"unocss-preset-starter"
],
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"typesVersions": {
"*": {
"*": [
"./dist/*",
"./dist/index.d.ts"
]
}
},
"files": [
"dist"
],
"scripts": {
"build": "unbuild",
"dev": "unbuild --stub",
"prepublishOnly": "pnpm run build",
"release": "bumpp --commit --push --tag && pnpm publish",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"test": "vitest",
"test:update": "vitest --update"
},
"devDependencies": {
"@antfu/eslint-config": "^0.41.0",
"@babel/types": "^7.22.11",
"@types/node": "^20.5.9",
"bumpp": "^9.2.0",
"eslint": "^8.48.0",
"typescript": "5.1.6",
"unbuild": "^2.0.0",
"unocss": "latest",
"vite": "^4.4.9",
"vitest": "^0.34.3"
}
}
Loading

0 comments on commit 6b8f723

Please sign in to comment.