szwacz / nw-boilerplate

Boilerplate application for NW.js
184 stars 34 forks source link

Update the dependencies #21

Open Lynorics opened 8 years ago

Lynorics commented 8 years ago

In order to suppoprt newer node and nw.js versions, an update of the dependency versions should be done. I have struggled some time to fight upcoming errors. ;-)

"devDependencies": { "fs-jetpack": "^0.7.0", "gulp": "^3.8.8", "gulp-babel": "^6.1.2", "babel-preset-es2015": "^6.6.0", "gulp-less": "^3.0.5", "gulp-sourcemaps": "^1.5.2", "gulp-util": "^3.0.1", "nw": "^0.12.3", "q": "^1.0.1", "tree-kill": "^1.0.0", "yargs": "^4.2.0" }, "optionalDependencies": { "appdmg": "^0.3.6" }, Furthermore, you have to change the call to babel in "taks/build.js" to: .pipe(babel({ presets: ['es2015'] })) The old "module" configuration is no more available.

Additionally, I had to modify the tests. The used imports must be expandd by the relative path "hello_world". But I am unsure if it is a side effect of the version updates---or that I am just to stupid to execute "npm test"... ;-)

szwacz commented 8 years ago

Thank you for your feedback. I won't hide the fact that this project is now in limbo state, because nw.js quite clearly lost the ground for electron. NW.js v0.13 entered release candidate state so I'll look into it in incoming weeks, see what new it brings, and decide whether to maintain or not to maintain this repo.

fritx commented 8 years ago

If you are using nw 0.12.3 and above, I probably want to use this module instead: https://github.com/fritx/babel-preset-nw12