GithubHelp home page GithubHelp logo

Comments (14)

darxx avatar darxx commented on July 19, 2024 1

Tomorrow I will try to run separately. I hope this helps.

from angular-starter.

antonybudianto7 avatar antonybudianto7 commented on July 19, 2024 1

Anyway I need more details on how you do the debugging.
For now, I just tried gulp test -w and used Karma Chrome launcher, then clicked DEBUG button on launcher popup, and then I started to put debugger; statement in spec file, and refresh the debug page, here is what I got
test

It worked well (although I got tslint warning on debugger; usage, well it's okay since you only debug it)

I can even log the scopes
test2

from angular-starter.

antonybudianto7 avatar antonybudianto7 commented on July 19, 2024 1

because ts files are not loaded directly via script tag
https://karma-runner.github.io/0.13/config/files.html

from angular-starter.

antonybudianto avatar antonybudianto commented on July 19, 2024

not sure how to fix this, this may help

from angular-starter.

darxx avatar darxx commented on July 19, 2024

This information was not very helpful. I guess this problems is related to type script remapping .

from angular-starter.

antonybudianto7 avatar antonybudianto7 commented on July 19, 2024

Remapping is a separate process after karma's done, not sure why it's the problem. I think the sourcemap is not properly loaded.

from angular-starter.

darxx avatar darxx commented on July 19, 2024

This works as expected. Working on "real time" debugging and compiling.
Created
gulpfile.js
gulp.task('serv', function() {
runSequence('serve-local', 'unit-test');
});

and
serve.js
gulp.task('serve-local', function ()
{
startBrowsersync(config.browserSync.dev);
});

Then added debugger after launched
gulp serv --exclude-source -w

I guess ['tsc-app', 'watch-ts'] need to be added.

from angular-starter.

antonybudianto7 avatar antonybudianto7 commented on July 19, 2024

closing this issue then, thanks

from angular-starter.

darxx avatar darxx commented on July 19, 2024

{ included: false, watched: false, pattern: 'src/app/*/.ts' },
In Karma why included: false is false?

from angular-starter.

darxx avatar darxx commented on July 19, 2024

After changing spec file need to kill gulp test -w and run over again.

from angular-starter.

antonybudianto7 avatar antonybudianto7 commented on July 19, 2024

Please explain the detail more, why you need to kill the test watch?
Working well on my side.

from angular-starter.

darxx avatar darxx commented on July 19, 2024

Can You Explain local development cycle writing code, test and checking changes on web server? Because every time I need to close gulp commands and start others tasks to preprocess type script and code coverage and start static server.

from angular-starter.

darxx avatar darxx commented on July 19, 2024

And using --exclude-source on every gulp command to avoid writing directly to c drive is not best solution. Currently local workflow is main issue.

from angular-starter.

antonybudianto7 avatar antonybudianto7 commented on July 19, 2024

If the problem is workflow, then it'll get nowhere, since everyone have different opinions on this. You can fork the starter and start implementing your desired flows, I'll help where I can.

from angular-starter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.