Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not workign with watch #35

Open
Deathrage opened this issue Jan 15, 2022 · 0 comments
Open

Not workign with watch #35

Deathrage opened this issue Jan 15, 2022 · 0 comments

Comments

@Deathrage
Copy link

Deathrage commented Jan 15, 2022

Where is the file located:
./src/ui/views/index.ejs

Command npm run build:dev works ok and ui/views gets copied to the dev-build folter (resulting in dev-build/ui/views/index.ejs).
Command npm run build:dev:watch does not wor (meaning it does not copy the ejs file).

My tsconfig.json

{
  "compilerOptions": {
    "target": "es6",
    "module": "commonjs",
    "moduleResolution": "node",
    "allowSyntheticDefaultImports": true,
    "esModuleInterop": true,
    "allowJs": true,
    "importHelpers": true,
    "jsx": "react",
    "alwaysStrict": true,
    "sourceMap": true,
    "forceConsistentCasingInFileNames": true,
    "noFallthroughCasesInSwitch": true,
    "noImplicitReturns": true,
    "noUnusedLocals": false,
    "noUnusedParameters": false,
    "noImplicitAny": false,
    "noImplicitThis": false,
    "strictNullChecks": false,
    "outDir": "dev-build",
    "declaration": true
  },
  "include": [
    "src/**/*"
  ],
  "exclude": [
    "test/**/*"
  ],
  "hooks": [
    "copy-files"
  ]
}

My package.json

{
  "name": "apitree",
  "version": "1.0.0",
  "description": "To make it easy for you to get started with GitLab, here's a list of recommended next steps.",
  "main": "index.js",
  "directories": {
    "test": "test"
  },
  "scripts": {
    "build:dev": "tsc -p tsconfig.json",
    "build:dev:watch": "tsc --watch -p tsconfig.json",
    "build": "tsc -p tsconfig.release.json"
  },
  "repository": {
    "type": "git",
    "url": "git+https://gitlab.com/Deathrage/apitree.git"
  },
  "author": "",
  "license": "ISC",
  "bugs": {
    "url": "https://gitlab.com/Deathrage/apitree/issues"
  },
  "homepage": "https://gitlab.com/Deathrage/apitree#readme",
  "devDependencies": {
    "@types/ejs": "^3.1.0",
    "@types/express": "^4.17.13",
    "@types/node": "^17.0.8",
    "@typescript-eslint/eslint-plugin": "^5.9.1",
    "@typescript-eslint/parser": "^5.9.1",
    "eslint": "^8.6.0",
    "prettier": "^2.5.1",
    "tsc-hooks": "^1.1.1",
    "typescript": "^4.5.4"
  },
  "peerDependencies": {
    "express": "^4.17.2"
  },
  "dependencies": {
    "ejs": "^3.1.6"
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant