https://github.com/serguun42/osnovacachernames
Userscript bringing users' previous names to Osnova platform.
https://github.com/serguun42/osnovacachernames
osnova userscript webpack
Last synced: 4 months ago
JSON representation
Userscript bringing users' previous names to Osnova platform.
- Host: GitHub
- URL: https://github.com/serguun42/osnovacachernames
- Owner: serguun42
- License: gpl-3.0
- Created: 2021-09-23T18:37:24.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-15T18:28:31.000Z (over 3 years ago)
- Last Synced: 2025-07-20T09:46:55.302Z (11 months ago)
- Topics: osnova, userscript, webpack
- Language: JavaScript
- Homepage: https://serguun42.ru/tampermonkey/osnova-cacher-names/osnova-cacher-names.user.js
- Size: 63.5 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Osnova Cacher Names
Userscript bringing users' previous names to Osnova platform.
## How it works
Core file [`src/core.js`](./src/core.js) imports necessary utils and modules. Webpack bundles all JS files in [`src`](./src) to single `build/osnova-cacher-names.user.js` – this bundled file is ready for use in _\*monkey_.
All [CSS and other resources](./resources) could be deployed to production server without any minification. For minification see `npm run resources` command.
## Build
1. Install necessary dependencies – `npm i --production`
2. Bundle userscript with [webpack](https://webpack.js.org/) and [`@serguun42/webpack-userscript-plugin`](https://www.npmjs.com/package/@serguun42/webpack-userscript-plugin) – `npm run build`
3. Minify all css with [postcss](https://github.com/postcss/postcss), [cssnano](https://cssnano.co/) and [autoprefixer](https://github.com/postcss/autoprefixer) and dump it to `build/` folder – `npm run resources`
## Development
1. Install all dependencies – `npm i`
2. Build userscript in [watch mode](https://webpack.js.org/configuration/watch/) – `npm run dev`, output to `dev/osnova-cacher-names.user.js`
3. Check project with ESLint – `npm run lint`
## Info
- [Introduction post](https://dtf.ru/269620)
- [Changelog posts](https://dtf.ru/tag/osnovanamescacher)
#### [License – GNU GPL v3](./LICENSE)