Skip to content
Snippets Groups Projects
Commit cf021b8f authored by Anton Bershanskiy's avatar Anton Bershanskiy
Browse files

Simplified initial development environment setup process

parent 549e8bcd
No related branches found
No related tags found
No related merge requests found
......@@ -93,6 +93,13 @@ takes the following precautions:
The extension relies on `npm` modules and `webpack` for building.
To get started, follow these steps:
1. Download official [Node.js](https://nodejs.org/) installer and install it
2. Clone this repo somewhere and `cd` into that folder
3. Install all dependencies with `npm i`
4. Build the extension with `npm run build`
5. Make changes to files in `source/` and repeat step 4 to rebuild the extension
## Dependencies
This extesion uses the following `npm` modules: *TODO: WRITE WHICH ONES*
......
{
"name": "cookie-policy",
"version": "0.0.0",
"description": "*NOTE*: It's early on in the development process, so a lot can and will change.",
"main": "webpack.config.js",
"dependencies": {
"cookie": "^0.3.1"
},
"devDependencies": {
"ncp": "^2.0.0",
"webpack": "^4.25.1",
"webpack-cli": "^3.1.2"
},
"scripts": {
"test": "test",
"build": "webpack"
},
"repository": {
"type": "git",
"url": "git@gitlab.engr.illinois.edu:bershan2/cookie-policy.git"
},
"author": "Anton Bershanskiy",
"license": "ISC"
}
......@@ -38,8 +38,10 @@ for (const src of copy)
// Add all files that do require processing to webpack work order
var entries = {}
for (const file of files)
for (const file of files){
entries[file] = base + file
console.log("Added for packaging " + file)
}
// Ask webpack to process these files
module.exports = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment