Skip to content

Commit

Permalink
imp(testing-apps): remove dependency to webpack-encore.tgz, do it in …
Browse files Browse the repository at this point in the history
…CI only + add some doc
  • Loading branch information
Kocal committed Aug 26, 2022
1 parent 8848e3d commit 575f5e1
Show file tree
Hide file tree
Showing 11 changed files with 1,943 additions and 20,395 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/testing_apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ jobs:
working_directory: test_apps/npm
script: |
npm install --ci
npm add --save-dev ../../webpack-encore.tgz
npm run encore dev
npm run encore production
- name: pnpm
working_directory: test_apps/pnpm
script: |
pnpm install --frozen-lockfile
pnpm add --save-dev ../../webpack-encore.tgz
pnpm run encore dev
pnpm run encore production
Expand All @@ -26,6 +28,7 @@ jobs:
script: |
yarn set version berry
yarn install --frozen-lockfile
yarn add --dev ../../webpack-encore.tgz
yarn run encore dev
yarn run encore production
Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
node_modules/
npm-debug.log*
/test_tmp

# Generated through "yarn pack --filename webpack-encore.tgz", useful for testing "testing apps" locally.
webpack-encore.tgz
18 changes: 18 additions & 0 deletions test_apps/npm/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Testing app: npm

This testing app is used to test how Encore installation and usage work when using the [**npm** package manager](https://docs.npmjs.com/cli/).

## Installation

```shell
$ (cd ../..; yarn pack --filename webpack-encore.tgz)
$ npm add --save-dev ../../webpack-encore.tgz
$ npm install
```

## Usage

```
$ npm run encore dev
$ npm run encore production
```

0 comments on commit 575f5e1

Please sign in to comment.