Skip to content

Commit e3d73f9

Browse files
committed
update setup
1 parent 4121d7c commit e3d73f9

File tree

8 files changed

+8608
-10477
lines changed

8 files changed

+8608
-10477
lines changed

.gitattributes

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
# These settings are for any web project
2+
3+
# Handle line endings automatically for files detected as text
4+
# and leave all files detected as binary untouched.
5+
* text=auto eol=lf
6+
7+
#
8+
# The above will handle all files NOT found below
9+
#
10+
11+
#
12+
## These files are text and should be normalized (Convert crlf => lf)
13+
#
14+
15+
# source code
16+
*.php text
17+
*.css text
18+
*.sass text
19+
*.scss text
20+
*.less text
21+
*.styl text
22+
*.js text
23+
*.jsx text
24+
*.ts text
25+
*.tsx text
26+
*.coffee text
27+
*.json text
28+
*.htm text
29+
*.html text
30+
*.xml text
31+
*.txt text
32+
*.ini text
33+
*.inc text
34+
*.pl text
35+
*.rb text
36+
*.py text
37+
*.scm text
38+
*.sql text
39+
*.sh text eof=LF
40+
*.bat text
41+
42+
# templates
43+
*.hbt text
44+
*.jade text
45+
*.haml text
46+
*.hbs text
47+
*.dot text
48+
*.tmpl text
49+
*.phtml text
50+
51+
# server config
52+
.htaccess text
53+
54+
# git config
55+
.gitattributes text
56+
.gitignore text
57+
58+
# code analysis config
59+
.jshintrc text
60+
.jscsrc text
61+
.jshintignore text
62+
.csslintrc text
63+
64+
# misc config
65+
*.yaml text
66+
*.yml text
67+
.editorconfig text
68+
69+
# build config
70+
*.npmignore text
71+
*.bowerrc text
72+
Dockerfile text eof=LF
73+
74+
# Heroku
75+
Procfile text
76+
.slugignore text
77+
78+
# Documentation
79+
*.md text
80+
LICENSE text
81+
AUTHORS text
82+
83+
84+
#
85+
## These files are binary and should be left untouched
86+
#
87+
88+
# (binary is a macro for -text -diff)
89+
*.png binary
90+
*.jpg binary
91+
*.jpeg binary
92+
*.gif binary
93+
*.ico binary
94+
*.mov binary
95+
*.mp4 binary
96+
*.mp3 binary
97+
*.flv binary
98+
*.fla binary
99+
*.swf binary
100+
*.gz binary
101+
*.zip binary
102+
*.7z binary
103+
*.ttf binary
104+
*.pyc binary
105+
*.pdf binary
106+
107+
# Source files
108+
# ============
109+
*.pxd text
110+
*.py text
111+
*.py3 text
112+
*.pyw text
113+
*.pyx text
114+
*.sh text eol=lf
115+
*.json text
116+
117+
# Binary files
118+
# ============
119+
*.db binary
120+
*.p binary
121+
*.pkl binary
122+
*.pyc binary
123+
*.pyd binary
124+
*.pyo binary
125+
126+
# Note: .db, .p, and .pkl files are associated
127+
# with the python modules ``pickle``, ``dbm.*``,
128+
# ``shelve``, ``marshal``, ``anydbm``, & ``bsddb``
129+
# (among others).

.github/workflows/ci.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,22 @@ jobs:
1010
- uses: actions/setup-node@v1
1111
with:
1212
node-version: "12.x"
13+
- run: npm i -g yarn
14+
- run: yarn set version berry
15+
- run: yarn config set checksumBehavior ignore
1316
- name: Cache Node.js modules
1417
uses: actions/cache@v1
1518
with:
16-
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
17-
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
19+
path: ./.yarn
20+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
1821
restore-keys: |
19-
${{ runner.OS }}-node-
20-
${{ runner.OS }}-
21-
- run: npm ci
22-
- run: npm run build --if-present
23-
- run: npm test
22+
${{ runner.os }}-yarn-
23+
- run: yarn install --immutable
24+
env:
25+
CI: true
26+
- run: yarn build
27+
env:
28+
CI: true
29+
- run: yarn test
2430
env:
2531
CI: true

.gitignore

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@ logs
33
*.log
44
npm-debug.log*
55

6-
coverage
7-
node_modules
6+
/coverage
7+
/node_modules
88
.npm
9+
/.yarnrc.yml
10+
/.yarn
11+
/.pnp.js
912

1013
# Build files
1114
/build
1215

1316
*.tgz
14-
.vscode
17+
/.vscode

.release-it.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
},
1313
"github": {
1414
"release": true,
15-
"assets": [
16-
"build/*.js",
17-
"*.tgz"
18-
]
15+
"assets": ["build/*.js", "*.tgz"]
1916
}
20-
}
17+
}

babel.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ module.exports = {
1212
presets: [['@babel/preset-env']],
1313
},
1414
},
15+
plugins: ['@babel/plugin-transform-runtime'],
1516
};

0 commit comments

Comments
 (0)