Closed JoshuaMorris closed 8 years ago
Any chance this will fix will be published to npm?
I was not sure if the test should be corrected to look for index.html or if the instructions should be changed to tell the user to make a index.js. the next task uses index.html so i imagine its more of a test issue.
I think you can modify the file in your local machine like this commit.
https://github.com/maxogden/elementary-electron/commit/f49b4faf0e387b9789d13c4e57407aa9eb667da3
problem.verify = function (args, cb) {
checkAll([
fsCheck(path.join('.', 'index.html')),
fsCheck(path.join('.', 'app.js'))
], '{{exercise.hello_world.success}}', '{{exercise.hello_world.fail}}', cb)
}
The fix by @sparkleholic worked for me. Windows 7 32-bit, Node 6.2.0, npm 3.10.5, elementary-electron 1.3.5
Line 12 of
<global npm path>\node_modules\elementary-electron\exercises\hello_world\exercise.js
Could you push this fix to npm please?
Please push this fix to npm 👍
I can confirm that the latest npm package is not working, and is in fact different from what's on master right now.
/usr/local/lib/node_modules/elementary-electron master
❯ cat /usr/local/lib/node_modules/elementary-electron/package.json | json version
1.3.5
/usr/local/lib/node_modules/elementary-electron master
❯ cat /usr/local/lib/node_modules/elementary-electron/exercises/hello_world/exercise.js | grep fsCheck
var fsCheck = require('../../lib/fsCheck.js')
fsCheck(path.join('.', 'index.js')),
fsCheck(path.join('.', 'app.js'))
I now have publish access to the npm package, and intend to get this update on npm right away. However I would like to land #21 first, to get the "tests" passing. It would be nice to make a habit of running tests before all releases. We can enforce that with CI (Travis?) andtools like np.
$ np patch
✔ Prerequisite check
✔ Git
✔ Cleanup
✔ Installing dependencies
✔ Running tests
✔ Bumping version
✔ Publishing package
✔ Pushing tags
elementary-electron 1.3.6 published
in the instructions it states to create a index.html
running verification fails looking for a index.js