move to using /src - still css issue work
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 22s
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 22s
This commit is contained in:
@@ -41,19 +41,12 @@ jobs:
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '20'
|
||||
# cache intentially commented out to troubleshoot issues with caching
|
||||
# cache: 'npm' # Cache npm dependencies to speed up subsequent builds.
|
||||
# Use a glob pattern to find the lock file, making the path more resilient.
|
||||
cache: 'npm' # Re-enable the cache. If this fails, we will remove it again.
|
||||
cache-dependency-path: '**/package-lock.json'
|
||||
|
||||
# THIS IS THE NEW, CRITICAL STEP
|
||||
- name: Force Clean Install
|
||||
run: |
|
||||
echo "Forcing a clean slate by removing node_modules and package-lock.json"
|
||||
rm -rf node_modules
|
||||
rm -f package-lock.json
|
||||
npm install
|
||||
|
||||
# The setup-node action with caching handles installation correctly.
|
||||
# If dependencies are not found in cache, it will run 'npm ci' automatically.
|
||||
# If they are found, it restores them. This is the standard, reliable way.
|
||||
- name: Install Dependencies
|
||||
run: npm ci # 'ci' is faster and safer for CI/CD than 'install'.
|
||||
|
||||
|
||||
@@ -5,6 +5,9 @@ First, some rules:
|
||||
4) when creating new files, output there entire path in your explanation, to make it easier to know where to save those new files and directories to
|
||||
5) add comments when you can, as that will help ensure ideas persist into the app
|
||||
6) Your knowledge of package version, like nodejs, is always old, like a year or more old - ask me for the best version to use, as your knowledge is incomplete
|
||||
7) Before you make any destructive changes, you must stop and ask for my explicit confirmation. A 'destructive change' includes: Deleting more than 20 lines of code at once. Deleting an entire file. Deleting a major, self-contained block of code like a schema definition, a component, or a large function. When you identify a need for such a change, you must first state exactly what you intend to delete and why. Then, you must wait for me to reply with 'Confirm' or 'Proceed' before you generate the code."
|
||||
8) Operate in 'conservative mode'. Your primary task is to add or modify code. Do not remove any existing functions, components, files, or large code blocks unless I have explicitly and unambiguously instructed you to do so in the current prompt. If you believe a piece of code is redundant or should be refactored, you may suggest it, but you must not perform the deletion or move yourself without my prior instruction.
|
||||
9) When you are refactoring by moving a significant amount of code from an existing file to a new file, you are required to provide the complete contents of both files in your response: the newly created file and the original file from which the code was removed. Do not just show me the new file and an empty old file.
|
||||
7) Stop making predictions and/or guessing at solutions. Focus on adding logging and debugging to issues that are not solved right away.
|
||||
8) Do not make obsequious statements - we're here to do a job, not get patted on the shoulder for insignificant acheivements.
|
||||
|
||||
9) Before you make any destructive changes, you must stop and ask for my explicit confirmation. A 'destructive change' includes: Deleting more than 20 lines of code at once. Deleting an entire file. Deleting a major, self-contained block of code like a schema definition, a component, or a large function. When you identify a need for such a change, you must first state exactly what you intend to delete and why. Then, you must wait for me to reply with 'Confirm' or 'Proceed' before you generate the code."
|
||||
10) Operate in 'conservative mode'. Your primary task is to add or modify code. Do not remove any existing functions, components, files, or large code blocks unless I have explicitly and unambiguously instructed you to do so in the current prompt. If you believe a piece of code is redundant or should be refactored, you may suggest it, but you must not perform the deletion or move yourself without my prior instruction.
|
||||
11) When you are refactoring by moving a significant amount of code from an existing file to a new file, you are required to provide the complete contents of both files in your response: the newly created file and the original file from which the code was removed. Do not just show me the new file and an empty old file.
|
||||
|
||||
@@ -1,9 +1,18 @@
|
||||
// postcss.config.js
|
||||
|
||||
import tailwindcss from 'tailwindcss';
|
||||
|
||||
console.log('--- [EXECUTION PROOF] postcss.config.js is being loaded. ---');
|
||||
|
||||
export default {
|
||||
plugins: {
|
||||
'@tailwindcss/postcss': {},
|
||||
},
|
||||
plugins: [
|
||||
// Initialize the tailwindcss plugin and pass the config object directly.
|
||||
// This bypasses ALL file searching.
|
||||
tailwindcss({
|
||||
content: [
|
||||
"./index.html",
|
||||
"./src/**/*.{js,ts,jsx,tsx}",
|
||||
],
|
||||
}),
|
||||
],
|
||||
};
|
||||
@@ -1,11 +0,0 @@
|
||||
// tailwind.config.js
|
||||
|
||||
console.log('--- [EXECUTION PROOF] tailwind.config.js is being loaded. ---');
|
||||
|
||||
/** @type {import('tailwindcss').Config} */
|
||||
export default {
|
||||
content: [
|
||||
"./index.html",
|
||||
"./src/**/*.{js,ts,jsx,tsx}",
|
||||
],
|
||||
};
|
||||
@@ -18,8 +18,7 @@ const vitestConfig = defineVitestConfig({
|
||||
const viteConfig = defineViteConfig({
|
||||
plugins: [react()],
|
||||
|
||||
// THE 'css' BLOCK IS REMOVED to allow for standard auto-discovery.
|
||||
// We will now rely on vite build --debug to prove it finds postcss.config.js.
|
||||
// No explicit 'css' block. Let Vite do its job.
|
||||
|
||||
server: {
|
||||
port: 3000,
|
||||
|
||||
Reference in New Issue
Block a user