Skip to content

Commit

Permalink
Organize the repo
Browse files Browse the repository at this point in the history
  • Loading branch information
murphyne committed Sep 10, 2019
1 parent 2b3e21f commit 40cd7a5
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
node_modules
39 changes: 39 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "dtf-expand",
"version": "0.3.0",
"description": "Expand feed items!",
"author": "mr-m",
"license": "ISC",
"main": "./src/main.js",
"devDependencies": {
"rollup": "^1.21.1"
},
"scripts": {
"build": "rollup -c rollup.conf.js"
}
}
20 changes: 20 additions & 0 deletions rollup.conf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
let bannerText = `
// ==UserScript==
// @name DTF: Expand feed items
// @namespace http://tampermonkey.net/
// @version 0.3.0
// @description Expand feed items!
// @author mr-m
// @match *://dtf.ru/*
// @grant none
// ==/UserScript==
`;

module.exports = {
input: 'src/main.js',
output: {
file: 'dist/dtf-expand.user.js',
format: 'esm',
banner: bannerText.trimStart(),
},
};
10 changes: 0 additions & 10 deletions dtf-expand.user.js → src/main.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
// ==UserScript==
// @name DTF: Expand feed items
// @namespace http://tampermonkey.net/
// @version 0.3.0
// @description Expand feed items!
// @author mr-m
// @match *://dtf.ru/*
// @grant none
// ==/UserScript==

;(async function dtfExpandFeed () {
"use strict";

Expand Down

0 comments on commit 40cd7a5

Please sign in to comment.