{"action":"created","issue":{"url":"https://api.github.com/repos/substack/watchify/issues/144","labels_url":"https://api.github.com/repos/substack/watchify/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/substack/watchify/issues/144/comments","events_url":"https://api.github.com/repos/substack/watchify/issues/144/events","html_url":"https://github.com/substack/watchify/issues/144","id":58512635,"number":144,"title":"Won't detect changes","user":{"login":"jarah","id":447578,"avatar_url":"https://avatars.githubusercontent.com/u/447578?v=3","gravatar_id":"","url":"https://api.github.com/users/jarah","html_url":"https://github.com/jarah","followers_url":"https://api.github.com/users/jarah/followers","following_url":"https://api.github.com/users/jarah/following{/other_user}","gists_url":"https://api.github.com/users/jarah/gists{/gist_id}","starred_url":"https://api.github.com/users/jarah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jarah/subscriptions","organizations_url":"https://api.github.com/users/jarah/orgs","repos_url":"https://api.github.com/users/jarah/repos","events_url":"https://api.github.com/users/jarah/events{/privacy}","received_events_url":"https://api.github.com/users/jarah/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-22T18:32:34Z","updated_at":"2015-03-24T04:58:24Z","closed_at":null,"body":"Have installed with \r\n\r\n       npm install react browserify watchify 6to5ify --save-dev\r\n\r\nSaw the following in the log\r\n\r\n    npm WARN package.json react-playground@1.0.0 No repository field.\r\n    npm WARN deprecated 6to5-core@3.6.5: 6to5 is now 'babel': https://babeljs.io/blog/2015/02/15/not-born-to-die\r\n \r\n    > fsevents@0.3.5 install /Users/John/WebstormProjects/react-playground/node_modules/watchify/node_modules/chokidar/node_modules/fsevents\r\n    > node-gyp rebuild\r\n\r\n    child_process: customFds option is deprecated, use stdio instead.\r\n      SOLINK_MODULE(target) Release/.node\r\n      SOLINK_MODULE(target) Release/.node: Finished\r\n      CXX(target) Release/obj.target/fse/fsevents.o\r\n      SOLINK_MODULE(target) Release/fse.node\r\n      SOLINK_MODULE(target) Release/fse.node: Finished\r\n    watchify@2.4.0 node_modules/watchify\r\n    ├── through2@0.5.1 (xtend@3.0.0, readable-stream@1.0.33)\r\n    └── chokidar@0.12.6 (async-each@0.1.6, readdirp@1.3.0, fsevents@0.3.5)\r\n\r\n    browserify@9.0.3 node_modules/browserify\r\n    ├── https-browserify@0.0.0\r\n    ├── tty-browserify@0.0.0\r\n    ├── builtins@0.0.7\r\n    ├── constants-browserify@0.0.1\r\n    ├── process@0.10.0\r\n    ├── path-browserify@0.0.0\r\n    ├── isarray@0.0.1\r\n    ├── os-browserify@0.1.2\r\n    ├── inherits@2.0.1\r\n    ├── commondir@0.0.1\r\n    ├── string_decoder@0.10.31\r\n    ├── stream-browserify@1.0.0\r\n    ├── defined@0.0.0\r\n    ├── shell-quote@0.0.1\r\n    ├── has@1.0.0\r\n    ├── domain-browser@1.1.4\r\n    ├── shallow-copy@0.0.1\r\n    ├── xtend@3.0.0\r\n    ├── duplexer2@0.0.2\r\n    ├── deep-equal@1.0.0\r\n    ├── assert@1.3.0\r\n    ├── querystring-es3@0.2.1\r\n    ├── timers-browserify@1.3.0\r\n    ├── punycode@1.2.4\r\n    ├── through2@1.1.1 (xtend@4.0.0)\r\n    ├── util@0.10.3\r\n    ├── events@1.0.2\r\n    ├── vm-browserify@0.0.4 (indexof@0.0.1)\r\n    ├── parents@1.0.1 (path-platform@0.11.15)\r\n    ├── console-browserify@1.1.0 (date-now@0.1.4)\r\n    ├── concat-stream@1.4.7 (typedarray@0.0.6)\r\n    ├── url@0.10.2 (punycode@1.3.2)\r\n    ├── subarg@1.0.0 (minimist@1.1.0)\r\n    ├── http-browserify@1.7.0 (Base64@0.2.1)\r\n    ├── shasum@1.0.1 (sha.js@2.3.6, json-stable-stringify@0.0.1)\r\n    ├── readable-stream@1.1.13 (core-util-is@1.0.1)\r\n    ├── browser-resolve@1.7.2\r\n    ├── labeled-stream-splicer@1.0.2 (stream-splicer@1.3.1)\r\n    ├── resolve@1.1.5\r\n    ├── buffer@3.0.3 (ieee754@1.1.4, base64-js@0.0.8, is-array@1.0.1)\r\n    ├── glob@4.4.0 (once@1.3.1, inflight@1.0.4, minimatch@2.0.1)\r\n    ├── JSONStream@0.10.0 (through@2.3.6, jsonparse@0.0.5)\r\n    ├── crypto-browserify@3.9.12 (randombytes@2.0.1, create-hmac@1.1.3, pbkdf2-compat@3.0.2,             create-hash@1.1.0, diffie-hellman@3.0.1, create-ecdh@1.0.3, browserify-aes@1.0.0, public-encrypt@1.1.2, browserify-sign@2.8.0)\r\n    ├── deps-sort@1.3.5 (minimist@0.2.0, through2@0.5.1, JSONStream@0.8.4)\r\n    ├── browser-pack@4.0.0 (umd@3.0.0, through2@0.5.1, JSONStream@0.8.4, combine-source-map@0.3.0)\r\n    ├── insert-module-globals@6.2.0 (process@0.6.0, through@2.3.6, JSONStream@0.7.4, combine-source-map@0.3.0, lexical-scope@1.1.0)\r\n    ├── syntax-error@1.1.2 (acorn@0.9.0)\r\n    ├── browserify-zlib@0.1.4 (pako@0.2.5)\r\n    └── module-deps@3.7.2 (xtend@4.0.0, minimist@0.2.0, subarg@0.0.1, through2@0.4.2, stream-combiner2@1.0.2, JSONStream@0.7.4, detective@4.0.0)\r\n\r\n    6to5ify@4.1.1 node_modules/6to5ify\r\n    ├── through@2.3.4\r\n    ├── lodash@3.3.0\r\n    └── 6to5-core@3.6.5 (fs-readdir-recursive@0.1.0, supports-color@1.2.0, roadrunner@1.0.4, globals@5.1.0, js-tokenizer@1.3.3, private@0.1.6, commander@2.6.0, estraverse@1.9.1, esutils@1.1.6, debug@2.1.1, chalk@0.5.1, ast-types@0.6.14, output-file-sync@1.1.0, source-map@0.1.43, acorn-6to5@0.11.1-31, source-map-support@0.2.9, detect-indent@3.0.0, core-js@0.5.4,    regexpu@1.1.0, regenerator-6to5@0.8.10-1, lodash@3.0.0, useragent@2.1.5)\r\n    \r\n    react@0.12.2 node_modules/react\r\n    └── envify@3.2.0 (through@2.3.6, jstransform@7.0.0)\r\nIn my package.json I have added the following \r\n\r\n    \"scripts\": {\r\n        \"watch\": \"watchify -t 6to5ify ./src/app.jsx -o ./dist/bundle.js -v\"\r\n      }\r\n\r\nHave created a /dist folder,  however when I try\r\n\r\n    npm run watch\r\n\r\nIt writes the first time, but doesn't subsequently trigger another build when app.jsx is changed.   I'm using Webstorm to edit files.  I'm on an old Macbook Pro with Snow Leapord.\r\n\r\nAny ideas?"},"comment":{"url":"https://api.github.com/repos/substack/watchify/issues/comments/85338294","html_url":"https://github.com/substack/watchify/issues/144#issuecomment-85338294","issue_url":"https://api.github.com/repos/substack/watchify/issues/144","id":85338294,"user":{"login":"kendagriff","id":110935,"avatar_url":"https://avatars.githubusercontent.com/u/110935?v=3","gravatar_id":"","url":"https://api.github.com/users/kendagriff","html_url":"https://github.com/kendagriff","followers_url":"https://api.github.com/users/kendagriff/followers","following_url":"https://api.github.com/users/kendagriff/following{/other_user}","gists_url":"https://api.github.com/users/kendagriff/gists{/gist_id}","starred_url":"https://api.github.com/users/kendagriff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kendagriff/subscriptions","organizations_url":"https://api.github.com/users/kendagriff/orgs","repos_url":"https://api.github.com/users/kendagriff/repos","events_url":"https://api.github.com/users/kendagriff/events{/privacy}","received_events_url":"https://api.github.com/users/kendagriff/received_events","type":"User","site_admin":false},"created_at":"2015-03-24T04:58:24Z","updated_at":"2015-03-24T04:58:24Z","body":"+1\r\n\r\nHere's my situation:\r\n\r\n```\r\nfunction scripts() {\r\n  var bundler = watchify(browserify(\"./src/app.jsx\", assign({\r\n    extensions: [\".jsx\"]\r\n  }, watchify.args)));\r\n\r\n  bundler.transform(reactify);\r\n\r\n  function bundle() {\r\n    return bundler.bundle()\r\n      .pipe(source(\"app.js\"))\r\n      .on(\"error\", handleError)\r\n      .pipe(buffer())\r\n      .pipe(uglify())\r\n      .pipe(gulp.dest(\"./public/dist/\" + env + \"/js\"));\r\n  }\r\n\r\n  bundler.on(\"update\", bundle);\r\n  bundler.on(\"log\", gutil.log);\r\n\r\n  return bundle();\r\n}\r\n```\r\n\r\nRunning 2.6.0. Tried downgrading to a bunch of different watchify versions to no luck. Browserify version: 9.0.3. "}}