Git Product home page Git Product logo

Comments (5)

wilzbach avatar wilzbach commented on August 21, 2024
  1. When creating a basic package, I didn't get a default src folder inside my package directory. Is it same as lib folder where <module-name.js> resides?

Yes - see biojs/biojs#100

  1. I have a directory called unit inside test, so the index.js file should be inside test or unit? Will the location of tests and the file name containing tests matter?

Nope it is just because there can be unit test and phantom unit tests (=need a browser).
There shouldn't be the need for a index.js in the test folder (as mocha uses globa *.js), however for phantomjs tests we use a index.js, as they are moderately slow and one might to select which tests get executed.

  1. It would be good to mentions the location inside the package directory where npm test command should be run after the steps in the tutorial.

Why? NPM commands should be run in the same folder and if you are in a subfolder it will default back to the next, upper folder with a package.json. However I am happy to accept any pull request.

  1. When I created package and followed the tutorial as it is along with the code: I get error as below:
  • Never run an npm command (execpt for global installation with sudo)
  • which version of slush did you use?
  • Did you modify anything?
  • the error message states that inside your unit test a function test is called - however this function test is not defined

from edu.

wilzbach avatar wilzbach commented on August 21, 2024

And also, regarding the naming conventions, this should also be linked to issue #20 ?

Which naming conventions? Are you referring to src vs. lib. That is really not important - it should just be consistent over the tutorials ...

from edu.

DevasenaInupakutika avatar DevasenaInupakutika commented on August 21, 2024

By naming conventions, I mean .js files, currently the file names are <biojs-module-name>.js instead of index.js.

Slush version: slush 1.0.1

What's the version that's recommended?

from edu.

wilzbach avatar wilzbach commented on August 21, 2024

The version is slush is not really important - however the version of slush-biojs is.

AFAIK since version 0.5 of slush-biojs the created dummy file is named lib/index.js.

from edu.

wilzbach avatar wilzbach commented on August 21, 2024

I close this - please reopen if this is still an open issue ;-)

from edu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.