Skip to content
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

feat: Add support to yarn. #1261

Merged
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
3 changes: 2 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ A clear and concise description of what you expected to happen.
- Your OS:
- Web Browser:
- Node.js version:
- adempiere-vue version:
- Yarn version:
- adempiere-vue version: <!-- 4.4.0. -->

#### Additional context
Add any other context about the problem here.
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache: 'yarn'

- name: Set tag version into config file
run: sed -i "s|releaseNoForDocumentation|${{ github.event.release.tag_name }}|g" config/default.json

- name: Install packages
run: npm ci
- name: Run test
run: npm test
run: yarn ci

- name: Compile dist
run: npm run build:prod --if-present
run: yarn build:prod

- name: Upload dist app
uses: actions/upload-artifact@v2
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/push-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache: 'yarn'

- name: Set tag version into config file
run: sed -i "s|releaseNoForDocumentation|${{ github.event.release.tag_name }}|g" config/default.json

- name: Install packages
run: npm ci
- name: Run test
run: npm test
run: yarn ci

- name: Compile dist
run: npm run build:prod --if-present
run: yarn build:prod

- name: Upload dist app
uses: actions/upload-artifact@v2
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ config/certs/*.pem
.classpath
.project

.talismanrc
.talismanrc

package-lock.json
16 changes: 8 additions & 8 deletions README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,10 @@ git clone -b develop git@github.com:adempiere/adempiere-vue.git
cd adempiere-vue

# instale las dependencias
npm install
yarn install

# corra el proyecto como desarrollador
npm run dev
yarn dev
```

Automáticamente se abrirá el siguiente enlace en su navegador http://localhost:9527
Expand All @@ -269,26 +269,26 @@ Automáticamente se abrirá el siguiente enlace en su navegador http://localhost

```bash
# Construcción para entornos de prueba
npm run build:stage
yarn build:stage

# Construcción para entornos de producción
npm run build:prod
yarn build:prod
```

## Avanzado

```bash
# Vista previa con efectos de entorno
npm run preview
yarn preview

# Vista previa con efectos + análisis de recursos estáticos
npm run preview -- --report
yarn preview --report

# Chequeo de formato de código
npm run lint
yarn lint

# Chequeo de formato de código y auto-corrección
npm run lint -- --fix
yarn lint --fix
```

Vaya a [Documentación](https://adempiere.github.io/adempiere-vue/es/guide/essentials/deploy.html#compilar) para mayor información.
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,10 @@ git clone -b develop git@github.com:adempiere/adempiere-vue-.git
cd adempiere-vue

# install dependency
npm install
yarn install

# develop
npm run dev
yarn dev
```

This will automatically open http://localhost:9527
Expand All @@ -287,26 +287,26 @@ This will automatically open http://localhost:9527

```bash
# build for test environment
npm run build:stage
yarn build:stage

# build for production environment
npm run build:prod
yarn build:prod
```

## Advanced

```bash
# preview the release environment effect
npm run preview
yarn preview

# preview the release environment effect + static resource analysis
npm run preview -- --report
yarn preview --report

# code format check
npm run lint
yarn lint

# code format check and auto fix
npm run lint -- --fix
yarn lint --fix
```

Refer to [Documentation](https://adempiere.github.io/adempiere-vue/guide/essentials/deploy.html#build) for more information
Expand Down
Loading