Skip to content
This repository was archived by the owner on Aug 26, 2024. It is now read-only.

Commit 666b390

Browse files
committed
setup build process
1 parent 9a4d23e commit 666b390

File tree

8 files changed

+4477
-0
lines changed

8 files changed

+4477
-0
lines changed

.eslintrc.json

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"commonjs": true,
5+
"es6": true,
6+
"node": true
7+
},
8+
"extends": ["airbnb-base", "plugin:prettier/recommended"],
9+
"globals": {
10+
"Atomics": "readonly",
11+
"SharedArrayBuffer": "readonly"
12+
},
13+
"parserOptions": {
14+
"ecmaVersion": 2018
15+
},
16+
"rules": {
17+
"max-len": [
18+
"error",
19+
{
20+
"code": 80,
21+
"ignoreUrls": true
22+
}
23+
],
24+
25+
"prettier/prettier": [
26+
"error",
27+
{
28+
"singleQuote": true,
29+
"printWidth": 80
30+
}
31+
]
32+
}
33+
}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

demo/index.html

Whitespace-only changes.

dist/index.min.css

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.fade{transform:translate(20px)}

gulpfile.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
const gulp = require('gulp');
2+
3+
const concat = require('gulp-concat');
4+
const cleanCss = require('gulp-clean-css');
5+
6+
gulp.task('minify', () =>
7+
gulp
8+
.src('src/*.css')
9+
.pipe(concat('index.min.css'))
10+
.pipe(cleanCss())
11+
.pipe(gulp.dest('dist'))
12+
);

0 commit comments

Comments
 (0)