Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
dbbc418
improved babel config
timea-solid Sep 16, 2025
bf84ebb
improved lint & webpack for dev
timea-solid Sep 17, 2025
0e229fb
deleted legacy travis
timea-solid Sep 17, 2025
da41237
consolidated docs
timea-solid Sep 17, 2025
4e3d29c
consolidates test in its own folder and own configs
timea-solid Sep 17, 2025
0675603
fixed tests
timea-solid Sep 17, 2025
75085cc
imporved scripts
timea-solid Sep 17, 2025
f05e6f5
minor fixes
timea-solid Sep 17, 2025
4b430a3
Update webpack.config.js
timea-solid Sep 17, 2025
f0a2970
drop node18
timea-solid Sep 17, 2025
c7bacfb
Merge branch 'newFace' of https://github.com/SolidOS/solid-panes into…
timea-solid Sep 17, 2025
4b175da
fixed scripts
timea-solid Sep 18, 2025
ee5abeb
merge main
timea-solid Sep 18, 2025
52e4107
merge main
timea-solid Oct 6, 2025
125af63
fix lint
timea-solid Oct 6, 2025
f251a0e
added js files to build
timea-solid Oct 6, 2025
346708d
fixed load of ttl files
timea-solid Oct 6, 2025
3439276
small improvements
timea-solid Nov 3, 2025
6100d54
found a missing type from solid-ui
timea-solid Nov 3, 2025
e9f8bce
Merge branch 'main' into newFace
timea-solid Nov 3, 2025
429a642
exact versions
timea-solid Nov 3, 2025
bbb760a
downgrade publish
timea-solid Nov 3, 2025
80127fe
fix repository url
timea-solid Nov 3, 2025
44e479a
updated dep
timea-solid Nov 4, 2025
52c179c
updated dep
timea-solid Nov 4, 2025
1c2b694
updated dep
timea-solid Nov 4, 2025
39da1b3
updated dep
timea-solid Nov 5, 2025
ff81a93
peer dep, dev setup
timea-solid Nov 7, 2025
8aeefd8
lint fix
timea-solid Nov 7, 2025
706adf2
updated dep and config, no more rdf export form solid-ui
timea-solid Nov 7, 2025
b580bcc
merged main, updated dep
timea-solid Nov 19, 2025
ff81d7e
made sure local dev loaded modules correctly
timea-solid Nov 19, 2025
f06890f
updated configs, fix lint
timea-solid Nov 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions .babelrc

This file was deleted.

5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
strategy:
matrix:
node-version:
- 18.x
- 20.x
- 22.x

Expand Down Expand Up @@ -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/[email protected].1
- uses: JS-DevTools/[email protected].0
if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
with:
token: ${{ secrets.NPM_TOKEN }}
Expand All @@ -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/[email protected].1
- uses: JS-DevTools/[email protected].0
if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
with:
token: ${{ secrets.NPM_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Built code
dist
lib
dist-dev
src/versionInfo.ts

# Logs
Expand Down
4 changes: 0 additions & 4 deletions .npmignore

This file was deleted.

19 changes: 19 additions & 0 deletions babel.config.mjs
Original file line number Diff line number Diff line change
@@ -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'
]
}
]
]
}
File renamed without changes.
10 changes: 10 additions & 0 deletions dev/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
<head>
<meta charset="utf-8" />
<title>Solid Pane Tester</title>
<!-- Load dependencies as globals -->
<script src="/node_modules/rdflib/dist/rdflib.min.js"></script>
<script src="/node_modules/solid-logic/dist/solid-logic.js"></script>
<script src="/node_modules/solid-ui/dist/solid-ui.js"></script>
<script>
// Ensure the globals are available with the right names
if (typeof $rdf !== 'undefined') window.$rdf = $rdf;
if (typeof SolidLogic !== 'undefined') window.SolidLogic = SolidLogic;
if (typeof UI !== 'undefined') window.UI = UI;
</script>
<style>
body {
margin: 10%;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
113 changes: 86 additions & 27 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,34 +1,93 @@
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import globals from "globals";
import tsParser from "@typescript-eslint/parser";
import globals from 'globals'
import tsParser from '@typescript-eslint/parser'
import neostandard from 'neostandard'

export default [{
ignores: ["**/dist", "**/lib", "typings/rdflib"],
}, {
plugins: {
"@typescript-eslint": typescriptEslint,
export default [
...neostandard(),
{
ignores: [
'dist/**',
'lib/**',
'docs/**',
'node_modules/**',
'dev/**',
'dev-dist/**',
'coverage/**',
],
},
{
files: ['src/**/*.js', 'src/**/*.cjs', 'src/**/*.mjs'],
languageOptions: {
globals: {
...globals.browser,
...globals.node,
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
}
},
rules: {
// Code style - match TypeScript settings
semi: ['error', 'never'],
quotes: ['error', 'single'],

languageOptions: {
globals: {
...globals.browser,
...globals.node,
Atomics: "readonly",
SharedArrayBuffer: "readonly",
},
// Strict checking - match TypeScript strictness
'no-console': 'warn',
'no-unused-vars': 'warn', // Match TypeScript noUnusedLocals: true
'no-undef': 'error',
strict: ['error', 'global'], // Match TypeScript alwaysStrict: true

parser: tsParser,
// Additional strictness to match TypeScript behavior
'no-implicit-globals': 'error',
'prefer-const': 'error', // Encourage immutability
'no-var': 'error', // Use let/const only
'no-redeclare': 'error'
},
files: ["src/**/*.js", "src/**/*.ts", "src/**/*.cjs", "src/**/*.mjs"],
rules: {
"no-unused-vars": ["warn", {
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
}],
},
{
files: ['src/**/*.ts'],

"@typescript-eslint/no-unused-vars": ["warn", {
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
}],
languageOptions: {
globals: {
...globals.browser,
...globals.node,
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parser: tsParser,
parserOptions: {
project: ['./tsconfig.json']
},
},
}];
rules: {
semi: ['error', 'never'],
quotes: ['error', 'single'],
// Disable ESLint rules that TypeScript handles better
'no-unused-vars': 'off', // TypeScript handles this via noUnusedLocals
'no-undef': 'off', // TypeScript handles undefined variables
},
},
{
files: ['test/**/*.ts'],
languageOptions: {
parser: tsParser,
parserOptions: {
project: ['./tsconfig.test.json'],
},
},
rules: {
semi: ['error', 'never'],
quotes: ['error', 'single'],
'no-console': 'off', // Allow console in tests
'no-undef': 'off', // Tests may define globals
}
},
{
files: ['test/**/**/*.js', 'test/**/*.js'],
rules: {
semi: ['error', 'never'],
quotes: ['error', 'single'],
'no-console': 'off', // Allow console in tests
'no-undef': 'off', // Tests may define globals
}
}
]
21 changes: 13 additions & 8 deletions jest.config.js → jest.config.mjs
Original file line number Diff line number Diff line change
@@ -1,27 +1,32 @@
module.exports = {
export default {
collectCoverage: true,
coverageDirectory: 'coverage',
preset: 'ts-jest/presets/js-with-babel',
testEnvironment: 'jsdom',
testEnvironmentOptions: {
customExportConditions: ['node']
},
moduleNameMapper: {
'^[./a-zA-Z0-9$_-]+\\.ttl$': '<rootDir>/__mocks__/fileMock.js', // '\\.ttl$'
testPathIgnorePatterns: ['/node_modules/', '/dist/'],
transform: {
'^.+\\.[tj]sx?$': ['babel-jest', { configFile: './babel.config.mjs' }],
},
collectCoverage: true,
transformIgnorePatterns: ['/node_modules/(?!lit-html).+\\.js'],
setupFilesAfterEnv: ['./test/helpers/setup.ts'],
testMatch: ['**/?(*.)+(spec|test).[tj]s?(x)'],
roots: ['<rootDir>/src', '<rootDir>/test'],
// For some reason Jest is not measuring coverage without the below option.
// Unfortunately, despite `!(.test)`, it still measures coverage of test files as well:
forceCoverageMatch: ['./src/**/*!(.test).ts'],
// forceCoverageMatch: ['./src/**/*!(.test).ts'],
// Since we're only measuring coverage for TypeScript (i.e. added with test infrastructure in place),
// we can be fairly strict. However, if you feel that something is not fit for coverage,
// mention why in a comment and mark it as ignored:
// https://github.com/gotwarlost/istanbul/blob/master/ignoring-code-for-coverage.md
coverageThreshold: {
/* coverageThreshold: {
global: {
branches: 10,
functions: 25,
lines: 20,
statements: 20
}
},
setupFilesAfterEnv: ['./jest.setup.ts']
} */
}
4 changes: 0 additions & 4 deletions jest.setup.ts

This file was deleted.

Loading