From 4c924e910be97a3eddd95a8c08d98b69d5837de4 Mon Sep 17 00:00:00 2001 From: Ken Eucker Date: Mon, 8 Jan 2024 11:50:59 -0800 Subject: [PATCH] Final changes before first release. --- .github/workflows/release.yaml | 2 ++ .github/workflows/tests.yaml | 40 ---------------------------------- package.json | 15 ++++++++----- publish.config.ts | 2 +- 4 files changed, 13 insertions(+), 46 deletions(-) delete mode 100644 .github/workflows/tests.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 101df21c..d879c364 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -29,6 +29,8 @@ jobs: run: npm run lint - name: Build run: npm run pub:build + - name: Expose build + run: npm run pub:expose - name: Release env: GH_TOKEN: ${{ secrets.GH_TOKEN }} diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml deleted file mode 100644 index 00e0fc9e..00000000 --- a/.github/workflows/tests.yaml +++ /dev/null @@ -1,40 +0,0 @@ -name: Tests - -on: - pull_request: - branches: ['*'] - -jobs: - test: - name: Test on node ${{ matrix.node-version }} - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [18.x] - - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - - name: Reconfigure git to use HTTP authentication - run: > - git config --global url."https://github.com/".insteadOf - ssh://git@github.com/ - - name: Install dependencies - run: npm ci --ignore-scripts - - name: Run linters - run: npm run lint - - name: Build - run: npm run build --if-present - - name: Compile - run: npm run compile:prod - - name: Listing - run: ls -a - - name: Run tests - run: node -e "console.log(require.resolve('biketag'))" && npm run test:ci diff --git a/package.json b/package.json index bffdfc75..37ecf1f4 100644 --- a/package.json +++ b/package.json @@ -2,11 +2,16 @@ "name": "biketag-vue", "version": "3.2.7", "license": "AGPL-3.0-or-later", + "author": "Ken Eucker", + "bugs": { + "url": "https://github.com/keneucker/biketag-vue/issues" + }, "scripts": { "lint": "npm run lint:js && npm run lint:style", "lint:js": "eslint --ext .ts,.js,.vue src --fix", "lint:style": "stylelint \"./src/**/*.vue\" \"./src/**/*.scss\" --fix", "serve": "vite", + "pub:expose": "mv dist/publish.d.ts ./ publish.d.ts && mv dist/biketag-vue.umd.js ./biketag-vue.umd.js && mv dist/biketag-vue.mjs ./biketag-vue.mjs && mv dist/style.css ./style.css && mv dist/components ./components && mv dist/common ./common && mv dist/store ./store", "pub:build": "vue-tsc && vite build --config publish.config.ts", "build": "vite build", "dev:rerun": "npm run dev:clear && npm run dev", @@ -104,7 +109,7 @@ "workbox-window": "^7.0.0" }, "engines": { - "node": ">=12.13.0" + "node": ">=18" }, "lint-staged": { "*.ts": [ @@ -134,12 +139,12 @@ "src/components/" ], "types": "./dist/index.d.ts", - "main": "./dist/vue-tri-state-checkbox.umd.cjs", - "module": "./dist/vue-tri-state-checkbox.js", + "main": "./dist/biketag-vue.umd.cjs", + "module": "./dist/biketag-vue.js", "exports": { ".": { - "import": "./dist/vue-tri-state-checkbox.js", - "require": "./dist/vue-tri-state-checkbox.umd.cjs" + "import": "./dist/biketag-vue.js", + "require": "./dist/biketag-vue.umd.cjs" }, "./dist/style.css": { "import": "./dist/style.css", diff --git a/publish.config.ts b/publish.config.ts index 08b8a211..0a7aa1fd 100644 --- a/publish.config.ts +++ b/publish.config.ts @@ -9,7 +9,7 @@ export default defineConfig({ lib: { entry: path.resolve(__dirname, 'src/publish.ts'), name: 'BikeTag', - fileName: 'biketag', + fileName: 'biketag-vue', }, rollupOptions: { external: ['vue'],