Javascript syntax check and build tools-Use of jslint and nodejs

Source: Internet
Author: User
Javascript syntax check and build tools-Use of jslint and nodejs

This article is intended for advanced JavaScript developers!

This article applies to developers who intend to create libraries similar to jquery. After mastering the methods described in this article, they can quickly develop JavaScript like developing Java or C ++. You need to have some basic knowledge and work habits to practice the methods described in this article:

  • No fear of command lines;
  • A little bit about makefile;
  • Like to control details rather than hand over a black box tool;
  • The last and most important thing is that you are a Linux fan and want to seamlessly switch between Windows and Linux.

Now, let's start my work.

Considering that most people are still developing software on Windows, this article uses cygwin as the working environment to illustrate the problem. The method in this article is tested on Windows 7/Linux (Ubuntu 12.10. Cygwin is a virtual UNIX operating system running on Windows. Development on Linux is relatively simple. You only need to install the latest nodejs. Cygwin must be installed on Windows.

Step 2: download and install cygwin.

Step 2: Install software on cygwin: git, curl, nodejs, and NPM.

Step 2: Download jslint.

Step 2: Create your own JS project package directory and write JS files using any of your favorite software. Write makefile.

Step 2: Run cygwin and make command to build Js.

 

The following describes the specific process of each step.

Step 2: download and install cygwin.

Although you can directly download one from the cygwin website, I downloaded one from the NVIDIA website that contains Eclipse/cygwin/Java/C ++/Android/ant... Combined development tools:

Tegra Android developer pack

Go to http://developer.nvidia.com/tegra-resources. download:Tegra Android developer pack 1.0r5.

Http://developer.nvidia.com/sites/default/files/akamai/tools/files/Tegra/tegra-devpack-1.0-windows-2012-02-21-11617556.exe

Download tegra-devpack-1.0-windows-2012-02-21-10917556.exe and install it in: C: \ nvpack. And automatically update the required installation package. By default, all installation options are selected.

Although we only need a small part of cygwin in nvpack, This Is My method because I still need other components in the entire development portfolio. If you only want to install cygwin, you can refer to the relevant documentation to solve it yourself.

C: \ nvpack \ cygwin \

Step 2: Install software on cygwin: git, curl, nodejs, and NPM.

Go to c: \ nvpack \ cygwin, double-click setup.exe, select Internet installation items, search for related software, and select the check box to install related packages. If you are prompted to upgrade c: \ nvpack \ cygwin \ setup.exe, replace it with the latest version of http://www.cygwin.com/setup.exe.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.