1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-21 17:34:25 +04:00

build demo

This commit is contained in:
codecalm
2020-02-26 16:34:37 +01:00
parent a1d3ad7258
commit c6e2a8b78d
4 changed files with 14 additions and 0 deletions

1
_config-demo.yml Normal file
View File

@@ -0,0 +1 @@
analytics: true

View File

@@ -7,11 +7,13 @@
"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-build js-compile-bundle js-libs-bundle images-copy-build assets-copy-build",
"build-demo": "BUNDLE=true npm-run-all clean-build html-build-demo css-build js-compile-bundle js-libs-bundle images-copy-build assets-copy-build",
"bundlesize": "bundlesize",
"browsersync": "node build/browsersync.js",
"images-copy-build": "cp -R img/* dist/img/",
"assets-copy-build": "mkdir -p demo/dist && cp -R dist/* demo/dist/ && mkdir -p demo/static && cp -R static/* demo/static/",
"html-build": "JEKYLL_ENV=production bundle exec jekyll build --destination demo",
"html-build-demo": "JEKYLL_ENV=production bundle exec jekyll build --destination demo --config _config.yml,_config-demo.yml",
"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 && mkdir dist/img",

View File

@@ -0,0 +1,8 @@
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-113467793-4"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-113467793-4');
</script>

View File

@@ -23,6 +23,9 @@
<link rel="icon" href="{{ site.base }}/favicon.ico" type="image/x-icon"/>
<link rel="shortcut icon" href="{{ site.base }}/favicon.ico" type="image/x-icon"/>
{% if site.analytics %}
{% include layout/analytics.html %}
{% endif %}
{% if page.description %}
<meta name="description" content="{{ page.description | escape }}"/>