Skip to content

Commit

Permalink
Use yarn instead of npm
Browse files Browse the repository at this point in the history
  • Loading branch information
swsnr committed Dec 31, 2023
1 parent 9c1d092 commit f82c9d1
Show file tree
Hide file tree
Showing 7 changed files with 2,168 additions and 2,869 deletions.
2 changes: 0 additions & 2 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ module.exports = {
// Build outputs
"/build/**/*",
"/dist/**/*",
// Node modules
"/node_modules/**/*",
// Generated types
"/@types/gir-generated/**/*",
],
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/node_modules/
# Package manager artifacts
/.yarn/
/.pnp.*

# Extension artifact
/dist/
Expand Down
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# Node configuration and modules
/package.json
/node_modules/
/.pnp.*

# Files I prefer not to be formatted
*.md
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dist: compile
mkdir -p ./dist/
mkdir -p ./build/ui
cp -t ./build/ui $(UIDEFS)
npm run dist:format
yarn dist:format
gnome-extensions pack --force --out-dir dist build \
--extra-source=../metadata.json \
--extra-source=ui \
Expand Down Expand Up @@ -53,35 +53,35 @@ install-package: dist

.PHONY: compile
compile: $(UIDEFS)
npm run compile
yarn compile

.PHONY: clean
clean:
rm -rf ./dist/ ./build/

.PHONY: generate
generate:
npm run generate:gir-types
yarn generate:gir-types

.PHONY: format
format:
npm run format -- --write
yarn format --write

.PHONY: lint
lint:
npm run lint
yarn lint

.PHONY: check-types
check-types:
npm run check:types
yarn check:types

.PHONY: check
check: lint check-types
npm run format -- --check
yarn format --check

.PHONY: fix
fix: format
npm run lint -- --fix
yarn lint --fix

$(UIDEFS): %.ui: %.blp
blueprint-compiler compile --output $@ $<
Loading

0 comments on commit f82c9d1

Please sign in to comment.