uikit 3.9.2-dev.a89eca15f → 3.9.3-dev.770c92c8a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +1 -2
- package/CHANGELOG.md +1 -1
- package/build/publishDev.js +5 -6
- package/build/util.js +9 -5
- package/dist/css/uikit-core-rtl.css +1 -1
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +1 -1
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +1 -1
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +1 -1
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +1 -1
- package/dist/js/components/countdown.min.js +2 -3
- package/dist/js/components/filter.js +1 -1
- package/dist/js/components/filter.min.js +2 -3
- package/dist/js/components/lightbox-panel.js +1 -1
- package/dist/js/components/lightbox-panel.min.js +2 -3
- package/dist/js/components/lightbox.js +1 -1
- package/dist/js/components/lightbox.min.js +2 -3
- package/dist/js/components/notification.js +1 -1
- package/dist/js/components/notification.min.js +2 -3
- package/dist/js/components/parallax.js +1 -1
- package/dist/js/components/parallax.min.js +2 -3
- package/dist/js/components/slider-parallax.js +1 -1
- package/dist/js/components/slider-parallax.min.js +2 -3
- package/dist/js/components/slider.js +1 -1
- package/dist/js/components/slider.min.js +2 -3
- package/dist/js/components/slideshow-parallax.js +1 -1
- package/dist/js/components/slideshow-parallax.min.js +2 -3
- package/dist/js/components/slideshow.js +1 -1
- package/dist/js/components/slideshow.min.js +2 -3
- package/dist/js/components/sortable.js +1 -1
- package/dist/js/components/sortable.min.js +2 -3
- package/dist/js/components/tooltip.js +1 -1
- package/dist/js/components/tooltip.min.js +2 -3
- package/dist/js/components/upload.js +1 -1
- package/dist/js/components/upload.min.js +2 -3
- package/dist/js/uikit-core.js +12 -9
- package/dist/js/uikit-core.min.js +2 -3
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +2 -3
- package/dist/js/uikit.js +12 -9
- package/dist/js/uikit.min.js +2 -3
- package/package.json +4 -7
- package/src/js/util/dimensions.js +8 -5
package/.eslintrc.json
CHANGED
package/CHANGELOG.md
CHANGED
package/build/publishDev.js
CHANGED
|
@@ -4,30 +4,29 @@ import {args, getVersion, run} from './util.js';
|
|
|
4
4
|
const {inc} = semver;
|
|
5
5
|
|
|
6
6
|
// default exec options
|
|
7
|
-
const options = {encoding: 'utf8'};
|
|
8
7
|
if (args.f || args.force || await isDevCommit()) {
|
|
9
8
|
|
|
10
9
|
// increase version patch number
|
|
11
10
|
const version = inc(await getVersion(), 'patch');
|
|
12
11
|
|
|
13
12
|
// get current git hash
|
|
14
|
-
const hash = (await run('git rev-parse --short HEAD'
|
|
13
|
+
const hash = (await run('git rev-parse --short HEAD')).trim();
|
|
15
14
|
|
|
16
15
|
// set version of package.json
|
|
17
|
-
await run(`npm version ${version}-dev.${hash} --git-tag-version false
|
|
16
|
+
await run(`npm version ${version}-dev.${hash} --git-tag-version false`);
|
|
18
17
|
|
|
19
18
|
// create dist files
|
|
20
|
-
await run('yarn compile && yarn compile-rtl && yarn build-scss'
|
|
19
|
+
await run('yarn compile && yarn compile-rtl && yarn build-scss');
|
|
21
20
|
|
|
22
21
|
// publish to dev tag
|
|
23
|
-
await run('npm publish --tag dev'
|
|
22
|
+
await run('npm publish --tag dev');
|
|
24
23
|
|
|
25
24
|
}
|
|
26
25
|
|
|
27
26
|
async function isDevCommit() {
|
|
28
27
|
|
|
29
28
|
// check for changes to publish (%B: raw body (unwrapped subject and body)
|
|
30
|
-
const message = await run('git log -1 --pretty=%B'
|
|
29
|
+
const message = await run('git log -1 --pretty=%B');
|
|
31
30
|
|
|
32
31
|
const type = message.match(/^(revert: )?(feat|fix|polish|docs|style|refactor|perf|test|workflow|ci|chore|types)(\(.+\))?: .{1,50}/);
|
|
33
32
|
|
package/build/util.js
CHANGED
|
@@ -10,7 +10,7 @@ import html from 'rollup-plugin-html';
|
|
|
10
10
|
import buble from '@rollup/plugin-buble';
|
|
11
11
|
import alias from '@rollup/plugin-alias';
|
|
12
12
|
import modify from 'rollup-plugin-modify';
|
|
13
|
-
import {
|
|
13
|
+
import {terser} from 'rollup-plugin-terser';
|
|
14
14
|
import replace from '@rollup/plugin-replace';
|
|
15
15
|
import {basename, dirname, join} from 'path';
|
|
16
16
|
import {exec as execImport} from 'child_process';
|
|
@@ -149,7 +149,7 @@ export async function compile(file, dest, {external, globals, name, aliases, rep
|
|
|
149
149
|
output.push({
|
|
150
150
|
...outputOptions,
|
|
151
151
|
file: `${dest}.min.js`,
|
|
152
|
-
plugins: [minify ?
|
|
152
|
+
plugins: [minify ? terser() : undefined]
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
155
|
|
|
@@ -163,6 +163,9 @@ export async function compile(file, dest, {external, globals, name, aliases, rep
|
|
|
163
163
|
|
|
164
164
|
await bundle.close();
|
|
165
165
|
} else {
|
|
166
|
+
|
|
167
|
+
console.log('UIkit is watching the files...');
|
|
168
|
+
|
|
166
169
|
const watcher = rollupWatch({
|
|
167
170
|
...inputOptions,
|
|
168
171
|
output
|
|
@@ -221,10 +224,11 @@ export async function icons(src) {
|
|
|
221
224
|
|
|
222
225
|
}
|
|
223
226
|
|
|
224
|
-
export async function run(cmd) {
|
|
225
|
-
const {stdout, stderr} = await exec(cmd);
|
|
227
|
+
export async function run(cmd, options) {
|
|
228
|
+
const {stdout, stderr} = await exec(cmd, options);
|
|
226
229
|
|
|
227
|
-
|
|
230
|
+
stdout && console.log(stdout.trim());
|
|
231
|
+
stderr && console.log(stderr.trim());
|
|
228
232
|
|
|
229
233
|
return stdout;
|
|
230
234
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.9.
|
|
1
|
+
/*! UIkit 3.9.3-dev.770c92c8a | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */
|
|
2
2
|
/* ========================================================================
|
|
3
3
|
Component: Base
|
|
4
4
|
========================================================================== */
|