Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Introduce SASS_BINARY_SITE environment and refactor API tests #901

Merged
merged 3 commits into from
Apr 28, 2015

Conversation

xzyfer
Copy link
Contributor

@xzyfer xzyfer commented Apr 28, 2015

This PR implements with #847 with a minor clean up, and merge conflicts resolved.

Provide ability to locally mirror node-sass binaries for various versions and platforms.

SASS_DIST_SITE needs to be an URL pointing to a collection of files organized like the Github repository.

If SASS_DIST_SITE is set to

http://myhost:8080/local/node-sass-bin

then

http://myhost:8080/local/node-sass-bin/v3.0.0-beta.4/freebsd-x64-14_binding.node

should point to the FreeBSD 64 bit binary for node 0.12.0

Fixes #775.


Breaking changes

This PR removes the existing binaryUrl config in favour the more useful binarySite config.

/cc @saper

Provide ability to locally mirror node-sass
binaries for various versions and platforms.

SASS_BINARY_SITE needs to be an URL pointing to
a collection of files organized like the Github
repository.

If SASS_BINARY_SITE is set to

 http://myhost:8080/local/node-sass-bin/

then

 http://myhost:8080/local/node-sass-bin/v3.0.0-beta.5/freebsd-x64-14_binding.node

should point to the FreeBSD 64 bit binary for node 0.12.0

The URL can be also specified as the --sass-binary-site
commandline option or in the package.json:

 "nodeSassConfig": {
   "binarySite": <url>
 }

Remove --sass-binary-url and friends.

Also change priority and use package.json defaults
last, after command line arguments and the environment.
Separate testing of all configuration
and runtime paramenters into a separate file.

Reduce bolierplate code and
use startup/teardown to restore
test context.

Implement additional single-parameter
tests for configuration variable.
@xzyfer xzyfer force-pushed the feat/install/sass-binary-site branch from 3b644d8 to 03a8d93 Compare April 28, 2015 14:38
@saper
Copy link
Member

saper commented Apr 28, 2015

Thank you. This works well for me. If package.json is broken we get TypeError: Cannot read property 'binarySite' of undefined which also okay.

Tested with a local http repository.

xzyfer added a commit that referenced this pull request Apr 28, 2015
Introduce SASS_BINARY_SITE environment and refactor API tests
@xzyfer xzyfer merged commit b50533a into sass:master Apr 28, 2015
@xzyfer xzyfer deleted the feat/install/sass-binary-site branch April 28, 2015 22:37
jiongle1 pushed a commit to scantist-ossops-m2/node-sass that referenced this pull request Apr 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Impossible to mirror the libsass binaries
2 participants