小编use*_*508的帖子

windows中的全球通配符npm

我试图让npm在脚本文件夹上进行构建browserify.问题是,我在Windows上做文件夹/*.js似乎不起作用.我已尝试全局安装glob,但每当我运行构建命令时,错误都会回来说"找不到模块'c:\ www\project\static\js\components*.js'.

这是我的package.json:

{
  "name": "TEST",
  "description": "ITS ME MARIO",
  "author": "JJ",
  "version": "0.0.1",
  "dependencies": {
    "connect": "1.8.5",
    "express": "2.5.2",
    "jade": "0.20.0",
    "mongoose": "3.8.x",
    "socket.io": "0.8.7"
  },
  "devDependencies": {
    "vows": "0.5.x",
    "mocha": "*",
    "should": "*",
    "jshint": "latest",
    "browserify": "latest",
    "rimraf": "latest",
    "hashmark": "latest",
    "stylus": "latest",
    "glob": "latest"

  },
  "scripts": {
      "clean": "rimraf dist",
      "test": "mocha test/",
      "build:components-js": "browserify static/js/components/*.js > static/dist/components.js",
      "build:app-js": "browserify static/js/script > static/dist/app.js",
      "build:css": "stylus static/css/style.styl > static/dist/main.css",
      "build": "npm run build:css && npm run build:components-js && …
Run Code Online (Sandbox Code Playgroud)

glob node.js npm

7
推荐指数
1
解决办法
3368
查看次数

标签 统计

glob ×1

node.js ×1

npm ×1