https://github.com/richplastow/rollup-plugin-weenify
Rollup plugins for removing JavaScript code which a real-world app never uses
https://github.com/richplastow/rollup-plugin-weenify
compress coverage minify plugin rollup
Last synced: 1 day ago
JSON representation
Rollup plugins for removing JavaScript code which a real-world app never uses
- Host: GitHub
- URL: https://github.com/richplastow/rollup-plugin-weenify
- Owner: richplastow
- License: mit
- Created: 2023-01-10T10:24:01.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-16T00:14:22.000Z (over 3 years ago)
- Last Synced: 2025-02-24T02:49:29.775Z (over 1 year ago)
- Topics: compress, coverage, minify, plugin, rollup
- Language: JavaScript
- Homepage:
- Size: 85 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rollup-plugin-weenify
## Rollup plugins for removing JavaScript code which a real-world app never uses
---
### __Intro heading__
@TODO intro paragraph.
---
## General guide to setting up projects like this
### __Create the repo__
1. At GitHub, click the ‘+’ icon, and ‘New repository’
2. Name it, describe it, tick ‘Add a README file’, choose MIT license
3. Click ‘Create repository’
4. Click the ‘Code’ button, ‘Local’ tab, ‘SHH’, and the copy icon
5. In your Terminal, `cd` to wherever you work
6. `git clone ` and paste something like ‘git@github.com:kim/my-app.git’
7. `cd` into the new directory, eg `cd my-app`
### __Create the .gitignore file__
```
.DS_Store
node_modules.zip
node_modules
```
### __Create the package.json file__
1. Create a default package.json file:
`npm init --yes`
2. Change the version to 0.0.1:
`sed -i.bu 's/: "1.0.0",/: "0.0.1",/' package.json`
3. Insert your name, for example ‘Kim’:
`sed -i.bu 's/"author": "",/"author": "Kim",/' package.json`
4. Change the license to MIT:
`sed -i.bu 's/: "ISC",/: "MIT",/' package.json`
5. Remove the ‘main’ property because this is an app not a library,
and also tell Node to use `import` not `require()` (avoids needing .mjs):
`sed -i.bu 's/"main": "index.js"/"type": "module"/' package.json`
6. Delete the temporary file, package.json.bu:
`rm package.json.bu`