Closed 1j01 closed 11 months ago
Yarn is recommended as it should pull in the correct version of all of the libraries. The linebreak issue is my fault; I haven't had anyone develop BrowserFS on Windows, so it hasn't been a problem until now. It looks like NPM is pulling in a newer version of Dropbox.js, which has different TypeScript types and causes the compilation failure.
Regarding scripts, I assume you mean NPM scripts? There's an npm test
that builds BrowserFS and runs the unit tests, and npm run dist
that builds a distributable version of BrowserFS. Those are the main two scripts you should be using.
There are so many scripts to avoid introducing something like Gulp to the project. I use npm-run-all
to build flexible build pipelines out of individual NPM scripts, which can execute in parallel or serially. In general, scripts with a colon (:) in the name are internal scripts that you don't invoke directly.
Regarding scripts, I assume you mean NPM scripts?
Yes, thanks!
Hm, on my machine the tests also fail because of line endings, so I definitely need that .gitattributes
file
I guess it'll be easier for me to add it since I can test the result of adding it locally...
Yarn is recommended as it should pull in the correct version of all of the libraries
It seems like a rather weak recommendation; the README says "Run yarn install
(or npm install
)"
Also it mentions NPM as a prerequisite, and not Yarn
So since I'm used to npm and I know I have it up to date, I naturally go for npm, until I realize things aren't working and there's a yarn.lock and no package-lock.json
Good points; the documentation should be updated. I won't close this until I fix the documentation or add a package-lock.json
as well.
And yes, please add .gitattributes
. We test on appveyor (Windows), but I guess that environment sidesteps the issue somehow.
Installed with
npm
, I get:Installed with
yarn
I get tens of thousands of lines ofThere should be a
.gitattributes
file, so that files are checked out with line breaks as you want them.(I did eventually find the
.tslint
file to disablelinebreak-style
, and compile; and don't worry, I won't introduce CRLF into the repository, I have git configured withautocrlf
)Also, there are a lot of scripts; which ones should I be using?