NPM package.json里的注释

使用//作为键值即可:

{
    "//": "comment"
}

多行注释有两种写法:

"//": "第一种",
"//": "something more"

"//": "第二种"
"//": ["comment", "something more"]

完整示例:

{
    "name": "CountDown",
    "version": "0.0.1",
    "//": "All dependencies MUST be Compatible with Grunt 0.4",
    "devDependencies": {
        "grunt": "~0.4.0",
        "grunt-contrib-jshint": "~0.1.1",
        "grunt-contrib-jasmine": "~0.3.0",
        "grunt-contrib-uglify": "~0.1.1"
    }
}

参考资料:

0%