feat: workflow and basic style

This commit is contained in:
DIYgod 2019-05-02 15:06:12 +08:00
commit a78dc0e2a2
No known key found for this signature in database
GPG Key ID: EC0B76A252D3EF67
9 changed files with 6376 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
node_modules

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "tt-rss"]
path = tt-rss
url = https://git.tt-rss.org/fox/tt-rss.git

5
README.md Normal file
View File

@ -0,0 +1,5 @@
# ttrss-theme-sagiri
> Lovely theme for [Tiny Tiny RSS](https://tt-rss.org/)
WIP

1913
dist/sagiri.css vendored Normal file

File diff suppressed because one or more lines are too long

24
package.json Normal file
View File

@ -0,0 +1,24 @@
{
"name": "ttrss-theme-sagiri",
"version": "1.0.0",
"description": "As lovely as sagiri",
"main": "sagiri.css",
"scripts": {
"build": "NODE_ENV=production webpack --progress --display-error-details --colors"
},
"dependencies": {},
"devDependencies": {
"autoprefixer": "^9.5.1",
"css-loader": "^2.1.1",
"file-loader": "^3.0.1",
"less": "^3.9.0",
"less-loader": "^5.0.0",
"mini-css-extract-plugin": "^0.6.0",
"postcss-loader": "^3.0.0",
"url-loader": "^1.1.2",
"webpack": "^4.30.0",
"webpack-cli": "^3.3.1",
"webpack-dev-server": "^3.3.1",
"webpack-shell-plugin": "^0.5.0"
}
}

1
src/sagiri.less Normal file
View File

@ -0,0 +1 @@
@import "../tt-rss/css/default.less";

1
tt-rss Submodule

@ -0,0 +1 @@
Subproject commit ae376bdfbf96242a3b0df13f6c26a0785da573fe

54
webpack.config.js Normal file
View File

@ -0,0 +1,54 @@
const path = require('path');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const WebpackShellPlugin = require('webpack-shell-plugin');
module.exports = {
mode: 'production',
entry: {
sagiri: './src/sagiri.less'
},
output: {
path: path.resolve(__dirname, 'dist'),
filename: '[name].js'
},
module: {
rules: [
{
test: /\.less$/,
use: [
MiniCssExtractPlugin.loader,
'css-loader?-url',
{
loader: 'postcss-loader',
options: {
ident: 'postcss',
plugins: [
require('autoprefixer')({}),
]
}
},
'less-loader'
]
},
// {
// test: /\.(png|woff|woff2|eot|ttf|svg|gif)$/,
// use: [
// {
// loader: 'url-loader',
// options: {
// limit: 8192
// }
// }
// ]
// }
]
},
plugins: [
new MiniCssExtractPlugin({
filename: '[name].css'
}),
new WebpackShellPlugin({
onBuildEnd: ['rm dist/sagiri.js']
})
]
}

4374
yarn.lock Normal file

File diff suppressed because it is too large Load Diff