From 1e0a825b5eeb5b04cd5c49d64c71bc5a238e48f0 Mon Sep 17 00:00:00 2001 From: Jason Quense Date: Sat, 23 Apr 2016 14:31:03 -0400 Subject: [PATCH] [added] SCSS versions of styles! no idea if they work yet! --- package.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index cc4abed49..057b13d93 100644 --- a/package.json +++ b/package.json @@ -30,8 +30,10 @@ "test:all": "mocha -R spec ./test/server.js && karma start karma.conf.js --single-run=true", "tdd": "karma start", "lint": "eslint src test --ext .jsx --ext .js", + "to-sass": "less2sass lib/less && cpy lib/less/*.scss lib/scss && rimraf lib/less/*.scss", "less": "lessc -x src/less/react-widgets.less dist/css/react-widgets.css", - "assets:lib": "cpy src/img/* lib/img/ && cpy src/fonts/* lib/fonts/ && cpy src/less/* lib/less/", + "styles": "cpy src/less/* lib/less/ && npm run to-sass", + "assets:lib": "cpy src/img/* lib/img/ && cpy src/fonts/* lib/fonts/ && npm run styles", "assets:dist": "cpy src/img/* dist/img/ && cpy src/fonts/* dist/fonts/", "clean:lib": "rimraf ./lib/*", "clean:dist": "rimraf ./dist/*", @@ -40,7 +42,7 @@ "compile:docs": "webpack --config build/docs.config.js --production", "compile:dist": "webpack --config build/browser.config.js", "compile:locale": "webpack --config build/localizers.config.js", - "build:lib": "npm run clean:lib && npm run compile:lib && npm run assets:lib", + "build:lib": "npm run clean:lib && npm run compile:lib && npm run styles && npm run assets:lib", "build:docs": "npm run clean:docs && npm run compile:docs", "build:dist": "npm run clean:dist && npm run compile:dist & npm run compile:locale && npm run less && npm run assets:dist", "build": "npm run build:lib && npm run build:dist", @@ -108,6 +110,7 @@ "karma-webpack": "^1.7.0", "less": "^2.5.1", "less-loader": "^2.2.0", + "less2sass": "^1.0.2", "marked": "^0.3.5", "mocha": "^2.3.4", "moment": "^2.10.6",