Skip to content

Commit 76fc95b

Browse files
committed
Fixes Tests fail when tailwind.config.js is present #21
1 parent 7c5ad15 commit 76fc95b

File tree

4 files changed

+5
-23
lines changed

4 files changed

+5
-23
lines changed

src/lightnap-ng/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
"ng": "ng",
77
"start": "ng serve",
88
"build": "ng build",
9-
"pretest": "node tailwind.config.mover.js hide",
10-
"test": "ng test --watch=false",
11-
"posttest": "node tailwind.config.mover.js restore",
9+
"test": "ng test",
1210
"deploy": "ng build --configuration production"
1311
},
1412
"private": true,

src/lightnap-ng/src/styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
@import "primeicons/primeicons.css";
55
@import "./assets/layout/layout.css";
66

7-
@config "../tailwind.config.js";
7+
@config "../tailwind.config.lightnap.js";
88

99
/*
1010
* Add style customization here if you want to use Tailwind CSS.

src/lightnap-ng/tailwind.config.js renamed to src/lightnap-ng/tailwind.config.lightnap.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Note: This file uses a name other than "tailwind.config.js" so that both the build and tests will run without other workarounds.
2+
// See https://github.com/SharpLogic/LightNap/issues/21.
3+
14
/** @type {import('tailwindcss').Config} */
25
module.exports = {
36
darkMode: ["selector", '[class="app-dark"]'],

src/lightnap-ng/tailwind.config.mover.js

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)