1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-22 01:44:25 +04:00

build fix

This commit is contained in:
codecalm
2019-12-21 00:40:06 +01:00
parent d5dbac0aff
commit 9ef656afde
2 changed files with 8 additions and 10 deletions

6
.gitignore vendored
View File

@@ -4,8 +4,8 @@ node_modules/
/db.json /db.json
.jekyll-metadata .jekyll-metadata
.jekyll-cache .jekyll-cache
tmp/ /tmp/
tmp-dist/ /tmp-dist/
/yarn.lock /yarn.lock
.DS_Store .DS_Store
/Gemfile.lock /Gemfile.lock
@@ -20,5 +20,3 @@ tmp-dist/
/resources/ /resources/
/svg-tmp/ /svg-tmp/
/components/ /components/
/dist/*
/demo

View File

@@ -6,19 +6,21 @@
"scripts": { "scripts": {
"start": "npm-run-all clean css-main js-compile-standalone --parallel browsersync watch", "start": "npm-run-all clean css-main js-compile-standalone --parallel browsersync watch",
"start-incremental": "npm-run-all clean css-main js-compile-standalone --parallel browsersync watch-incremental", "start-incremental": "npm-run-all clean css-main js-compile-standalone --parallel browsersync watch-incremental",
"build": "BUNDLE=true npm-run-all clean-build html-build css js assets-copy", "build": "BUNDLE=true npm-run-all clean-build html-build css-build js-compile-bundle js-libs-bundle assets-copy-build",
"bundlesize": "bundlesize", "bundlesize": "bundlesize",
"browsersync": "node build/browsersync.js", "browsersync": "node build/browsersync.js",
"assets-copy": "mkdir -p demo/dist && cp -R dist/* demo/dist/ && cp -R static/* demo/", "assets-copy-build": "mkdir -p demo/dist && cp -R dist/* demo/dist/ && cp -R static/* demo/",
"html-build": "JEKYLL_ENV=production bundle exec jekyll build --destination demo", "html-build": "JEKYLL_ENV=production bundle exec jekyll build --destination demo",
"lint": "npm-run-all --parallel js-lint css-lint", "lint": "npm-run-all --parallel js-lint css-lint",
"clean": "rm -rf tmp-dist && mkdir tmp-dist && mkdir tmp-dist/css && mkdir tmp-dist/js", "clean": "rm -rf tmp-dist && mkdir tmp-dist && mkdir tmp-dist/css && mkdir tmp-dist/js",
"clean-build": "rm -rf dist && mkdir dist && mkdir dist/css && mkdir dist/js", "clean-build": "rm -rf dist && mkdir dist && mkdir dist/css && mkdir dist/js",
"css": "npm-run-all css-compile css-prefix css-minify", "css": "npm-run-all css-compile css-prefix css-minify",
"css-build": "npm-run-all css-compile css-prefix-build css-minify-build",
"css-compile": "node build/scss-compile.js", "css-compile": "node build/scss-compile.js",
"css-prefix": "postcss --config build/postcss.config.js --replace \"tmp-dist/css/*.css\" \"!tmp-dist/css/*.min.css\"", "css-prefix": "postcss --config build/postcss.config.js --replace \"tmp-dist/css/*.css\" \"!tmp-dist/css/*.min.css\"",
"css-prefix-build": "postcss --config build/postcss.config.js --replace \"dist/css/*.css\" \"!dist/css/*.min.css\"", "css-prefix-build": "postcss --config build/postcss.config.js --replace \"dist/css/*.css\" \"!dist/css/*.min.css\"",
"css-minify": "for i in dist/css/tabler*.css;do echo $i; N=`echo $i | sed -e 's/^dist\\/css\\///g' | sed -e 's/\\\\.css//g'`; echo $N; cleancss --level 1 --format breakWith=lf --source-map --source-map-inline-sources --output dist/css/$N.min.css dist/css/$N.css; done", "css-minify": "for i in tmp-dist/css/tabler*.css;do echo $i; N=`echo $i | sed -e 's/^dist\\/css\\///g' | sed -e 's/\\\\.css//g'`; echo $N; cleancss --level 1 --format breakWith=lf --source-map --source-map-inline-sources --output tmp-dist/css/$N.min.css tmp-dist/css/$N.css; done",
"css-minify-build": "for i in dist/css/tabler*.css;do echo $i; N=`echo $i | sed -e 's/^dist\\/css\\///g' | sed -e 's/\\\\.css//g'`; echo $N; cleancss --level 1 --format breakWith=lf --source-map --source-map-inline-sources --output dist/css/$N.min.css dist/css/$N.css; done",
"css-lint": "stylelint \"scss/**/*.scss\" --cache --cache-location .cache/.stylelintcache", "css-lint": "stylelint \"scss/**/*.scss\" --cache --cache-location .cache/.stylelintcache",
"css-main": "npm-run-all css-compile css-prefix", "css-main": "npm-run-all css-compile css-prefix",
"css-main-build": "npm-run-all css-lint css-compile css-prefix-build css-minify", "css-main-build": "npm-run-all css-lint css-compile css-prefix-build css-minify",
@@ -28,10 +30,8 @@
"watch-js": "nodemon --watch js/ --ext js --exec \"npm run js-compile-standalone\"", "watch-js": "nodemon --watch js/ --ext js --exec \"npm run js-compile-standalone\"",
"watch-html": "JEKYLL_ENV=development bundle exec jekyll build --watch", "watch-html": "JEKYLL_ENV=development bundle exec jekyll build --watch",
"watch-html-incremental": "JEKYLL_ENV=development bundle exec jekyll build --watch --incremental", "watch-html-incremental": "JEKYLL_ENV=development bundle exec jekyll build --watch --incremental",
"js": "npm-run-all --sequential js-compile js-libs", "js-libs-bundle": "rm -rf dist/libs && mkdir dist/libs && node build/copy-libs.js",
"js-libs": "rm -rf dist/libs && mkdir dist/libs && node build/copy-libs.js",
"js-lint": "eslint --cache --cache-location .cache/.eslintcache js build/", "js-lint": "eslint --cache --cache-location .cache/.eslintcache js build/",
"js-compile": "npm-run-all --sequential js-compile-*",
"js-compile-standalone": "rollup --environment BUNDLE:false --config build/rollup.config.js --sourcemap", "js-compile-standalone": "rollup --environment BUNDLE:false --config build/rollup.config.js --sourcemap",
"js-compile-bundle": "rollup --environment BUNDLE:true --config build/rollup.config.js --sourcemap", "js-compile-bundle": "rollup --environment BUNDLE:true --config build/rollup.config.js --sourcemap",
"svg-svgo": "svgo -f svg/fe --pretty && svgo -f svg/brand --pretty", "svg-svgo": "svgo -f svg/fe --pretty && svgo -f svg/brand --pretty",