Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
zinyando committed Nov 23, 2023
1 parent f2969e2 commit 643f55d
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,31 @@ default:
.PHONY: clean
clean:
@echo "Clean..."
find packages -mindepth 2 -maxdepth 2 -type d -name 'tmp' -exec rm -rf "{}" \;
find packages -mindepth 2 -maxdepth 2 -type d ! -path 'packages/surrealdb' -exec find {} -type f -name '.bowerrc' -delete
find packages -mindepth 2 -maxdepth 2 -type d ! -path 'packages/surrealdb' -exec find {} -type f -name '.editorconfig' -delete
find packages -mindepth 2 -maxdepth 2 -type d ! -path 'packages/surrealdb' -exec find {} -type f -name '.ember-cli' -delete
find packages -mindepth 2 -maxdepth 2 -type d ! -path 'packages/surrealdb' -exec find {} -type f -name '.ember-cli.js' -delete
find packages -mindepth 2 -maxdepth 2 -type d ! -path 'packages/surrealdb' -exec find {} -type f -name '.eslintignore' -delete
find packages -mindepth 2 -maxdepth 2 -type d ! -path 'packages/surrealdb' -exec find {} -type f -name '.eslintrc.js' -delete
find packages -mindepth 2 -maxdepth 2 -type d ! -path 'packages/surrealdb' -exec find {} -type f-name '.gitignore' -delete
find packages -mindepth 2 -maxdepth 2 -type d ! -path 'packages/surrealdb' -exec find {} -type f -name '.gitkeep' -delete
find packages -mindepth 2 -maxdepth 2 -type d ! -path 'packages/surrealdb' -exec find {} -type f -name '.template-lintrc.js' -delete
find packages -mindepth 2 -maxdepth 2 -type d ! -path 'packages/surrealdb' -exec find {} -type f -name '.travis.yml' -delete
find packages -mindepth 2 -maxdepth 2 -type d ! -path 'packages/surrealdb' -exec find {} -type f -name '.watchmanconfig' -delete
find packages -mindepth 2 -maxdepth 2 -type d ! -path 'packages/surrealdb' -exec find {} -type f -name '.bowerrc' -delete \;
find packages -mindepth 2 -maxdepth 2 -type d ! -path 'packages/surrealdb' -exec find {} -type f -name 'ember-cli-build.js' -delete
find packages -mindepth 2 -maxdepth 2 -type d ! -path 'packages/surrealdb' -exec find {} -type f -name 'jsconfig.json' -delete
find packages -mindepth 2 -maxdepth 2 -type d ! -path 'packages/surrealdb' -exec find {} -type f -name 'package-lock.json' -delete
find packages -mindepth 2 -maxdepth 2 -type d ! -path 'packages/surrealdb' -exec find {} -type f -name 'README.md' -delete
find packages -mindepth 2 -maxdepth 2 -type d ! -path 'packages/surrealdb' -exec find {} -type f -name 'testem.js' -delete
find packages -mindepth 2 -maxdepth 2 -type d ! -path 'packages/surrealdb' -exec find {} -type f -name 'yarn.lock' -delete
find packages -mindepth 2 -maxdepth 2 -type d ! -path 'packages/surrealdb' -name '.git' -exec rm -rf "{}" \;
find packages -mindepth 2 -maxdepth 2 -type d ! -path 'packages/surrealdb' -name 'config' -exec rm -rf "{}" \;
find packages -mindepth 2 -maxdepth 2 -type d ! -path 'packages/surrealdb' -name 'dist' -exec rm -rf "{}" \;
find packages -mindepth 2 -maxdepth 2 -type d ! -path 'packages/surrealdb' -name 'tests' -exec rm -rf "{}" \;
find packages -mindepth 2 -maxdepth 2 -type d ! -path 'packages/surrealdb' -name 'tmp' -exec rm -rf "{}" \;
rm -rf node_modules
npx lerna@4.0.0 clean --yes
npx lerna clean --yes

.PHONY: setup
setup:
Expand Down

0 comments on commit 643f55d

Please sign in to comment.