Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

local installation manual for last version #152

Closed
Alymbek opened this issue Dec 25, 2018 · 6 comments
Closed

local installation manual for last version #152

Alymbek opened this issue Dec 25, 2018 · 6 comments

Comments

@Alymbek
Copy link

Alymbek commented Dec 25, 2018

Hi, friends.
I have successfully make local version of this site for 3.0.0-Rc.25.

Step by step manual:

  1. install yarn, see https://yarnpkg.com/lang/en/docs/install/#debian-stable
  2. create separate locahost (optional, but I recommend)
  3. set full permission for folder of localhost (mandatory)
  4. clone the repository by git clone git://github.com/uikit/uikit-site.git OR download it to folder of localhost
  5. run yarn to install
  6. compile by yarn setup
  7. check in browser
  8. download external javascript library from links in index.html and docs/index.html to make it fully local(see bellow)
  9. edit javascript links in index.html and docs/index.html from external to internal files
  10. check in browser again
  11. enjoy it ;)

ps. yarn command running in CLI.

pps. you'll get error message while installing if doing wrong, just try to fix it.

ppps. to fully make it offline ensure to download external javascript files and make it locally:
for index.html file :

<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/0.3.6/marked.min.js" defer></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.16/vue.min.js" defer></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue-router/3.0.1/vue-router.min.js" defer></script>

for docs/index.html file :

<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.6.1/clipboard.min.js" defer></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/he/1.1.1/he.min.js" defer></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/0.3.6/marked.min.js" defer></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.16/vue.min.js" defer></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue-router/3.0.1/vue-router.min.js" defer></script>

please, don't close this issue for info for other beginners.

@cheungxiongwei
Copy link

cheungxiongwei commented Feb 26, 2019

@Alymbek

D:\zerosdoc\test\locahost>git clone git://github.com/uikit/uikit-site.git
Cloning into 'uikit-site'...
remote: Enumerating objects: 25, done.
remote: Counting objects: 100% (25/25), done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 8186 (delta 13), reused 18 (delta 9), pack-reused 8161
Receiving objects: 100% (8186/8186), 49.08 MiB | 128.00 KiB/s, done.
Resolving deltas: 100% (5779/5779), done.

D:\zerosdoc\test\locahost>dir
 驱动器 D 中的卷是 软件
 卷的序列号是 0000-4823

 D:\zerosdoc\test\locahost 的目录

2019/02/26  11:50    <DIR>          .
2019/02/26  11:50    <DIR>          ..
2019/02/26  11:56    <DIR>          uikit-site
               0 个文件              0 字节
               3 个目录  6,199,582,720 可用字节

D:\zerosdoc\test\locahost>cd uikit-site

D:\zerosdoc\test\locahost\uikit-site>yarn install
yarn install v1.13.0
warning package.json: No license field
warning No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > [email protected]" has unmet peer dependency "css-loader@*".
[4/4] Building fresh packages...
error D:\zerosdoc\test\locahost\uikit-site\node_modules\webpack-cli: Command failed.
Exit code: 1
Command: opencollective postinstall
Arguments:
Directory: D:\zerosdoc\test\locahost\uikit-site\node_modules\webpack-cli
Output:
ϵͳ�Ҳ���ָ����·����
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

D:\zerosdoc\test\locahost\uikit-site>yarn setup
yarn run v1.13.0
warning package.json: No license field
$ yarn && yarn compile
系统找不到指定的路径。
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@Alymbek
Copy link
Author

Alymbek commented Feb 26, 2019

@cheungxiongwei
after cloning git run just yarn (without 'install')

in your log I see "yarn install" command.

after that run yarn setup

@cheungxiongwei
Copy link

@cheungxiongwei
after cloning git run just yarn (without 'install')

in your log I see "yarn install" command.

after that run yarn setup

https://yarnpkg.com/en/docs/cli/
Running yarn with no command will run yarn install, passing through any provided flags.
There seems to be a problem with the path on the window system.

D:\zerosdoc\test\locahost\uikit-site>yarn
yarn install v1.13.0
warning package.json: No license field
warning No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > [email protected]" has unmet peer dependency "css-loader@*".
[4/4] Building fresh packages...
error D:\zerosdoc\test\locahost\uikit-site\node_modules\webpack-cli: Command failed.
Exit code: 1
Command: opencollective postinstall
Arguments:
Directory: D:\zerosdoc\test\locahost\uikit-site\node_modules\webpack-cli
Output:
ϵͳ�Ҳ���ָ����·����
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

D:\zerosdoc\test\locahost\uikit-site>npm install --save-dev webpack-cli
npm WARN rm not removing D:\zerosdoc\test\locahost\uikit-site\node_modules\.bin\semver.cmd as it wasn't installed by D:\
zerosdoc\test\locahost\uikit-site\node_modules\semver
npm WARN rm not removing D:\zerosdoc\test\locahost\uikit-site\node_modules\.bin\semver as it wasn't installed by D:\zero
sdoc\test\locahost\uikit-site\node_modules\semver
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yo
urself.
npm WARN uikit-site No repository field.
npm WARN uikit-site No license field.

+ [email protected]
added 28 packages, removed 394 packages and updated 180 packages in 25.368s

D:\zerosdoc\test\locahost\uikit-site>yarn
yarn install v1.13.0
warning package.json: No license field
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not
to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this
warning, remove package-lock.json.
warning No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > [email protected]" has unmet peer dependency "css-loader@*".
[4/4] Building fresh packages...

success Saved lockfile.
$ cd ./node_modules/uikit && yarn && cd ../../ && symlink-dir ./node_modules/uikit ./assets/uikit
系统找不到指定的路径。
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

I can run normally on a debian system

root@master:/home/localhost# git clone https://github.com/uikit/uikit-site.git
正克隆到 'uikit-site'...
remote: Enumerating objects: 25, done.
remote: Counting objects: 100% (25/25), done.
remote: Compressing objects: 100% (16/16), done.
接收对象中: 100% (8186/8186), 49.08 MiB | 109.00 KiB/s, 完成.
remote: Total 8186 (delta 13), reused 18 (delta 9), pack-reused 8161
处理 delta 中: 100% (5779/5779), 完成.
检查连接... 完成。

root@master:/home/localhost# apt-get update
忽略:1 http://mirrors.ustc.edu.cn/debian stable InRelease
获取:2 http://mirrors.ustc.edu.cn/debian stable-updates InRelease [91.0 kB]
获取:3 http://mirrors.ustc.edu.cn/debian stable Release [118 kB]               
获取:4 http://mirrors.ustc.edu.cn/debian stable Release.gpg [2,434 B]          
获取:5 http://mirrors.ustc.edu.cn/debian stable-updates/main amd64 Packages.diff/Index [7,624 B]
获取:6 http://mirrors.ustc.edu.cn/debian stable-updates/main Translation-en.diff/Index [4,672 B]
获取:7 http://mirrors.ustc.edu.cn/debian stable-updates/main amd64 Contents (deb).diff/Index [6,640 B]
获取:8 http://mirrors.ustc.edu.cn/debian stable-updates/main amd64 Packages 2019-01-02-2012.38.pdiff [332 B]
获取:9 http://mirrors.ustc.edu.cn/debian stable-updates/main amd64 Packages 2019-01-26-1412.04.pdiff [3,276 B]
获取:10 http://mirrors.ustc.edu.cn/debian stable-updates/main amd64 Packages 2019-02-21-2009.35.pdiff [4,149 B]
获取:11 http://mirrors.ustc.edu.cn/debian stable-updates/main Translation-en 2019-01-26-1412.04.pdiff [1,836 B]
获取:10 http://mirrors.ustc.edu.cn/debian stable-updates/main amd64 Packages 2019-02-21-2009.35.pdiff [4,149 B]
获取:12 http://mirrors.ustc.edu.cn/debian stable-updates/main Translation-en 2019-02-21-2009.35.pdiff [5,483 B]
获取:12 http://mirrors.ustc.edu.cn/debian stable-updates/main Translation-en 2019-02-21-2009.35.pdiff [5,483 B]
获取:13 http://mirrors.ustc.edu.cn/debian stable-updates/main amd64 Contents (deb) 2019-01-02-2012.38.pdiff [163 B]
获取:14 http://mirrors.ustc.edu.cn/debian stable-updates/main amd64 Contents (deb) 2019-01-26-1412.04.pdiff [5,036 B]
获取:15 http://mirrors.ustc.edu.cn/debian stable-updates/main amd64 Contents (deb) 2019-02-21-2009.35.pdiff [327 kB]
获取:15 http://mirrors.ustc.edu.cn/debian stable-updates/main amd64 Contents (deb) 2019-02-21-2009.35.pdiff [327 kB]
获取:16 http://mirrors.ustc.edu.cn/debian stable/main amd64 Packages [7,084 kB]
获取:17 http://apt.postgresql.org/pub/repos/apt stretch-pgdg InRelease [46.3 kB]
获取:18 http://mirrors.ustc.edu.cn/debian stable/main Translation-en [5,384 kB]
获取:19 http://apt.postgresql.org/pub/repos/apt stretch-pgdg/main amd64 Packages [166 kB]
获取:20 http://mirrors.ustc.edu.cn/debian stable/main amd64 Contents (deb) [31.4 MB]
获取:21 http://apt.postgresql.org/pub/repos/apt stretch-pgdg/main amd64 Contents (deb) [309 kB]
获取:22 http://mirrors.ustc.edu.cn/debian stable/contrib amd64 Packages [50.9 kB]
获取:23 http://mirrors.ustc.edu.cn/debian stable/contrib amd64 Contents (deb) [90.3 kB]
获取:24 http://mirrors.ustc.edu.cn/debian stable/non-free amd64 Packages [78.3 kB]
获取:25 http://mirrors.ustc.edu.cn/debian stable/non-free Translation-en [80.3 kB]
获取:26 http://mirrors.ustc.edu.cn/debian stable/non-free amd64 Contents (deb) [809 kB]
已下载 46.0 MB,耗时 35秒 (1,301 kB/s)                                         
正在读取软件包列表... 完成

root@master:/home/localhost# apt-get install curl
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
下列软件包是自动安装的并且现在不需要了:
  fcitx-bin fcitx-config-common fcitx-frontend-all fcitx-libs fcitx-ui-classic
  libfcitx-core0 libgettextpo0 libgooglepinyin0 libmariadbclient18 libopencc2
  libopencc2-data libqt4-declarative libqt4-script libqt4-sql libqt4-sql-mysql
  mysql-common
使用'apt autoremove'来卸载它(它们)。
将会同时安装下列软件:
  libcurl3
下列【新】软件包将被安装:
  curl libcurl3
升级了 0 个软件包,新安装了 2 个软件包,要卸载 0 个软件包,有 283 个软件包未被升级。
需要下载 519 kB 的归档。
解压缩后会消耗 989 kB 的额外空间。
您希望继续执行吗? [Y/n] y
获取:1 http://mirrors.ustc.edu.cn/debian stable/main amd64 libcurl3 amd64 7.52.1-5+deb9u9 [292 kB]
获取:2 http://mirrors.ustc.edu.cn/debian stable/main amd64 curl amd64 7.52.1-5+deb9u9 [227 kB]
已下载 519 kB,耗时 1秒 (303 kB/s)
正在选中未选择的软件包 libcurl3:amd64。
(正在读取数据库 ... 系统当前共安装有 179364 个文件和目录。)
正准备解包 .../libcurl3_7.52.1-5+deb9u9_amd64.deb  ...
正在解包 libcurl3:amd64 (7.52.1-5+deb9u9) ...
正在选中未选择的软件包 curl。
正准备解包 .../curl_7.52.1-5+deb9u9_amd64.deb  ...
正在解包 curl (7.52.1-5+deb9u9) ...
正在设置 libcurl3:amd64 (7.52.1-5+deb9u9) ...
正在处理用于 libc-bin (2.24-11+deb9u3) 的触发器 ...
正在处理用于 man-db (2.7.6.1-2) 的触发器 ...
正在设置 curl (7.52.1-5+deb9u9) ...

root@master:/home/localhost# curl -v
curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for more information

root@master:/home/localhost# curl -sL https://deb.nodesource.com/setup_10.x | bash -

## Installing the NodeSource Node.js 10.x repo...


## Populating apt-get cache...

+ apt-get update
忽略:1 http://mirrors.ustc.edu.cn/debian stable InRelease
命中:2 http://mirrors.ustc.edu.cn/debian stable-updates InRelease
命中:3 http://mirrors.ustc.edu.cn/debian stable Release                        
命中:5 http://apt.postgresql.org/pub/repos/apt stretch-pgdg InRelease          
正在读取软件包列表... 完成   

## Installing packages required for setup: apt-transport-https...

+ apt-get install -y apt-transport-https > /dev/null 2>&1

## Confirming "stretch" is supported...

+ curl -sLf -o /dev/null 'https://deb.nodesource.com/node_10.x/dists/stretch/Release'

## Adding the NodeSource signing key to your keyring...

+ curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
OK

## Creating apt sources list file for the NodeSource Node.js 10.x repo...

+ echo 'deb https://deb.nodesource.com/node_10.x stretch main' > /etc/apt/sources.list.d/nodesource.list
+ echo 'deb-src https://deb.nodesource.com/node_10.x stretch main' >> /etc/apt/sources.list.d/nodesource.list

## Running `apt-get update` for you...

+ apt-get update
获取:1 https://deb.nodesource.com/node_10.x stretch InRelease [4,585 B]
获取:2 https://deb.nodesource.com/node_10.x stretch/main amd64 Packages [763 B]
忽略:3 http://mirrors.ustc.edu.cn/debian stable InRelease                 
命中:4 http://apt.postgresql.org/pub/repos/apt stretch-pgdg InRelease 
命中:5 http://mirrors.ustc.edu.cn/debian stable-updates InRelease           
命中:6 http://mirrors.ustc.edu.cn/debian stable Release                     
已下载 5,348 B,耗时 1秒 (5,016 B/s)              
正在读取软件包列表... 完成

## Run `sudo apt-get install -y nodejs` to install Node.js 10.x and npm
## You may also need development tools to build native addons:
     sudo apt-get install gcc g++ make
## To install the Yarn package manager, run:
     curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
     echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
     sudo apt-get update && sudo apt-get install yarn


root@master:/home/localhost# apt-get install -y nodejs
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
下列软件包是自动安装的并且现在不需要了:
  fcitx-bin fcitx-config-common fcitx-frontend-all fcitx-libs fcitx-ui-classic
  libfcitx-core0 libgettextpo0 libgooglepinyin0 libmariadbclient18 libopencc2
  libopencc2-data libqt4-declarative libqt4-script libqt4-sql libqt4-sql-mysql
  mysql-common
使用'apt autoremove'来卸载它(它们)。
下列【新】软件包将被安装:
  nodejs
升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 283 个软件包未被升级。
需要下载 15.1 MB 的归档。
解压缩后会消耗 71.9 MB 的额外空间。
获取:1 https://deb.nodesource.com/node_10.x stretch/main amd64 nodejs amd64 10.15.1-1nodesource1 [15.1 MB]
已下载 15.1 MB,耗时 17秒 (886 kB/s)                                           
正在选中未选择的软件包 nodejs。
(正在读取数据库 ... 系统当前共安装有 179387 个文件和目录。)
正准备解包 .../nodejs_10.15.1-1nodesource1_amd64.deb  ...
正在解包 nodejs (10.15.1-1nodesource1) ...
正在设置 nodejs (10.15.1-1nodesource1) ...
正在处理用于 man-db (2.7.6.1-2) 的触发器 ...
root@master:/home/localhost# node -v
v10.15.1
root@master:/home/localhost# npm

Usage: npm <command>

where <command> is one of:
    access, adduser, audit, bin, bugs, c, cache, ci, cit,
    completion, config, create, ddp, dedupe, deprecate,
    dist-tag, docs, doctor, edit, explore, get, help,
    help-search, hook, i, init, install, install-test, it, link,
    list, ln, login, logout, ls, outdated, owner, pack, ping,
    prefix, profile, prune, publish, rb, rebuild, repo, restart,
    root, run, run-script, s, se, search, set, shrinkwrap, star,
    stars, start, stop, t, team, test, token, tst, un,
    uninstall, unpublish, unstar, up, update, v, version, view,
    whoami

npm <command> -h  quick help on <command>
npm -l            display full usage info
npm help <term>   search for help on <term>
npm help npm      involved overview

Specify configs in the ini-formatted file:
    /root/.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config

[email protected] /usr/lib/node_modules/npm
root@master:/home/localhost# curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
bash: sudo: 未找到命令
curl: (23) Failed writing body (531 != 1369)
root@master:/home/localhost# curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
OK
root@master:/home/localhost# echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
bash: sudo: 未找到命令
root@master:/home/localhost# echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
deb https://dl.yarnpkg.com/debian/ stable main
root@master:/home/localhost# apt-get update
忽略:1 http://mirrors.ustc.edu.cn/debian stable InRelease
命中:2 http://mirrors.ustc.edu.cn/debian stable-updates InRelease
命中:3 http://mirrors.ustc.edu.cn/debian stable Release                        
命中:4 http://apt.postgresql.org/pub/repos/apt stretch-pgdg InRelease          
命中:6 https://deb.nodesource.com/node_10.x stretch InRelease
获取:7 https://dl.yarnpkg.com/debian stable InRelease [13.3 kB]
获取:8 https://dl.yarnpkg.com/debian stable/main all Packages [8,365 B]
获取:9 https://dl.yarnpkg.com/debian stable/main amd64 Packages [8,365 B]
已下载 30.1 kB,耗时 1秒 (18.0 kB/s)
正在读取软件包列表... 完成
root@master:/home/localhost# apt-get install yarn
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
下列软件包是自动安装的并且现在不需要了:
  fcitx-bin fcitx-config-common fcitx-frontend-all fcitx-libs fcitx-ui-classic
  libfcitx-core0 libgettextpo0 libgooglepinyin0 libmariadbclient18 libopencc2
  libopencc2-data libqt4-declarative libqt4-script libqt4-sql libqt4-sql-mysql
  mysql-common
使用'apt autoremove'来卸载它(它们)。
下列【新】软件包将被安装:
  yarn
升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 283 个软件包未被升级。
需要下载 835 kB 的归档。
解压缩后会消耗 4,993 kB 的额外空间。
获取:1 https://dl.yarnpkg.com/debian stable/main amd64 yarn all 1.13.0-1 [835 kB]
已下载 835 kB,耗时 3秒 (271 kB/s)
正在选中未选择的软件包 yarn。
(正在读取数据库 ... 系统当前共安装有 183281 个文件和目录。)
正准备解包 .../archives/yarn_1.13.0-1_all.deb  ...
正在解包 yarn (1.13.0-1) ...
正在设置 yarn (1.13.0-1) ...
root@master:/home/localhost# yarn -v
1.13.0
root@master:/home/localhost# yarn
yarn install v1.13.0
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 0.08s.
root@master:/home/localhost# ls -l
总用量 12
drwxr-xr-x 2 root root 4096 2月  26 15:56 node_modules
drwxr-xr-x 9 root root 4096 2月  26 15:32 uikit-site
-rw-r--r-- 1 root root   86 2月  26 15:56 yarn.lock
root@master:/home/localhost# ls -l
总用量 12
drwxr-xr-x 2 root root 4096 2月  26 15:56 node_modules
drwxr-xr-x 9 root root 4096 2月  26 15:32 uikit-site
-rw-r--r-- 1 root root   86 2月  26 15:56 yarn.lock
root@master:/home/localhost# rm node_modules
rm: 无法删除'node_modules': 是一个目录
root@master:/home/localhost# rm -h
rm: 不适用的选项 -- h
Try 'rm --help' for more information.
root@master:/home/localhost# rm --help
用法:rm [选项]... [文件]...
Remove (unlink) the FILE(s).

  -f, --force           ignore nonexistent files and arguments, never prompt
  -i                    prompt before every removal
  -I                    prompt once before removing more than three files, or
                          when removing recursively; less intrusive than -i,
                          while still giving protection against most mistakes
      --interactive[=WHEN]  prompt according to WHEN: never, once (-I), or
                          always (-i); without WHEN, prompt always
      --one-file-system		递归删除一个层级时,跳过所有不符合命令行参
				数的文件系统上的文件
      --no-preserve-root  do not treat '/' specially
      --preserve-root   do not remove '/' (default)
  -r, -R, --recursive   remove directories and their contents recursively
  -d, --dir             remove empty directories
  -v, --verbose         explain what is being done
      --help		显示此帮助信息并退出
      --version		显示版本信息并退出

默认时,rm 不会删除目录。使用--recursive(-r 或-R)选项可删除每个给定
的目录,以及其下所有的内容。

To remove a file whose name starts with a '-', for example '-foo',
use one of these commands:
  rm -- -foo

  rm ./-foo

请注意,如果使用rm 来删除文件,通常仍可以将该文件恢复原状。如果想保证
该文件的内容无法还原,请考虑使用shred。

GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
请向<http://translationproject.org/team/zh_CN.html> 报告rm 的翻译错误
Full documentation at: <http://www.gnu.org/software/coreutils/rm>
or available locally via: info '(coreutils) rm invocation'
root@master:/home/localhost# ls -l
总用量 12
drwxr-xr-x 2 root root 4096 2月  26 15:56 node_modules
drwxr-xr-x 9 root root 4096 2月  26 15:32 uikit-site
-rw-r--r-- 1 root root   86 2月  26 15:56 yarn.lock
root@master:/home/localhost# rm -r node_modules
root@master:/home/localhost# rm -r yarn.lock 
root@master:/home/localhost# ls -l
总用量 4
drwxr-xr-x 9 root root 4096 2月  26 15:32 uikit-site
root@master:/home/localhost# cd uikit-site/
root@master:/home/localhost/uikit-site# ls- l
bash: ls-: 未找到命令
root@master:/home/localhost/uikit-site# ls -l
总用量 200
drwxr-xr-x 3 root root   4096 2月  26 15:32 app
drwxr-xr-x 3 root root   4096 2月  26 15:32 assets
drwxr-xr-x 5 root root   4096 2月  26 15:32 docs
drwxr-xr-x 3 root root   4096 2月  26 15:32 images
-rwxr-xr-x 1 root root   1986 2月  26 15:32 index.html
drwxr-xr-x 2 root root   4096 2月  26 15:32 less
-rw-r--r-- 1 root root    884 2月  26 15:32 package.json
-rw-r--r-- 1 root root    380 2月  26 15:32 README.md
-rw-r--r-- 1 root root    774 2月  26 15:32 webpack.config.js
-rw-r--r-- 1 root root 165661 2月  26 15:32 yarn.lock
root@master:/home/localhost/uikit-site# yarn
yarn install v1.13.0
warning package.json: No license field
warning No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > [email protected]" has unmet peer dependency "css-loader@*".
[4/4] Building fresh packages...
$ cd ./node_modules/uikit && yarn && cd ../../ && symlink-dir ./node_modules/uikit ./assets/uikit
yarn install v1.13.0
warning ../../package.json: No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
Done in 27.11s.
Done in 76.62s.
root@master:/home/localhost/uikit-site# yarn setup
yarn run v1.13.0
warning package.json: No license field
$ yarn && yarn compile
warning package.json: No license field
warning No license field
[1/4] Resolving packages...
success Already up-to-date.
$ cd ./node_modules/uikit && yarn && cd ../../ && symlink-dir ./node_modules/uikit ./assets/uikit
warning ../../package.json: No license field
[1/4] Resolving packages...
success Already up-to-date.
warning package.json: No license field
$ yarn compile-js && yarn compile-less && yarn compile-uikit
warning package.json: No license field
$ ./node_modules/.bin/webpack -p
Hash: 5b480f2919aaf1675fe1
Version: webpack 4.28.3
Time: 1048ms
Built at: 2019-02-26 15:59:42
                 Asset      Size  Chunks             Chunk Names
     ./app/main.min.js  34.1 KiB       0  [emitted]  app/main
./docs/app/main.min.js  17.3 KiB       1  [emitted]  docs/app/main
Entrypoint app/main = ./app/main.min.js
Entrypoint docs/app/main = ./docs/app/main.min.js
 [0] external "UIkit.util" 42 bytes {1} [built]
 [2] ./docs/app/navigation.json 2.66 KiB {0} {1} [built]
 [3] external "Vue" 42 bytes {0} {1} [built]
 [4] external "VueRouter" 42 bytes {0} {1} [built]
 [5] ./app/analytics.js 670 bytes {0} {1} [built]
 [7] external "he" 42 bytes {1} [built]
 [9] ./app/main.js + 29 modules 41.8 KiB {0} [built]
     | ./app/main.js 1.26 KiB [built]
     | ./app/app.vue 389 bytes [built]
     | ./app/navbar.vue 395 bytes [built]
     | ./app/pages/index.vue 491 bytes [built]
     | ./app/pages/pro.vue 483 bytes [built]
     | ./app/pages/changelog.vue 507 bytes [built]
     | ./app/pages/download.vue 503 bytes [built]
     | ./app/pages/404.vue 392 bytes [built]
     | ./app/app.vue?vue&type=template&id=340501ce& 195 bytes [built]
     | ./app/navbar.vue?vue&type=template&id=6f58ecfb& 198 bytes [built]
     | ./app/pages/index.vue?vue&type=template&id=64a0e1c9& 203 bytes [built]
     | ./app/pages/index.vue?vue&type=script&lang=js& 340 bytes [built]
     | ./app/pages/pro.vue?vue&type=template&id=63b2c423& 201 bytes [built]
     | ./app/pages/pro.vue?vue&type=script&lang=js& 336 bytes [built]
     | ./app/pages/changelog.vue?vue&type=template&id=0fcba2d8& 207 bytes [built]
     |     + 15 hidden modules
[10] ./docs/app/main.js + 9 modules 17.6 KiB {1} [built]
     | ./docs/app/main.js 735 bytes [built]
     | ./docs/app/app.vue 392 bytes [built]
     | ./docs/app/page.vue 487 bytes [built]
     | ./docs/app/app.vue?vue&type=template&id=2add76fe& 201 bytes [built]
     | ./docs/app/page.vue?vue&type=template&id=cab0e344& 202 bytes [built]
     | ./docs/app/page.vue?vue&type=script&lang=js& 338 bytes [built]
     | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./docs/app/app.vue?vue&type=template&id=2add76fe& 4.85 KiB [built]
     | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./docs/app/page.vue?vue&type=template&id=cab0e344& 309 bytes [built]
     | ./node_modules/buble-loader!./node_modules/vue-loader/lib??vue-loader-options!./docs/app/page.vue?vue&type=script&lang=js& 4.47 KiB [built]
     | ./docs/app/util.js 5.64 KiB [built]
    + 3 hidden modules
warning package.json: No license field
$ make-dir css && lessc less/theme.less > css/theme.css --relative-urls --rootpath=../less/ -x
extend ' .uk-dark' has no matches
The compress option has been deprecated. We recommend you use a dedicated css minifier, for instance see less-plugin-clean-css.
warning package.json: No license field
$ cd ./assets/uikit && yarn compile-less && yarn compile-rtl && yarn compile-js uikit && yarn compile-js tests
warning ../../package.json: No license field
$ yarn icons && node build/less
warning ../../package.json: No license field
$ node build/icons
themes.json 0.00kb
dist/css/uikit-core.min.css 231.92kb
dist/css/uikit.min.css 247.41kb
dist/css/uikit-core.css 334.72kb
dist/css/uikit.css 352.67kb
warning ../../package.json: No license field
$ yarn compile-less rtl
warning ../../package.json: No license field
$ yarn icons && node build/less rtl
warning ../../package.json: No license field
$ node build/icons
dist/css/uikit-core-rtl.min.css 231.99kb
dist/css/uikit-rtl.min.css 247.50kb
dist/css/uikit-core-rtl.css 334.80kb
dist/css/uikit-rtl.css 352.76kb
warning ../../package.json: No license field
$ node build/build uikit
dist/js/uikit.min.js 128.90kb
dist/js/uikit.js 329.22kb
warning ../../package.json: No license field
$ node build/build tests
tests/js/test.min.js 10.14kb
tests/js/test.js 25.35kb
Done in 18.12s.
root@master:/home/localhost/uikit-site# 

@Grawl
Copy link

Grawl commented Jul 13, 2019

just rebuild this on Vue CLI https://github.com/Grawl/uikit-site-vue-cli

@Grawl
Copy link

Grawl commented Jul 14, 2019

just rebuild this on VuePress https://github.com/Grawl/uikit-docs-vuepress

@Vi-Jays
Copy link

Vi-Jays commented Oct 15, 2020

Please help me. I'm a beginner and don't know nothing. I want to use this repo as my offline documentation but everything is complicated. Need a clear step-by-step tutorial

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants