Marlom
Marlom
PD🧩 Plasmo Developers
Created by batman12340 on 1/29/2024 in #👟framework
Plasmo setup with NX console
Built this simplified project.json with the info above and based on the latest plasmo package.json init. outputs should be updated based based on what browser it was built for.
{
"name": "extension-name",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/extension-name/src",
"projectType": "application",
"targets": {
"dev": {
"outputs": ["{workspaceRoot}/dist/apps/{projectName}/chrome-mv3-dev"],
"command": "plasmo dev --build-path=../../dist/apps/{projectName}",
"options": {
"cwd": "{projectRoot}"
}
},
"build": {
"command": "plasmo build",
"outputs": ["{workspaceRoot}/dist/apps/{projectName}/chrome-mv3-prod"],
"options": {
"cwd": "{projectRoot}"
},
"configurations": {
"local": {
"command": "plasmo build --build-path=../../dist/apps/{projectName}"
}
},
"defaultConfiguration": "local"
},
"package": {
"cache": false,
"outputs": ["{workspaceRoot}/dist/apps/{projectName}/chrome-mv3-prod.zip"],
"command": "plasmo package --build-path=../../dist/apps/{projectName}",
"options": {
"cwd": "{projectRoot}"
}
}
}
}
{
"name": "extension-name",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/extension-name/src",
"projectType": "application",
"targets": {
"dev": {
"outputs": ["{workspaceRoot}/dist/apps/{projectName}/chrome-mv3-dev"],
"command": "plasmo dev --build-path=../../dist/apps/{projectName}",
"options": {
"cwd": "{projectRoot}"
}
},
"build": {
"command": "plasmo build",
"outputs": ["{workspaceRoot}/dist/apps/{projectName}/chrome-mv3-prod"],
"options": {
"cwd": "{projectRoot}"
},
"configurations": {
"local": {
"command": "plasmo build --build-path=../../dist/apps/{projectName}"
}
},
"defaultConfiguration": "local"
},
"package": {
"cache": false,
"outputs": ["{workspaceRoot}/dist/apps/{projectName}/chrome-mv3-prod.zip"],
"command": "plasmo package --build-path=../../dist/apps/{projectName}",
"options": {
"cwd": "{projectRoot}"
}
}
}
}
16 replies