Skip to content

Commit

Permalink
Moved config files back into root :(
Browse files Browse the repository at this point in the history
  • Loading branch information
Cipscis committed Nov 3, 2023
1 parent 570c3fc commit da7817d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions config/.eslintrc.cjs → .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ module.exports = {
tsConfigRootDir: __dirname,
project: [
'./tsconfig.json',
'./docs/tsconfig.json',
'./scripts/tsconfig.json',
],
},
Expand Down
2 changes: 1 addition & 1 deletion config/jest.config.js → jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = {
// Don't inject globals. Require them to be imported from `@jest/globals`
injectGlobals: false,
// Specify where the tests are
rootDir: '../src',
rootDir: './src',
// Provide a mocked DOM environment for tests
testEnvironment: 'jsdom',
// Telling jsdom to use 'node' exports seems necessary to allow importing from Preact
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
"buildCss": "sass docs/assets/scss:docs/assets/css",
"build": "concurrently \"npm run buildJs\" \"npm run buildCss\"",

"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --config=config/jest.config.js",
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest",

"watchJs": "ts-node --esm scripts/build-watch.ts",
"watchCss": "sass docs/assets/scss:docs/assets/css --watch",
"testWatch": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --config=config/jest.config.js --watch",
"testWatch": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --watch",
"watch": "concurrently --kill-others \"rimraf ./dist && tsc --watch --preserveWatchOutput --noEmit\" \"npm run watchJs\" \"npm run watchCss\" \"npm run testWatch\"",

"lintJs": "eslint --config=config/.eslintrc.cjs docs/assets/js/src/**",
"lintCss": "stylelint --config=config/stylelint.config.cjs docs/assets/scss/**/*.scss",
"lintJs": "eslint docs/assets/js/src/**",
"lintCss": "stylelint docs/assets/scss/**/*.scss",
"lint": "npm run lintJs && npm run lintCss",

"start": "concurrently --kill-others \"npm run server\" \"npm run watch\"",
Expand Down
File renamed without changes.

0 comments on commit da7817d

Please sign in to comment.