diff --git a/.babelrc b/.babelrc deleted file mode 100644 index 162fc103..00000000 --- a/.babelrc +++ /dev/null @@ -1,16 +0,0 @@ -{ - "presets": [ - "@babel/preset-env", - "@babel/preset-typescript" - ], - "plugins": [ - [ - "babel-plugin-inline-import", - { - "extensions": [ - ".ttl" - ] - } - ] - ] -} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9c9c7850..a0fad3a8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,10 +8,10 @@ permissions: on: push: branches: - - "**" + - main pull_request: branches: - - "**" + - main workflow_dispatch: jobs: @@ -22,7 +22,6 @@ jobs: strategy: matrix: node-version: - - 18.x - 20.x - 22.x @@ -73,7 +72,7 @@ jobs: run: 'sed -i -E "s/(\"version\": *\"[^\"]+)/\1-${GITHUB_SHA_SHORT}/" package.json' - name: Disable pre- and post-publish actions run: 'sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json' - - uses: JS-DevTools/npm-publish@v4.1.1 + - uses: JS-DevTools/npm-publish@v4.1.0 if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' with: token: ${{ secrets.NPM_TOKEN }} @@ -92,7 +91,7 @@ jobs: node-version: 20.x - name: Disable pre- and post-publish actions run: 'sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json' - - uses: JS-DevTools/npm-publish@v4.1.1 + - uses: JS-DevTools/npm-publish@v4.1.0 if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' with: token: ${{ secrets.NPM_TOKEN }} diff --git a/.gitignore b/.gitignore index 8512bffb..d62d2a65 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # Built code dist lib +dist-dev src/versionInfo.ts # Logs diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 2ac7451c..00000000 --- a/.npmignore +++ /dev/null @@ -1,4 +0,0 @@ -# This file primarily exists to prevent ./dist from being ignored when publishing. -# (Because it's listed in .gitignore). - -coverage \ No newline at end of file diff --git a/babel.config.mjs b/babel.config.mjs new file mode 100644 index 00000000..d5db5463 --- /dev/null +++ b/babel.config.mjs @@ -0,0 +1,19 @@ +export default { + presets: [ + ['@babel/preset-env', { + targets: { + browsers: ['> 1%', 'last 3 versions', 'not dead'] + } + }], + '@babel/preset-typescript' + ], + plugins: [ + [ + 'babel-plugin-inline-import', { + extensions: [ + '.ttl' + ] + } + ] + ] +} diff --git a/src/global.d.ts b/declarations.d.ts similarity index 100% rename from src/global.d.ts rename to declarations.d.ts diff --git a/dev/index.html b/dev/index.html index 9ddeef1a..515ef587 100644 --- a/dev/index.html +++ b/dev/index.html @@ -3,6 +3,16 @@ Solid Pane Tester + + + + +