npm install tmkey
This Npm package can be used to develop Tampermonkey scripts. A scaffolding environment is built.
- In your empty project (without any files or folders other than .git), install this package
npm install tmkey
- Initialize the project
Then fill out the CLI questionnaire
tmkey init
- Write the code
Write the code in the
src/index.js
file. Support the introduction of npm packages. - Packaging
bash tmkey build
The packaged files are in thedist
folder.