初期環境を構築

This commit is contained in:
yuki540 2018-02-20 00:09:08 +09:00
parent a551f02060
commit d4c7acdda6
61 changed files with 13411 additions and 0 deletions

4
.babelrc Normal file
View File

@ -0,0 +1,4 @@
{
"presets": ["es2015"],
"plugins": ["transform-runtime"]
}

6
.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
node_modules/
.DS_Store
public/stylesheets/style.css
public/scripts/*.js
public/scripts/*.js.map

8182
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

38
package.json Normal file
View File

@ -0,0 +1,38 @@
{
"name": "DropOut",
"version": "6.0.0",
"description": "yuki540.com v6 「DropOut」",
"main": "webpack.config.babel.js",
"scripts": {
"build": "npx webpack --progress --colors",
"watch": "npx webpack --watch --progress --colors",
"start": "ruby -run -e httpd public 8080"
},
"repository": {
"type": "git",
"url": "git+https://github.com/yuki540net/DropOut.git"
},
"keywords": [
"yuki540",
"yuki540.com"
],
"author": "yuki540",
"license": "MIT",
"bugs": {
"url": "https://github.com/yuki540net/DropOut/issues"
},
"homepage": "https://github.com/yuki540net/DropOut#readme",
"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-es2015": "^6.24.1",
"css-loader": "^0.28.9",
"extract-text-webpack-plugin": "^3.0.2",
"node-sass": "^4.7.2",
"node-sass-glob-importer": "^5.1.0",
"sass-loader": "^6.0.6",
"style-loader": "^0.20.2",
"webpack": "^3.11.0"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 231 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

BIN
public/images/memories/calil.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 285 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
public/images/product/nicoJS.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

BIN
public/images/product/ontama.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

BIN
public/images/product/toa.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

BIN
public/images/product/wakaba.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

43
public/index.html Normal file
View File

@ -0,0 +1,43 @@
<!--
################################################################
「ハロー、ミライアカリだよっ!ピロリン」
「デベロッパーツール開くなんて、悪い子ちゃん❤️」
################################################################
Designed by yuki540.
-->
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8">
<meta name="description" content="「今日も明日も、ぐーたら生活。」">
<meta name="keywords" content="yuki540,satella.io,yuki540.com,DropOut">
<title>DropOut</title>
<meta name="viewport" content="width=device-width,user-scalable=no,maximum-scale=1">
<meta property="og:url" content="https://yuki540.com">
<meta property="og:image" content="https://yuki540.com/images/ogp.png">
<meta property="og:type" content="website">
<meta property="og:title" content="DropOut">
<meta property="og:site_name" content="yuki540.com">
<meta property="og:description" content="「今日も明日も、ぐーたら生活。」">
<meta property="og:locale" content="ja_JP">
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@eriri_jp" />
<meta name="twitter:title" content="DropOut" />
<meta name="twitter:description" content="「今日も明日も、ぐーたら生活。」" />
<meta name="twitter:image" content="https://yuki540.com/images/ogp.png" />
<link rel="shortcut icon" href="https://yuki540.com/images/profile/yuki540.png" />
<link rel="apple-touch-icon" href="https://yuki540.com/images/profile/yuki540.png" />
<link rel="stylesheet" href="./stylesheets/font-awesome-4.7.0/css/font-awesome.min.css" />
<link rel="stylesheet" href="./stylesheets/font.css" />
<link rel="stylesheet" href="./stylesheets/style.css" />
</head>
<body>
<main id="root"></main>
<script type="text/javascript" src="./scripts/app.min.js"></script>
</body>
</html>

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 434 KiB

View File

@ -0,0 +1,17 @@
@font-face {
font-family: 'Boku';
src: url('font/Boku.ttf') format('truetype');
src: url('font/Boku.otf') format('opentype');
}
@font-face {
font-family: 'Chibit';
src: url('font/chibit.ttf') format('truetype');
src: url('font/chibit.otf') format('opentype');
}
@font-face {
font-family: 'Nagomi';
src: url('font/nagomi.ttf') format('truetype');
src: url('font/nagomi.otf') format('opentype');
}

BIN
public/stylesheets/font/Boku.eot Executable file

Binary file not shown.

BIN
public/stylesheets/font/Boku.otf Executable file

Binary file not shown.

BIN
public/stylesheets/font/Boku.ttf Executable file

Binary file not shown.

BIN
public/stylesheets/font/Boku.woff Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

6
src/scripts/app.js Normal file
View File

@ -0,0 +1,6 @@
console.log('##############################################')
console.log(' どーもーココロヤミです')
console.log(' そんなにこのサイトの仕組みが知りたいの?')
console.log(' ↓ ここにコードがあるから、Starつけてよね❤')
console.log(' https://github.com/yuki540net/DropOut')
console.log('##############################################')

0
src/scss/_function.scss Normal file
View File

11
src/scss/_mixin.scss Normal file
View File

@ -0,0 +1,11 @@
@mixin pc-layout {
@media (min-width: 481px) {
@content;
}
}
@mixin sp-layout {
@media (max-width: 480px) {
@content;
}
}

2
src/scss/_variable.scss Normal file
View File

@ -0,0 +1,2 @@
$min-width: 1100px;
$min-height: 650px;

View File

@ -0,0 +1,32 @@
html, body {
margin: 0;
padding: 0;
}
body {
font-family: 'Boku';
color: #4c4c4c;
}
img { vertical-align: bottom; }
a {
color: rgb(0,150,255);
text-decoration: none;
}
h1, h2, h3, h4, h5, h6, p, ul {
margin: 0;
padding: 0;
}
li { list-style: none; }
input, textarea {
-webkit-appearance: none;
border: none;
padding: 0;
border-radius: 0;
}
iframe { border: none; }

4
src/scss/style.scss Normal file
View File

@ -0,0 +1,4 @@
@import 'variable', 'mixin', 'function';
@import 'modules/**/*.scss';
@import 'keyframes/**/*.scss';

54
webpack.config.babel.js Normal file
View File

@ -0,0 +1,54 @@
import webpack from 'webpack'
import ExtractTextPlugin from 'extract-text-webpack-plugin'
import globImpoter from 'node-sass-glob-importer'
const js = {
entry: `${ __dirname }/src/scripts/app.js`,
output: {
path: `${ __dirname }/public/scripts`,
filename: 'app.min.js'
},
module: {
rules: [
{
test: /(\.js|\.json)/,
use: ['babel-loader']
}
]
},
devtool: 'source-map',
plugins: [
new webpack.optimize.UglifyJsPlugin({
sourceMap: true
})
]
}
const css = {
entry: `${ __dirname }/src/scss/style.scss`,
output: {
path: `${ __dirname }/public/stylesheets`,
filename: 'style.css'
},
module: {
rules: [
{
test: /\.scss$/,
use: ExtractTextPlugin.extract([
{ loader: 'css-loader' },
{
loader: 'sass-loader',
options: {
importer: globImpoter()
}
}
])
}
]
},
plugins: [
new ExtractTextPlugin('style.css')
]
}
module.exports = [js, css]