Skip to content

Commit

Permalink
WIP on addon testing
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Aug 4, 2021
1 parent 21b5daf commit aa07bd2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,23 @@ GREEN=`tput setaf 2`
RESET=`tput sgr0`
YELLOW=`tput setaf 3`

# HAS_YO=$(shell command yo)
# if [[ ${HAS_YO} -ne 0 ]]; then
# echo "Installing yo"
# npm install -g yo
# fi;

make-frontend: ## Builds just the Volto project
npm install -g yo
npm install -g @plone/generator-volto
npm install -g mrs-developer
yo @plone/volto project --addon ${ADDON} --workspace "src/addons/${DIR}" --no-interactive
ln -sf $$(pwd) project/src/addons/
cp .project.eslintrc.js .eslintrc.js
cd project && yarn
cd project && \
rm -rf node_modules && \
yalc add @plone/volto --no-pure && \
pnpm i
@echo "-------------------"
@echo "Project is ready!"
@echo "Now run: cd project && yarn start"
Expand Down
4 changes: 4 additions & 0 deletions jest-addon.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,8 @@ module.exports = {
statements: 5,
},
},
haste: {
enableSymlinks: true,
},
"watchman": false,
};
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,9 @@
"lint:fix": "../../../node_modules/eslint/bin/eslint.js --max-warnings=0 --fix 'src/**/*.{js,jsx}'",
"cypress:run": "../../../node_modules/cypress/bin/cypress run",
"cypress:open": "../../../node_modules/cypress/bin/cypress open"
},
"jest": {
"enableSymlinks": true
}

}

0 comments on commit aa07bd2

Please sign in to comment.