Skip to content

Commit

Permalink
Merge pull request #15 from goliney/move-sass-to-dev-dep
Browse files Browse the repository at this point in the history
fix(sass): Move node-sass dep into dev dep
  • Loading branch information
goliney authored Feb 19, 2017
2 parents cdd70e6 + 6593fff commit 32fa50c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 16 deletions.
12 changes: 0 additions & 12 deletions lib/coderoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const _ = require('lodash');
const handlebars = require('handlebars');
const commonPathPrefix = require('common-path-prefix');
const normalizePath = require('normalize-path');
const sass = require('node-sass');

const settings = require('./settings');
const Room = require('./room.class.js');
Expand All @@ -27,7 +26,6 @@ module.exports = {

root = planRooms(source);

compileSCSS();
copyStatic();
copyMedia();

Expand Down Expand Up @@ -68,16 +66,6 @@ function planRooms(sourceDir, parent) {
return room;
}

function compileSCSS() {
let css_dir = path.resolve(__dirname, settings.paths.static, 'css');
let result = sass.renderSync({
file: path.resolve(__dirname, settings.sass_entry),
outputStyle: 'compressed',
sourceMap: true
});
fs.writeFileSync(path.join(css_dir, 'base.css'), result.css);
}

function copyStatic() {
fs.copySync(
path.resolve(__dirname, settings.paths.static),
Expand Down
1 change: 0 additions & 1 deletion lib/templates/default/static/css/base.css

This file was deleted.

1 change: 0 additions & 1 deletion lib/templates/default/static/css/base.css.map

This file was deleted.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"glob": "7.0.5",
"handlebars": "4.0.5",
"lodash": "4.14.2",
"node-sass": "3.8.0",
"normalize-path": "2.0.1"
},
"devDependencies": {
Expand All @@ -39,13 +38,15 @@
"istanbul": "^1.0.0-alpha",
"mocha": "2.5.3",
"mock-fs": "3.12.0",
"node-sass": "3.8.0",
"semantic-release": "4.3.5"
},
"files": [
"dist"
],
"scripts": {
"build": "./node_modules/.bin/babel lib -d dist --copy-files",
"build": "./node_modules/.bin/babel lib -d dist --copy-files && npm run sass",
"sass": "./node_modules/.bin/node-sass lib/templates/default/scss/base.scss dist/templates/default/static/css/base.css --source-map=true",
"commit": "git-cz",
"test": "./node_modules/.bin/babel-node ./node_modules/istanbul/lib/cli.js cover ./node_modules/.bin/_mocha -- -R spec",
"test:watch": "mocha ./test/*.spec.js -w --compilers js:babel-register",
Expand Down

0 comments on commit 32fa50c

Please sign in to comment.