TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Check that your Node.js project is well written, secure and follow conventions

74 pointsby fgribreauover 10 years ago

4 comments

oblioover 10 years ago
IMO drop the gifs, especially the "mind blown" one. They're very annoying to watch while reading the documentation.
robrykover 10 years ago
What is meant by checking that the project is "secure" is checking dependencies against known security issues. While this is useful, this is completely different from what is advertised (I've expected some sort of a heuristic security anti-pattern detector).
评论 #8482530 未加载
nailerover 10 years ago
&gt; I don&#x27;t want to create&#x2F;edit a new make&#x2F;grunt&#x2F;gulp file or whatever hype dev use these days.<p>Make is from 1977, and is pretty rare for web developers. gulp was designed as a grunt replacement, anyone familiar with the former can learn the latter.<p>I love jslint, I love checking for insecure npm modules, and the other things this module provides seem good too, but having a build system doesn&#x27;t preclude any of those.
评论 #8482050 未加载
评论 #8482650 未加载
robotkillaover 10 years ago
Interesting library – I ran it on one of my projects which consists of JS compiled from literate coffeescript. The JS also has also been run through browserify and uglify.<p>My code is tested using mocha (albeit lightly), passes lint tests and seems to have no issues pre or post compiling, however when I run check-build I receive 28 errors and 25 warnings.<p>Here is a sample of check-build&#x27;s output:<p><pre><code> line 4 col 448 Line is too long. line 4 col 22 Missing &quot;use strict&quot; statement. line 4 col 80 Expected &#x27;===&#x27; and instead saw &#x27;==&#x27;. line 4 col 99 Missing &quot;use strict&quot; statement. line 4 col 109 Expected &#x27;{&#x27; and instead saw &#x27;return&#x27;. line 4 col 123 Missing &quot;use strict&quot; statement. line 4 col 124 Missing &quot;use strict&quot; statement. </code></pre> This seems to be directly related to using uglify – my guess is that I need to tweak the config file to fit my stack (I&#x27;m using the default example).<p>edit - I already changed the config to match my directory structure and am running check-build on the compiled JS.
评论 #8481783 未加载