mirror of
https://github.com/tabler/tabler.git
synced 2025-12-22 01:44:25 +04:00
build improvements, jekyll.data.package.json
This commit is contained in:
@@ -8,7 +8,6 @@ keep_files:
|
|||||||
- dist
|
- dist
|
||||||
- static
|
- static
|
||||||
|
|
||||||
version: 1.0.0-alpha.7
|
|
||||||
title: Tabler
|
title: Tabler
|
||||||
description: Premium and Open Source dashboard template with responsive and high quality UI.
|
description: Premium and Open Source dashboard template with responsive and high quality UI.
|
||||||
homepage: https://tabler.io
|
homepage: https://tabler.io
|
||||||
|
|||||||
21
gulpfile.js
21
gulpfile.js
@@ -323,22 +323,7 @@ gulp.task('add-banner', () => {
|
|||||||
.pipe(gulp.dest(`${distDir}`))
|
.pipe(gulp.dest(`${distDir}`))
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
gulp.task('start', gulp.series('clean', 'sass', 'js', 'build-jekyll', gulp.parallel('watch-jekyll', 'watch', 'browser-sync')));
|
||||||
* Update version of Tabler in jekyll _config.yml and package.json
|
|
||||||
*/
|
|
||||||
gulp.task('update-version', () => {
|
|
||||||
const oldVersion = argv['latest-version'] || `${pkg.version}`,
|
|
||||||
newVersion = argv['new-version'] || `${pkg.version}`;
|
|
||||||
|
|
||||||
return gulp.src(['./_config.yml', './package.json'])
|
gulp.task('build', gulp.series('build-on', 'clean', 'sass', 'js', 'copy-images', 'copy-libs', 'add-banner'));
|
||||||
.pipe(replace(/version: .*/, `version: ${newVersion}`))
|
gulp.task('build-demo', gulp.series('build-on', 'build-jekyll', 'copy-static', 'copy-dist'));
|
||||||
.pipe(replace('"version": "' + oldVersion + '"', `"version": "${newVersion}"`))
|
|
||||||
.pipe(replace('"version_short": "' + oldVersion + '"', `"version_short": "${newVersion}"`))
|
|
||||||
.pipe(gulp.dest('.'));
|
|
||||||
});
|
|
||||||
|
|
||||||
gulp.task('start', gulp.series('clean', 'sass', 'build-jekyll', /*'js',*/ gulp.parallel('watch-jekyll', 'watch', 'browser-sync')));
|
|
||||||
|
|
||||||
gulp.task('prepare-demo', gulp.series('build-jekyll', 'copy-static', 'copy-dist'));
|
|
||||||
|
|
||||||
gulp.task('build', gulp.series('build-on', 'update-version', 'clean', 'sass'/*, 'js'*/, 'copy-images', 'copy-libs', 'add-banner', 'prepare-demo'));
|
|
||||||
|
|||||||
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "tabler",
|
"name": "tabler",
|
||||||
"version": "1.0.0-alpha.7",
|
"version": "1.0.0-alpha.8",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
{
|
{
|
||||||
"name": "tabler",
|
"name": "tabler",
|
||||||
"version": "1.0.0-alpha.7",
|
"version": "1.0.0-alpha.11",
|
||||||
"description": "Premium and Open Source dashboard template with responsive and high quality UI.",
|
"description": "Premium and Open Source dashboard template with responsive and high quality UI.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "gulp start",
|
"start": "gulp start",
|
||||||
"build": "gulp build",
|
"build": "gulp build",
|
||||||
"svg-optimize": "svgo -f svg/brand --pretty",
|
"svg-optimize": "svgo -f svg/brand --pretty",
|
||||||
"unused-files": "node build/unused-files.js",
|
"unused-files": "node build/unused-files.js",
|
||||||
"release": "release-it --no-npm.publish"
|
"release": "release-it"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@@ -95,7 +95,7 @@
|
|||||||
},
|
},
|
||||||
"release-it": {
|
"release-it": {
|
||||||
"hooks": {
|
"hooks": {
|
||||||
"after:bump": "gulp build --latest-version ${latestVersion} --new-version ${version}",
|
"after:bump": "gulp build --latest-version ${latestVersion} --new-version ${version} && gulp build-demo",
|
||||||
"after:release": "echo Successfully released ${name} v${latestVersion} to ${repo.repository}."
|
"after:release": "echo Successfully released ${name} v${latestVersion} to ${repo.repository}."
|
||||||
},
|
},
|
||||||
"git": {
|
"git": {
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
alert('ok');
|
alert('ok2');
|
||||||
1
src/pages/_data/package.json
Symbolic link
1
src/pages/_data/package.json
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../../../package.json
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<!--
|
<!--
|
||||||
* Tabler - {{ site.description }}
|
* Tabler - {{ site.description }}
|
||||||
* @version {{ site.version }}
|
* @version {{ site.data.package.version }}
|
||||||
* @link {{ site.homepage }}
|
* @link {{ site.homepage }}
|
||||||
* Copyright 2018-{{ 'now' | date: "%Y" }} The Tabler Authors
|
* Copyright 2018-{{ 'now' | date: "%Y" }} The Tabler Authors
|
||||||
* Copyright 2018-{{ 'now' | date: "%Y" }} codecalm.net Paweł Kuna
|
* Copyright 2018-{{ 'now' | date: "%Y" }} codecalm.net Paweł Kuna
|
||||||
|
|||||||
Reference in New Issue
Block a user