8000 Switch package manager from yarn to npm by yhatt · Pull Request #379 · marp-team/marp-core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Switch package manager from yarn to npm #379

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 12 additions & 19 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,34 +22,27 @@ commands:
postinstall:
type: steps
default: []
yarn:
type: string
default: '^1.22.15'
steps:
- run:
name: Upgrade yarn for current user
command: cd ~ && yarn policies set-version << parameters.yarn >>

- restore_cache:
keys:
- v2.4-dependencies-{{ .Environment.CIRCLE_JOB }}-{{ checksum "yarn.lock" }}-{{ .Branch }}
- v2.4-dependencies-{{ .Environment.CIRCLE_JOB }}-{{ checksum "yarn.lock" }}-
- v2.4-dependencies-{{ .Environment.CIRCLE_JOB }}-
- v3-dependencies-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package-lock.json" }}-{{ .Branch }}
- v3-dependencies-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package-lock.json" }}-
- v3-dependencies-{{ .Environment.CIRCLE_JOB }}-

- run: yarn install --frozen-lockfile <<# parameters.force >>--ignore-engines<</ parameters.force >>
- run: npm ci <<# parameters.force >>--force<</ parameters.force >>
- steps: << parameters.postinstall >>

- save_cache:
key: v2.4-dependencies-{{ .Environment.CIRCLE_JOB }}-{{ checksum "yarn.lock" }}-{{ .Branch }}
key: v3-dependencies-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package-lock.json" }}-{{ .Branch }}
paths:
- ~/.cache/yarn
- ~/.npm

audit:
steps:
- checkout
- install:
postinstall:
- run: yarn -s check:audit
- run: npm -s run check:audit

prepare:
parameters:
Expand All @@ -67,25 +60,25 @@ commands:
steps:
- run:
name: Prettier formatting
command: yarn check:format
command: npm run check:format

- run:
name: TypeScript type checking
command: yarn check:ts
command: npm run check:ts

- run:
name: ESLint
command: yarn lint:js
command: npm run lint:js

- run:
name: stylelint
command: yarn lint:css
command: npm run lint:css

test:
steps:
- run:
name: Jest
command: yarn test:coverage --ci --maxWorkers=2 --reporters=default --reporters=jest-junit
command: npm run test:coverage -- --ci --maxWorkers=2 --reporters=default --reporters=jest-junit
environment:
JEST_JUNIT_OUTPUT_DIR: tmp/test-results

Expand Down
8 changes: 4 additions & 4 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ But this document hardly has contents! We are following [**the contributing guid

```bash
# Build
yarn build
npm run build

# Watch
yarn watch
npm run watch

# Watch with sandbox
yarn sandbox
npm run sandbox

# Output type definitions
yarn types
npm run types
```

### Official theme
Expand Down
1 change: 0 additions & 1 deletion .stylelintrc.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
extends:
- stylelint-config-standard-scss
- stylelint-config-prettier

rules:
at-rule-no-unknown:
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- Upgrade Marpit to [v3.1.1](https://github.com/marp-team/marpit/releases/v3.1.1) ([#378](https://github.com/marp-team/marp-core/pull/378))
- Bump markdown-it to [v14.1.0](https://github.com/markdown-it/markdown-it/blob/master/CHANGELOG.md#1410---2024-03-19), and follow the latest spec of [CommonMark 0.31.2](https://spec.commonmark.org/0.31.2/)
- Support for CSS nesting (`cssNesting` constructor option)
- Switch package manager from yarn to npm ([#379](https://github.com/marp-team/marp-core/pull/379))

## v3.9.0 - 2023-10-15

Expand Down
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,9 @@ In order to use on Marp tools, we have extended from the slide deck framework **
## Install

```bash
# npm
npm install --save @marp-team/marp-core
```

```bash
# yarn
yarn add @marp-team/marp-core
```

## Usage

We provide `Marp` class, that is inherited from [Marpit](https://github.com/marp-team/marpit).
Expand Down
Loading
0