Skip to content

Commit de944c6

Browse files
committed
feat: 2048 add background
1 parent 4fb8f2a commit de944c6

File tree

4 files changed

+2961
-1
lines changed

4 files changed

+2961
-1
lines changed

.gitlab-ci.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
stages:
2+
- build
3+
- pre-publish
4+
- publish
5+
variables:
6+
GITLAB_TOKEN: $GITLAB_TOKEN
7+
NPM_TOKEN: $NPM_TOKEN
8+
9+
before_script:
10+
- npm install
11+
- git config --global user.name "assets.system"
12+
- git config --global user.email "[email protected]"
13+
publish:
14+
stage: publish
15+
only:
16+
- master
17+
except:
18+
- tags
19+
- triggers
20+
when: manual
21+
script:
22+
- echo "Checking current Git user...!"
23+
- git config --get user.name
24+
- echo "Checking current Git email..."
25+
- git config --get user.email
26+
- echo "Manually triggered publish for master branch..."
27+
- git remote set-url origin "https://gitlab-ci-token:${GITLAB_TOKEN}@gitlab.okg.com/okfe/im.git"
28+
- git checkout $CI_COMMIT_REF_NAME
29+
- git pull origin $CI_COMMIT_REF_NAME
30+
- npm run release --ci --token ${GITLAB_TOKEN}
31+
tags:
32+
- nodejs18
33+
34+
docs-publish:
35+
stage: publish
36+
only:
37+
- /^dev\/\d+\.\d+.\d+$/
38+
except:
39+
- tags
40+
- triggers
41+
when: manual
42+
script:
43+
- nvm use v20.11.0
44+
- echo "Checking current Git user...!"
45+
- git config --get user.name
46+
- echo "Checking current Git email..."
47+
- git config --get user.email
48+
- echo "Manually triggered docs publish for dev branch..."
49+
- git remote set-url origin "https://gitlab-ci-token:${GITLAB_TOKEN}@gitlab.okg.com/okfe/im.git"
50+
- git checkout $CI_COMMIT_REF_NAME
51+
- git pull origin $CI_COMMIT_REF_NAME
52+
- cd packages/docs && pnpm run build && pnpm run upload
53+
tags:
54+
- nodejs18

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"editor.defaultFormatter": "esbenp.prettier-vscode",
33
"editor.formatOnSave": true
4-
}
4+
}

2048/styles.less

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ body {
6161
.container {
6262
position: relative;
6363
width: 4 * @SIZE * 1px;
64+
height: 4 * @SIZE * 1px;
65+
touch-action: none;
66+
background: #bbada0;
67+
border-radius: 6px;
68+
6469
.block {
6570
font-size: 40px;
6671
box-sizing: border-box;

0 commit comments

Comments
 (0)