Skip to content

Commit

Permalink
chore(package.json): adapt scripts for pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
vscav committed May 31, 2023
1 parent f0d9e17 commit b1d0093
Show file tree
Hide file tree
Showing 10 changed files with 15,078 additions and 14,150 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# compiled output
dist/
.pnpm-store/

# dependencies
node_modules/
Expand All @@ -18,6 +19,8 @@ node_modules/
/npm-debug.log*
/testem.log
/yarn-error.log
package-lock.json
yarn.lock

# ember-try
/.node_modules.ember-try/
Expand Down
26 changes: 13 additions & 13 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,30 @@

## Installation

* `git clone <repository-url>`
* `cd ember-prismic-dom`
* `yarn install`
- `git clone <repository-url>`
- `cd ember-prismic-dom`
- `pnpm install`

## Linting

* `yarn lint`
* `yarn lint:fix`
- `pnpm lint`
- `pnpm lint:fix`

## Building the addon

* `cd ember-prismic-dom`
* `yarn build`
- `cd ember-prismic-dom`
- `pnpm build`

## Running tests

* `cd test-app`
* `yarn test` – Runs the test suite on the current Ember version
* `yarn test:watch` – Runs the test suite in "watch mode"
- `cd test-app`
- `pnpm test` – Runs the test suite on the current Ember version
- `pnpm test:watch` – Runs the test suite in "watch mode"

## Running the test application

* `cd test-app`
* `yarn start`
* Visit the test application at [http://localhost:4200](http://localhost:4200).
- `cd test-app`
- `pnpm start`
- Visit the test application at [http://localhost:4200](http://localhost:4200).

For more information on using ember-cli, visit [https://cli.emberjs.com/release/](https://cli.emberjs.com/release/).
8 changes: 4 additions & 4 deletions ember-prismic-dom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
],
"scripts": {
"build": "rollup --config",
"lint": "concurrently 'npm:lint:*(!fix)' --names 'lint:'",
"lint:fix": "concurrently 'npm:lint:*:fix' --names 'fix:'",
"lint": "concurrently 'pnpm:lint:*(!fix)' --names 'lint:'",
"lint:fix": "concurrently 'pnpm:lint:*:fix' --names 'fix:'",
"lint:hbs": "ember-template-lint . --no-error-on-unmatched-pattern",
"lint:js": "eslint . --cache",
"lint:hbs:fix": "ember-template-lint . --fix --no-error-on-unmatched-pattern",
"lint:js:fix": "eslint . --fix",
"start": "rollup --config --watch",
"test": "echo 'A v2 addon does not have tests, run tests in test-app'",
"prepack": "yarn run build",
"prepare": "yarn run build"
"prepack": "rollup --config",
"prepare": "rollup --config"
},
"dependencies": {
"@embroider/addon-shim": "^1.0.0",
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"license": "MIT",
"author": "",
"scripts": {
"build": "yarn workspace ember-prismic-dom run build",
"lint": "yarn workspaces run lint",
"lint:fix": "yarn workspaces run lint:fix",
"prepare": "yarn build",
"start": "concurrently 'npm:start:*' --restart-after 5000 --prefix-colors cyan,white,yellow",
"start:addon": "yarn workspace ember-prismic-dom run start",
"start:test-app": "yarn workspace test-app run start",
"test": "yarn workspaces run test"
"build": "pnpm --filter ember-prismic-dom build",
"lint": "pnpm --filter '*' lint",
"lint:fix": "pnpm --filter '*' lint:fix",
"prepare": "pnpm build",
"start": "concurrently 'pnpm:start:*' --restart-after 5000 --prefix-colors cyan,white,yellow",
"start:addon": "pnpm --filter ember-prismic-dom start",
"start:test-app": "pnpm --filter test-app start",
"test": "pnpm --filter '*' test"
},
"devDependencies": {
"@release-it-plugins/lerna-changelog": "^5.0.0",
Expand Down
Loading

0 comments on commit b1d0093

Please sign in to comment.