mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-03 03:11:23 +01:00
Merge pull request #333 from leonbubova/main
Update build scripts, .gitignore and docs
This commit is contained in:
4 files changed
+11
-6
No files matched your search
@@ -29,3 +29,6 @@ yarn-error.log*
|
|||||||
*.sw*
|
*.sw*
|
||||||
|
|
||||||
node_modules
|
node_modules
|
||||||
|
|
||||||
|
# Build files
|
||||||
|
Extensions/combined/bundled-content-script.js
|
||||||
+5
-3
@@ -25,10 +25,12 @@ npm install
|
|||||||
2. Run the following command to create `bundled-content-script.js` which is used in `manifest.json`
|
2. Run the following command to create `bundled-content-script.js` which is used in `manifest.json`
|
||||||
|
|
||||||
```
|
```
|
||||||
npm run bundle
|
npm start // to create the build file(s) and start a file watcher that hot-reloads on save
|
||||||
```
|
|
||||||
|
|
||||||
This will also start a watcher that re-bundles automatically once you save a file inside the source.
|
// or
|
||||||
|
|
||||||
|
npm run build // to create the build file(s) once
|
||||||
|
```
|
||||||
|
|
||||||
Congratulations, You are now ready to develop!
|
Congratulations, You are now ready to develop!
|
||||||
|
|
||||||
|
|||||||
+3
-2
@@ -4,8 +4,9 @@
|
|||||||
"description": "Chrome extension to return youtube dislikes",
|
"description": "Chrome extension to return youtube dislikes",
|
||||||
"main": "ryd.content-script.js",
|
"main": "ryd.content-script.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"start": "node_modules/.bin/webpack \"./Extensions/combined/ryd.content-script.js\" -o \"./Extensions/combined\" --watch",
|
||||||
"bundle": "node_modules/.bin/webpack \"./Extensions/combined/ryd.content-script.js\" -o \"./Extensions/combined\""
|
"build": "node_modules/.bin/webpack \"./Extensions/combined/ryd.content-script.js\" -o \"./Extensions/combined\"",
|
||||||
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
@@ -10,5 +10,4 @@ module.exports = {
|
|||||||
ramda: "R",
|
ramda: "R",
|
||||||
},
|
},
|
||||||
module: {},
|
module: {},
|
||||||
watch: true
|
|
||||||
};
|
};
|
||||||
Reference in new issue
Block a user