mirror of
https://github.com/tabler/tabler.git
synced 2025-12-22 18:04:26 +04:00
version update
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
source: pages
|
source: pages
|
||||||
destination: tmp
|
destination: tmp
|
||||||
|
|
||||||
version: 1.0.0-alpha.3
|
version: 1.0.0-alpha.4
|
||||||
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.
|
||||||
github_url: https://github.com/tabler/tabler
|
github_url: https://github.com/tabler/tabler
|
||||||
|
|||||||
@@ -1,10 +1,3 @@
|
|||||||
/*
|
|
||||||
* Tabler (v0.9.0): browsersync.js
|
|
||||||
* Copyright 2018-2019 The Tabler Authors
|
|
||||||
* Copyright 2018-2019 codecalm
|
|
||||||
* Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
|
|
||||||
*/
|
|
||||||
|
|
||||||
const bs = require('browser-sync').create();
|
const bs = require('browser-sync').create();
|
||||||
|
|
||||||
bs.init({
|
bs.init({
|
||||||
|
|||||||
107
build/change-version.js
Executable file
107
build/change-version.js
Executable file
@@ -0,0 +1,107 @@
|
|||||||
|
#!/usr/bin/env node
|
||||||
|
|
||||||
|
const fs = require('fs');
|
||||||
|
const path = require('path');
|
||||||
|
const sh = require('shelljs');
|
||||||
|
|
||||||
|
sh.config.fatal = true;
|
||||||
|
|
||||||
|
// Blame TC39... https://github.com/benjamingr/RegExp.escape/issues/37
|
||||||
|
function regExpQuote(string) {
|
||||||
|
return string.replace(/[$()*+-.?[\\\]^{|}]/g, '\\$&')
|
||||||
|
}
|
||||||
|
|
||||||
|
function regExpQuoteReplacement(string) {
|
||||||
|
return string.replace(/\$/g, '$$')
|
||||||
|
}
|
||||||
|
|
||||||
|
const DRY_RUN = false;
|
||||||
|
|
||||||
|
function walkAsync(directory, excludedDirectories, fileCallback, errback) {
|
||||||
|
if (excludedDirectories.has(path.parse(directory).base)) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
fs.readdir(directory, (err, names) => {
|
||||||
|
if (err) {
|
||||||
|
errback(err);
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
names.forEach(name => {
|
||||||
|
const filepath = path.join(directory, name);
|
||||||
|
fs.lstat(filepath, (err, stats) => {
|
||||||
|
if (err) {
|
||||||
|
process.nextTick(errback, err);
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
if (stats.isDirectory()) {
|
||||||
|
process.nextTick(walkAsync, filepath, excludedDirectories, fileCallback, errback)
|
||||||
|
} else if (stats.isFile()) {
|
||||||
|
process.nextTick(fileCallback, filepath)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
function replaceRecursively(directory, excludedDirectories, allowedExtensions, original, replacement) {
|
||||||
|
original = new RegExp(regExpQuote(original), 'g');
|
||||||
|
replacement = regExpQuoteReplacement(replacement);
|
||||||
|
const updateFile = DRY_RUN ?
|
||||||
|
filepath => {
|
||||||
|
if (allowedExtensions.has(path.parse(filepath).ext)) {
|
||||||
|
console.log(`FILE: ${filepath}`)
|
||||||
|
} else {
|
||||||
|
console.log(`EXCLUDED:${filepath}`)
|
||||||
|
}
|
||||||
|
} :
|
||||||
|
filepath => {
|
||||||
|
if (allowedExtensions.has(path.parse(filepath).ext)) {
|
||||||
|
sh.sed('-i', original, replacement, filepath)
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
walkAsync(directory, excludedDirectories, updateFile, err => {
|
||||||
|
console.error('ERROR while traversing directory!:');
|
||||||
|
console.error(err);
|
||||||
|
process.exit(1)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
function main(args) {
|
||||||
|
if (args.length !== 2) {
|
||||||
|
console.error('USAGE: change-version old_version new_version');
|
||||||
|
console.error('Got arguments:', args);
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
const oldVersion = args[0];
|
||||||
|
const newVersion = args[1];
|
||||||
|
const EXCLUDED_DIRS = new Set([
|
||||||
|
'.git',
|
||||||
|
'_gh_pages',
|
||||||
|
'node_modules',
|
||||||
|
'vendor',
|
||||||
|
'demo',
|
||||||
|
'dist'
|
||||||
|
]);
|
||||||
|
|
||||||
|
const INCLUDED_EXTENSIONS = new Set([
|
||||||
|
// This extension whitelist is how we avoid modifying binary files
|
||||||
|
'',
|
||||||
|
'.css',
|
||||||
|
'.html',
|
||||||
|
'.js',
|
||||||
|
'.json',
|
||||||
|
'.md',
|
||||||
|
'.scss',
|
||||||
|
'.txt',
|
||||||
|
'.yml'
|
||||||
|
]);
|
||||||
|
|
||||||
|
replaceRecursively('.', EXCLUDED_DIRS, INCLUDED_EXTENSIONS, oldVersion, newVersion)
|
||||||
|
}
|
||||||
|
|
||||||
|
main(process.argv.slice(2));
|
||||||
@@ -1,10 +1,3 @@
|
|||||||
/*
|
|
||||||
* Tabler (v0.9.0): postcss.config.js
|
|
||||||
* Copyright 2018-2019 The Tabler Authors
|
|
||||||
* Copyright 2018-2019 codecalm
|
|
||||||
* Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
module.exports = ctx => ({
|
module.exports = ctx => ({
|
||||||
|
|||||||
@@ -1,10 +1,3 @@
|
|||||||
/*
|
|
||||||
* Tabler (v0.9.0): rollup.config.js
|
|
||||||
* Copyright 2018-2019 The Tabler Authors
|
|
||||||
* Copyright 2018-2019 codecalm
|
|
||||||
* Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const BUNDLE = process.env.BUNDLE === 'true';
|
const BUNDLE = process.env.BUNDLE === 'true';
|
||||||
|
|||||||
@@ -1,10 +1,3 @@
|
|||||||
/*
|
|
||||||
* Tabler (v0.9.0): scss-compile.js
|
|
||||||
* Copyright 2018-2019 The Tabler Authors
|
|
||||||
* Copyright 2018-2019 codecalm
|
|
||||||
* Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
|
|
||||||
*/
|
|
||||||
|
|
||||||
const BUNDLE = process.env.BUNDLE === 'true';
|
const BUNDLE = process.env.BUNDLE === 'true';
|
||||||
|
|
||||||
const path = require('path'),
|
const path = require('path'),
|
||||||
|
|||||||
5
build/unused-files.js
Normal file → Executable file
5
build/unused-files.js
Normal file → Executable file
@@ -1,3 +1,5 @@
|
|||||||
|
#!/usr/bin/env node
|
||||||
|
|
||||||
const glob = require("glob"),
|
const glob = require("glob"),
|
||||||
fs = require("fs");
|
fs = require("fs");
|
||||||
|
|
||||||
@@ -22,6 +24,3 @@ includeFiles.forEach(function (file) {
|
|||||||
console.log('file', file);
|
console.log('file', file);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// console.log('foundFiles', foundFiles);
|
|
||||||
// console.log('includeFiles', includeFiles);
|
|
||||||
|
|||||||
2
dist/js/tabler.min.js
vendored
2
dist/js/tabler.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "tabler",
|
"name": "tabler",
|
||||||
"version": "1.0.0-alpha.3",
|
"version": "1.0.0-alpha.4",
|
||||||
"version_short": "1.0.0-alpha.3",
|
"version_short": "1.0.0-alpha.4",
|
||||||
"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": "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",
|
||||||
@@ -99,6 +99,7 @@
|
|||||||
"rollup-plugin-filesize": "6.2.1",
|
"rollup-plugin-filesize": "6.2.1",
|
||||||
"rollup-plugin-multi-input": "1.0.3",
|
"rollup-plugin-multi-input": "1.0.3",
|
||||||
"rollup-plugin-node-resolve": "5.2.0",
|
"rollup-plugin-node-resolve": "5.2.0",
|
||||||
|
"shelljs": "^0.8.3",
|
||||||
"stylelint": "13.2.0",
|
"stylelint": "13.2.0",
|
||||||
"stylelint-config-twbs-bootstrap": "2.0.1",
|
"stylelint-config-twbs-bootstrap": "2.0.1",
|
||||||
"svgo": "1.3.2",
|
"svgo": "1.3.2",
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/*!
|
||||||
|
* Tabler (v1.0.0-alpha.4)
|
||||||
|
* Copyright 2018-2020 The Tabler Authors
|
||||||
|
* Copyright 2018-2020 codecalm
|
||||||
|
* Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
|
||||||
|
*/
|
||||||
|
|
||||||
@import "config";
|
@import "config";
|
||||||
@import "demo/highlight";
|
@import "demo/highlight";
|
||||||
@import "demo/examples";
|
@import "demo/examples";
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/*!
|
||||||
|
* Tabler (v1.0.0-alpha.4)
|
||||||
|
* Copyright 2018-2020 The Tabler Authors
|
||||||
|
* Copyright 2018-2020 codecalm
|
||||||
|
* Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
|
||||||
|
*/
|
||||||
|
|
||||||
@import "config";
|
@import "config";
|
||||||
@import "ui/buttons-extra";
|
@import "ui/buttons-extra";
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*!
|
/*!
|
||||||
* Tabler Flags (v0.9.0)
|
* Tabler (v1.0.0-alpha.4)
|
||||||
* Copyright 2018-2019 The Tabler Authors
|
* Copyright 2018-2020 The Tabler Authors
|
||||||
* Copyright 2018-2019 codecalm
|
* Copyright 2018-2020 codecalm
|
||||||
* Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
|
* Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*!
|
/*!
|
||||||
* Tabler Payments (v0.1.0)
|
* Tabler (v1.0.0-alpha.4)
|
||||||
* Copyright 2018-2019 The Tabler Authors
|
* Copyright 2018-2020 The Tabler Authors
|
||||||
* Copyright 2018-2019 codecalm
|
* Copyright 2018-2020 codecalm
|
||||||
* Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
|
* Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
/*!
|
/*!
|
||||||
* Tabler (v0.9.0)
|
* Tabler (v1.0.0-alpha.4)
|
||||||
* Copyright 2018-2019 The Tabler Authors
|
* Copyright 2018-2020 The Tabler Authors
|
||||||
* Copyright 2018-2019 codecalm
|
* Copyright 2018-2020 codecalm
|
||||||
* Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
|
* Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@import "tabler-core";
|
@import "tabler-core";
|
||||||
@import "tabler-vendors";
|
@import "tabler-vendors";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user