feat: workflow and basic style
This commit is contained in:
commit
a78dc0e2a2
|
|
@ -0,0 +1 @@
|
|||
node_modules
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
[submodule "tt-rss"]
|
||||
path = tt-rss
|
||||
url = https://git.tt-rss.org/fox/tt-rss.git
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
# ttrss-theme-sagiri
|
||||
|
||||
> Lovely theme for [Tiny Tiny RSS](https://tt-rss.org/)
|
||||
|
||||
WIP
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
@import "../tt-rss/css/default.less";
|
||||
|
|
@ -0,0 +1 @@
|
|||
Subproject commit ae376bdfbf96242a3b0df13f6c26a0785da573fe
|
||||
|
|
@ -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']
|
||||
})
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue