Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows build #589

Closed
SheetJSDev opened this issue Mar 11, 2017 · 4 comments
Closed

Windows build #589

SheetJSDev opened this issue Mar 11, 2017 · 4 comments

Comments

@SheetJSDev
Copy link
Contributor

Simplify the build and test process to enable a Windows development workflow

see SheetJS/js-harb#7 h/t @simon-p-r

@simon-p-r
Copy link

Happy to help with any testing!

@SheetJSDev
Copy link
Contributor Author

@simon-p-r starting from a fresh windows setup we were able to build the source and run the tests!

https://github.com/sheetjs/js-xlsx#windows is the relevant part of the documentation.

Configuration Steps:

  1. git clone https://github.com/SheetJS/js-xlsx/
  2. download the test files snapshot https://github.com/SheetJS/test_files/releases/download/20170409/test_files.zip
  3. extract that to the test_files subdirectory in the source tree
  4. npm install -g mocha and npm install

After making changes to the bits files, make.cmd will rebuild xlsx.js and mocha -t 30000 will run tests.

@simon-p-r
Copy link

I will have a go and let you know if there are any problems

@reviewher
Copy link
Contributor

@simon-p-r updated the make.cmd script to streamline the process. Tested on an old Surface Pro 3 running windows 8.1 and everything seemed to work! Since we aren't using any powershell features it should work back to Windows 7.

Preparation:

  • Install node (6.10.2 in this test but other versions work too)
  • Install git windows (2.12.2.2 in this test), use default options (core.autocrlf = true)
  • Download the test files release from the test_files repo

Commands:

  • make init to install dependencies and dev modules
  • make will build the source
  • make lint will run the linter
  • make misc will run a small set of tests
  • make test will run the full tests
  • make book will update the README from the docbits.

RimaCiklum pushed a commit to Folcon/js-xlsx that referenced this issue Aug 19, 2020
RimaCiklum pushed a commit to Folcon/js-xlsx that referenced this issue Aug 20, 2020
run `make help` for more info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants