Skip to content

Commit 144446a

Browse files
committed
add:
config files.
1 parent 73b24e9 commit 144446a

File tree

3 files changed

+88
-0
lines changed

3 files changed

+88
-0
lines changed

.gitignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# config
2+
.DS_Store
3+
.sass-cache
4+
.svn/
5+
tmp/
6+
7+
# Editor.
8+
*.swp
9+
10+
# design data.
11+
*.psd
12+
*.ai
13+
14+
# node.js
15+
node_modules/
16+
package-lock.json
17+
18+
# Development environment.
19+
_*/

package.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"name": "js-scroll-effect-module",
3+
"version": "0.1.0",
4+
"description": "Add effect according to scroll.",
5+
"keywords": [
6+
"scroll",
7+
"scroll effect",
8+
"scroll effect animation",
9+
"css",
10+
"animation",
11+
"keyframe",
12+
"transition",
13+
"plugin"
14+
],
15+
"author": "yama-dev",
16+
"license": "MIT",
17+
"main": "./dist/js-scroll-effect-module.js",
18+
"scripts": {
19+
"start": "npm install && npm run develop",
20+
"develop": "npm-run-all -p build:webpack server",
21+
"server": "browser-sync start --server ./ --directory ./sample --files **/*.css **/*.js **/*.html",
22+
"build:webpack": "webpack --progress --colors --watch"
23+
},
24+
"repository": {
25+
"type": "git",
26+
"url": "https://github.com/yama-dev/js-scroll-effect-module"
27+
},
28+
"devDependencies": {
29+
"babel-cli": "^6.26.0",
30+
"babel-core": "^6.26.0",
31+
"babel-loader": "^7.1.4",
32+
"babel-preset-env": "^1.6.1",
33+
"browser-sync": "^2.23.6",
34+
"npm-run-all": "^4.1.2",
35+
"webpack": "^4.6.0",
36+
"webpack-cli": "^2.0.14"
37+
}
38+
}

webpack.config.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
const webpack = require('webpack');
2+
3+
const config = {
4+
mode: 'production',
5+
entry: './src/js-scroll-effect-module.js',
6+
output: {
7+
path: `${__dirname}/dist`,
8+
filename: 'js-scroll-effect-module.js',
9+
libraryTarget: 'umd'
10+
},
11+
module: {
12+
rules: [
13+
{
14+
test: /\.js$/,
15+
use: [
16+
{
17+
loader: 'babel-loader',
18+
options: {
19+
presets: [
20+
['env', {'modules': false}]
21+
]
22+
}
23+
}
24+
],
25+
exclude: /node_modules/,
26+
}
27+
]
28+
}
29+
};
30+
31+
module.exports = config;

0 commit comments

Comments
 (0)