init
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"$schema": "https://unpkg.com/@changesets/config@1.4.0/schema.json",
|
||||
"changelog": "@changesets/cli/changelog",
|
||||
"commit": false,
|
||||
"linked": [],
|
||||
"access": "public",
|
||||
"baseBranch": "main",
|
||||
"updateInternalDependencies": "patch",
|
||||
"ignore": []
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
timeout-minutes: 30
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
submodules: true
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 20
|
||||
registry-url: https://registry.npmjs.org/
|
||||
- uses: pnpm/action-setup@master
|
||||
with:
|
||||
version: 9
|
||||
run_install: false
|
||||
- name: Install pnpm dependencies (with cache)
|
||||
uses: covbot/pnpm-install-with-cache@v1
|
||||
# scripts
|
||||
- run: pnpm build
|
||||
- run: pnpm test
|
||||
@@ -0,0 +1,7 @@
|
||||
node_modules
|
||||
dist
|
||||
esm
|
||||
.DS_Store
|
||||
*.tsbuildinfo
|
||||
.ultra.cache.json
|
||||
coverage
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"arrowParens": "always",
|
||||
"jsxSingleQuote": true,
|
||||
"tabWidth": 4,
|
||||
"semi": false,
|
||||
"singleQuote": true,
|
||||
"trailingComma": "all"
|
||||
}
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,9 @@
|
||||
<div align='center'>
|
||||
<br/>
|
||||
<br/>
|
||||
<h3>Template</h3>
|
||||
<p>project under development</p>
|
||||
<br/>
|
||||
<br/>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"name": "new-package-template",
|
||||
"version": "0.0.0",
|
||||
"description": "",
|
||||
"main": "dist/index.js",
|
||||
"module": "esm/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"repository": "https://github.com/remorses/",
|
||||
"scripts": {
|
||||
"build": "tsc && tsc -m es6 --outDir esm",
|
||||
"watch": "tsc -w"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"src",
|
||||
"esm"
|
||||
],
|
||||
"keywords": [],
|
||||
"author": "Tommaso De Rossi, morse <beats.by.morse@gmail.com>",
|
||||
"license": "",
|
||||
"devDependencies": {},
|
||||
"dependencies": {},
|
||||
"peerDependencies": {}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import { test, expect } from 'vitest'
|
||||
|
||||
test('ready', () => {
|
||||
expect(true).toBe(true)
|
||||
})
|
||||
|
||||
test('two', () => {
|
||||
expect(true).toBe(true)
|
||||
})
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"extends": "../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"rootDir": "src",
|
||||
"outDir": "dist"
|
||||
},
|
||||
"include": ["src"]
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "root",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"test": "NODE_ENV=test vitest",
|
||||
"watch": "pnpm -r watch",
|
||||
"build": "pnpm -r build",
|
||||
"release": "pnpm build && changeset"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@changesets/cli": "^2.27.7",
|
||||
"prettier": "^3.3.3",
|
||||
"tsx": "^4.17.0",
|
||||
"typescript": "^5.5.4",
|
||||
"vite": "^5.4.0",
|
||||
"vitest": "^2.0.5"
|
||||
},
|
||||
"repository": "https://github.com/remorses/",
|
||||
"author": "remorses <beats.by.morse@gmail.com>",
|
||||
"license": ""
|
||||
}
|
||||
Generated
+2184
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,2 @@
|
||||
packages:
|
||||
- ./*
|
||||
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2022",
|
||||
"module": "commonjs",
|
||||
"allowJs": false,
|
||||
"composite": true,
|
||||
"outDir": "${configDir}/dist",
|
||||
"rootDir": "${configDir}/src",
|
||||
"moduleResolution": "Bundler",
|
||||
"lib": [
|
||||
"es2022",
|
||||
"es2017",
|
||||
"es7",
|
||||
"es6"
|
||||
// "dom"
|
||||
],
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"strict": true,
|
||||
"downlevelIteration": true,
|
||||
"esModuleInterop": true,
|
||||
"noImplicitAny": false,
|
||||
"useUnknownInCatchVariables": false,
|
||||
"sourceMap": true,
|
||||
"jsx": "react-jsx",
|
||||
"skipLibCheck": true
|
||||
},
|
||||
"exclude": ["**/node_modules", "**/.*/"]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// vite.config.ts
|
||||
import { defineConfig } from 'vite'
|
||||
|
||||
export default defineConfig({
|
||||
esbuild: {
|
||||
jsx: 'transform',
|
||||
},
|
||||
test: {
|
||||
exclude: ['**/dist/**', '**/esm/**', '**/node_modules/**', '**/e2e/**'],
|
||||
pool: 'threads',
|
||||
poolOptions: {
|
||||
threads: {
|
||||
isolate: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user