Skip to content

Commit e985fa6

Browse files
Move repository from yarn to npm (#309)
* Move repository from yarn to npm * Update packages * Remove remaining tslint references * Update formatting * Remove issues in package.json * Update README
1 parent af9c173 commit e985fa6

File tree

15 files changed

+17162
-7579
lines changed

15 files changed

+17162
-7579
lines changed

.eslintrc.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/* eslint-env node */
2+
module.exports = {
3+
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
4+
parser: '@typescript-eslint/parser',
5+
plugins: ['@typescript-eslint'],
6+
root: true,
7+
rules: {
8+
'no-constant-condition': 'off',
9+
'no-empty': 'off',
10+
'no-extra-boolean-cast': 'off',
11+
'no-prototype-builtins': 'off',
12+
'no-useless-escape': 'off',
13+
'prefer-const': 'off',
14+
'no-case-declarations': 'off',
15+
'@typescript-eslint/ban-ts-comment': 'off',
16+
'@typescript-eslint/ban-types': 'off',
17+
'@typescript-eslint/no-explicit-any': 'off',
18+
'@typescript-eslint/no-namespace': 'off',
19+
'@typescript-eslint/no-this-alias': 'off',
20+
'@typescript-eslint/no-unsafe-declaration-merging': 'off',
21+
'@typescript-eslint/no-unused-vars': 'off',
22+
},
23+
overrides: [
24+
{
25+
files: ['*.ts', '*.tsx'],
26+
},
27+
],
28+
};

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,23 @@ jobs:
2424
uses: actions/cache@v2
2525
with:
2626
path: node_modules
27-
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}
27+
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}
2828
restore-keys: |
2929
${{ runner.os }}-node_modules-
3030
# see prepare script
3131
- name: Install Dependencies and Build Library
32-
run: yarn install
32+
run: npm install
3333
- name: TypeScript Tests
34-
run: yarn test:coverage --ci
34+
run: npm run test:coverage --ci
3535
- name: "Codacy: Report coverage"
3636
uses: codacy/codacy-coverage-reporter-action@master
3737
with:
3838
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
3939
coverage-reports: coverage/lcov.info
4040
if: (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name) && (success() || failure())
4141
- name: TypeScript Formatting
42-
run: yarn prettier:check
42+
run: npm run prettier:check
4343
if: success() || failure()
4444
- name: TypeScript Code Style
45-
run: yarn lint
45+
run: npm run lint
4646
if: success() || failure()

.github/workflows/e2e.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ jobs:
1313
- name: Cypress run
1414
uses: cypress-io/github-action@v4.1.0
1515
with:
16-
build: yarn build
17-
start: yarn start
16+
build: npm run build
17+
start: npm run start

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ Install the `@ls1intum/apollon` npm package using either [yarn](https://yarnpkg.
7474
yarn add @ls1intum/apollon
7575
```
7676

77+
```sh
78+
npm install @ls1intum/apollon
79+
```
80+
7781
Import the `ApollonEditor` class, which is the default export of the npm package:
7882

7983
```js
@@ -112,13 +116,13 @@ cd Apollon
112116
Install all node dependencies:
113117

114118
```
115-
yarn install
119+
npm install
116120
```
117121

118122
Launch the webpack-dev-server:
119123

120124
```
121-
yarn start
125+
npm run start
122126
```
123127

124128
The webpack-dev-server is now listening on [http://localhost:8888](http://localhost:8888). If you change a TypeScript file, webpack will automatically compile the code, bundle the application, and refresh the page in your browser.

docs/source/dev/setup.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ Install all node dependencies
1313

1414
.. code-block:: shell
1515
16-
yarn install
16+
npm install
1717
1818
Launch the webpack-dev-server:
1919

2020
.. code-block:: shell
2121
22-
yarn start
22+
npm run start
2323
2424
Run the tests:
2525

2626
.. code-block:: shell
2727
28-
yarn test
28+
npm run test

docs/source/user/getting-started.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ Install the `@ls1intum/apollon` npm package using either `yarn <https://yarnpkg.
1414
1515
yarn add @ls1intum/apollon
1616
17+
.. code-block:: bash
18+
19+
npm install @ls1intum/apollon
20+
1721
*******
1822
Usage
1923
*******

0 commit comments

Comments
 (0)