Merge pull request #108 from JsSucks/sass

Sass
This commit is contained in:
Alexei Stukov 2018-02-11 16:06:32 +02:00 committed by GitHub
commit 49103b1c49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 52 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -23,7 +23,8 @@
"babel-preset-react": "^6.24.1",
"codemirror": "^5.23.0",
"css-loader": "^0.28.9",
"electron": "^1.7.10",
"electron": "^1.6.15",
"electron-rebuild": "^1.7.3",
"eslint": "^4.16.0",
"eslint-plugin-vue": "^4.2.0",
"gulp": "^3.9.1",

View File

@ -0,0 +1,50 @@
@echo off
set "ELECTRON=1.6.15"
set "PLATFORM=win32"
set "ARCH=ia32"
set "VER=53"
set "VENDOR_PATH=..\node_modules\node-sass\vendor"
set "BUILD_PATH=..\node_modules\node-sass\build\Release\binding.node"
echo Building %PLATFORM%-%ARCH% bindings
call ../node_modules/.bin/electron-rebuild -v=%ELECTRON% -a=%ARCH% -m ../node_modules/node-sass
if exist %VENDOR_PATH%\%PLATFORM%-%ARCH%-%VER%\binding.node (
echo Deleting old %VENDOR_PATH%\%PLATFORM%-%ARCH%-%VER%\binding.node
del /S /Q %VENDOR_PATH%\%PLATFORM%-%ARCH%-%VER%\*
)
if not exist %VENDOR_PATH%\%PLATFORM%-%ARCH%-%VER% (
echo Dir %VENDOR_PATH%\%PLATFORM%-%ARCH%-%VER% does not exist, creating.
mkdir %VENDOR_PATH%\%PLATFORM%-%ARCH%-%VER%
)
if not exist %BUILD_PATH% (
echo %BUILD_PATH% Does not exist
) else (
echo Copying %BUILD_PATH% to %VENDOR_PATH%\%PLATFORM%-%ARCH%-%VER%
copy %BUILD_PATH% %VENDOR_PATH%\%PLATFORM%-%ARCH%-%VER%
)
set "ARCH=x64"
echo Building %PLATFORM%-%ARCH% bindings
call ../node_modules/.bin/electron-rebuild -v=%ELECTRON% -a=%ARCH% -m ../node_modules/node-sass
if exist %VENDOR_PATH%\%PLATFORM%-%ARCH%-%VER%\binding.node (
echo Deleting old %VENDOR_PATH%\%PLATFORM%-%ARCH%-%VER%\binding.node
del /S /Q %VENDOR_PATH%\%PLATFORM%-%ARCH%-%VER%\*
)
if not exist %VENDOR_PATH%\%PLATFORM%-%ARCH%-%VER% (
echo Dir %VENDOR_PATH%\%PLATFORM%-%ARCH%-%VER% does not exist, creating.
mkdir %VENDOR_PATH%\%PLATFORM%-%ARCH%-%VER%
)
if not exist %BUILD_PATH% (
echo %BUILD_PATH% Does not exist
) else (
echo Copying %BUILD_PATH% to %VENDOR_PATH%\%PLATFORM%-%ARCH%-%VER%
copy %BUILD_PATH% %VENDOR_PATH%\%PLATFORM%-%ARCH%-%VER%
)