[go: nahoru, domu]

Skip to content

Commit

Permalink
feat: upgrade to use types from @hotwired/stimulus
Browse files Browse the repository at this point in the history
  • Loading branch information
ElMassimo committed Jan 5, 2022
1 parent bfad7a4 commit 38526d8
Show file tree
Hide file tree
Showing 12 changed files with 3,957 additions and 3,600 deletions.
7 changes: 7 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
dist/
coverage/
build/
examples/
public/
node_modules/
test/fixtures/
31 changes: 31 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: build

on: [push, pull_request]

jobs:
build:
name: Test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: 14.x

- uses: pnpm/action-setup@v1.2.1
with:
version: 5.13.6
run_install: |
- recursive: false
- name: Build
run: pnpm build

- name: Test
run: pnpm test

- name: Lint
run: pnpm lint
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/.bundle
.pnpm-debug.log
pkg
log
tmp
Expand Down Expand Up @@ -47,4 +48,4 @@ selenium-server.log
.env.*.local

docs/pnpm-lock.yaml
myapp/
myapp/
46 changes: 29 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
{
"name": "stimulus-vite-helpers",
"version": "1.0.4",
"version": "3.0.0",
"description": "Vite.js helpers for the Stimulus JavaScript framework",
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"license": "MIT",
"author": "Máximo Mussini <maximomussini@gmail.com>",
"files": [
"dist"
],
"sideEffects": false,
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.cjs",
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"repository": {
"type": "git",
"url": "https://github.com/ElMassimo/stimulus-vite-helpers"
Expand All @@ -25,28 +36,29 @@
],
"scripts": {
"lint": "eslint .",
"test": "uvu tests",
"test": "vitest",
"dev": "npm run build -- --watch",
"build": "tsup src/index.ts --dts --format cjs,esm",
"clean": "rm -rf ./dist",
"release": "nr clean && nr build && npm publish",
"build": "tsup src/index.ts --dts --format cjs,esm --clean",
"release": "nr build && npm publish",
"prepublishOnly": "npm run build",
"postpublish": "PACKAGE_VERSION=$(cat package.json | grep \\\"version\\\" | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') && git tag v$PACKAGE_VERSION && git push --tags"
},
"files": [
"dist"
],
"devDependencies": {
"@antfu/eslint-config": "^0.4.3",
"@mussi/eslint-config": "^0.5",
"@typescript-eslint/eslint-plugin": "^4.12.0",
"eslint": "^7.17.0",
"rollup": "^2.36.1",
"rollup": "^2.59",
"standard-version": "^9.1.0",
"stimulus": "^2.0.0",
"tsup": "^3.11.0",
"@hotwired/stimulus": "^3.0.1",
"tsup": "^5",
"typescript": "^4.1.3",
"uvu": "^0.5.1",
"vite": "^2.0.0-beta.69"
"vitest": "^0.0.132",
"vite": "^2.7"
},
"eslintConfig": {
"extends": [
"@mussi/eslint-config"
]
},
"publishConfig": {
"access": "public"
Expand Down
Loading

0 comments on commit 38526d8

Please sign in to comment.