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

grunt-ts watch not compiling for new files #402

Open
Louis-at-Rappler opened this issue May 8, 2017 · 1 comment
Open

grunt-ts watch not compiling for new files #402

Louis-at-Rappler opened this issue May 8, 2017 · 1 comment
Assignees
Labels

Comments

@Louis-at-Rappler
Copy link

Louis-at-Rappler commented May 8, 2017

module.exports = function (grunt) {
    grunt.initConfig({
        ts: {
            default: {
                options: {
                    sourceMap: false,
                    compile: true,
                    fast: 'never'
                },
                src: ["api/**/*.ts", "!node_modules/**"],
                watch: ".",
                outDir: ["api/build"]

            }
        }

    });

    grunt.loadNpmTasks("grunt-ts");
    grunt.registerTask("default", ["ts"]);
};

When I tried adding a new ts files under api, it detects the new file but is not included for compiling.

Verifying property ts.default exists in config...OK

Files: api/controllers/hello.ts, api/repositories/t.ts, api/services/hello.ts, api/services/te.ts
Watching all TypeScript / Html files under : .
Compiling...
Using tsc v2.3.2
TypeScript path: /Users/LouisMaycol/rappler4-api/agos-api/node_modules/typescript/bin/tsc
api/controllers/hello.ts api/repositories/t.ts api/services/hello.ts api/services/te.ts api/.baseDir.ts --removeComments --target ES5 --outDir api/build

TypeScript compilation complete: 4.19s for 5 TypeScript files.
+++ added >>api/repositories/r.ts
Compiling...
Using tsc v2.3.2
TypeScript path: /Users/LouisMaycol/rappler4-api/agos-api/node_modules/typescript/bin/tsc
api/controllers/hello.ts api/repositories/t.ts api/services/hello.ts api/services/te.ts api/.baseDir.ts --removeComments --target ES5 --outDir api/build

TypeScript compilation complete: 2.48s for 5 TypeScript files.

@nycdotnet
Copy link
Contributor

nycdotnet commented Jul 31, 2017

Hi - I am working on a patch for this. Thank you for the report.

@nycdotnet nycdotnet self-assigned this Jul 31, 2017
@nycdotnet nycdotnet added the bug label Jul 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants