Use official SASS transpiled partials instead

Sage works better without assuming PostCSS is part of the build process. Previously included version implements PostCSS.

See: github.com/tachyons-css/tachyons-sass
This commit is contained in:
Dave Kiss
2017-04-01 19:52:16 -07:00
committed by GitHub
parent b1859ccb27
commit cd8f306979

View File

@@ -69,8 +69,8 @@ class PostCreateProject
}
break;
case 2:
file_put_contents('package.json', preg_replace("/{$default_framework_pattern}/", '"tachyons": "^4.6.2"', file_get_contents('package.json')));
file_put_contents('assets/styles/main.scss', str_replace('@import "~bootstrap/scss/bootstrap";' . "\n", '@import "~tachyons/src/tachyons";' . "\n", file_get_contents('assets/styles/main.scss')));
file_put_contents('package.json', preg_replace("/{$default_framework_pattern}/", '"tachyons-sass": "^4.7.1"', file_get_contents('package.json')));
file_put_contents('assets/styles/main.scss', str_replace('@import "~bootstrap/scss/bootstrap";' . "\n", '@import "~tachyons-sass/tachyons";' . "\n", file_get_contents('assets/styles/main.scss')));
file_put_contents('assets/scripts/main.js', str_replace("import 'bootstrap';\n", '', file_get_contents('assets/scripts/main.js')));
foreach($files_to_clear as $file) {
file_put_contents($file, '');