Skip to content

Commit

Permalink
switch from yarn to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
pirxpilot committed Oct 29, 2023
1 parent 748c189 commit e259172
Show file tree
Hide file tree
Showing 7 changed files with 1,650 additions and 1,486 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 'lts/*'
- run: yarn install
- uses: pnpm/action-setup@v2
with:
version: 8
run_install: false
- run: make
3 changes: 1 addition & 2 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
tasks:
- init: |
yarn
make
command: node app
ports:
- port: 3000
onOpen: open-preview
onOpen: open-preview
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@ all: lint test build
%.min.css: %.css
$(NODE_BIN)/cleancss -O1 --output $@ $<

node_modules: package.json $(wildcard yarn.lock)
yarn --cwd $(@D) --no-progress --frozen-lockfile --silent
node_modules: package.json $(wildcard pnpm.lock.yaml)
pnpm install -C $(@D) --silent --frozen-lockfile
touch $@

.NOTPARALLEL: node_modules

lint: | node_modules
$(NODE_BIN)/jshint $(LINT_SRC)

Expand All @@ -89,7 +91,7 @@ $(BUILD_DIR)/$(PROJECT)-embed.min.js: lib/embed/index.js | $(BUILD_DIR)

# stylus for CSS

$(CSS_DIR)/style.css: $(wildcard $(CSS_DIR)/*.styl)
$(CSS_DIR)/style.css: $(wildcard $(CSS_DIR)/*.styl) | node_modules

build: $(BUILD_DIR)/$(PROJECT).js $(CSS_DIR)/style.css $(BUILD_DIR)/$(PROJECT)-embed.js

Expand Down
4 changes: 0 additions & 4 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ Clone this repo (or your fork)

git clone git@github.com:pirxpilot/liftie.git && cd liftie

Install dependencies:

yarn

Build client side scripts: `make` will install all external components and trigger component build for you.

make
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
"css-select": "~5",
"debounce": "^1.0.0",
"debug": "~4",
"domelementtype": "^2.3.0",
"domhandler": "~5",
"dynload": "^1.0.2",
"el-component": "^1.0.1",
"errorhandler": "^1.5.0",
Expand Down
Loading

0 comments on commit e259172

Please sign in to comment.