/Juejin-CheckIn-Lucky-Bugfix

掘金自动签到、免费抽奖、沾福气、收集bug油猴脚本

Primary LanguageJavaScript

juejin-check-lucky-bug

This template should help get you started developing Tampermonkey UserScript.

  • Support ESNext and ES Modules
  • Support CSS Modules and sass, scss, less, stylus
  • Support SVG Sprite
  • Support deal with static resources
  • Support international languages
  • It's build with rollup, thus you can add external plugins to achieve needed helpers

Settings

How to use CSS Processor(sass, scss, less, stylus)?

Install corresponding dependency:

  • For Sass install node-sass: yarn add node-sass --dev
  • For Stylus Install stylus: yarn add stylus --dev
  • For Less Install less: yarn add less --dev

That's it, you can now import .styl .scss .sass .less files in your library.

(Follow this guide)

How to add SVG to Sprite?

Settle the svg file to + src/svgfolder, and import it to sprite.js.

How to add plugins to rollup?

Config it in src/rollup_configs/default.js.

Project Setup

npm install

Watch and Compile for Development

npm run dev

Type-Check, Compile and Minify for Production

npm run build