mirror of
https://github.com/tabler/tabler.git
synced 2025-12-21 17:34:25 +04:00
build fix
This commit is contained in:
6
.gitignore
vendored
6
.gitignore
vendored
@@ -4,8 +4,8 @@ node_modules/
|
||||
/db.json
|
||||
.jekyll-metadata
|
||||
.jekyll-cache
|
||||
tmp/
|
||||
tmp-dist/
|
||||
/tmp/
|
||||
/tmp-dist/
|
||||
/yarn.lock
|
||||
.DS_Store
|
||||
/Gemfile.lock
|
||||
@@ -20,5 +20,3 @@ tmp-dist/
|
||||
/resources/
|
||||
/svg-tmp/
|
||||
/components/
|
||||
/dist/*
|
||||
/demo
|
||||
|
||||
12
package.json
12
package.json
@@ -6,19 +6,21 @@
|
||||
"scripts": {
|
||||
"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",
|
||||
"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",
|
||||
"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",
|
||||
"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-build": "rm -rf dist && mkdir dist && mkdir dist/css && mkdir dist/js",
|
||||
"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-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-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-main": "npm-run-all css-compile css-prefix",
|
||||
"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-html": "JEKYLL_ENV=development bundle exec jekyll build --watch",
|
||||
"watch-html-incremental": "JEKYLL_ENV=development bundle exec jekyll build --watch --incremental",
|
||||
"js": "npm-run-all --sequential js-compile js-libs",
|
||||
"js-libs": "rm -rf dist/libs && mkdir dist/libs && node build/copy-libs.js",
|
||||
"js-libs-bundle": "rm -rf dist/libs && mkdir dist/libs && node build/copy-libs.js",
|
||||
"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-bundle": "rollup --environment BUNDLE:true --config build/rollup.config.js --sourcemap",
|
||||
"svg-svgo": "svgo -f svg/fe --pretty && svgo -f svg/brand --pretty",
|
||||
|
||||
Reference in New Issue
Block a user