Merge pull request #719 from nextcloud/bugfix/noid/compile-js

Compile JS
This commit is contained in:
Simon L 2022-10-10 09:15:19 +02:00 коммит произвёл GitHub
Родитель 10325d9d78 7856b6dee9
Коммит af091f4977
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
7 изменённых файлов: 100 добавлений и 24 удалений

22
.github/workflows/build.yml поставляемый
Просмотреть файл

@ -1,22 +0,0 @@
name: Build
on: pull_request
jobs:
build-js:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 14, 16 ]
name: Build front-end with Node ${{ matrix.node-version }}
steps:
- uses: actions/checkout@master
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm ci
run: npm ci
- name: run tests
run: npm run build
env:
CI: true

57
.github/workflows/node.yml поставляемый Normal file
Просмотреть файл

@ -0,0 +1,57 @@
# This workflow is provided via the organization template repository
#
# https://github.com/nextcloud/.github
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
name: Node
on:
pull_request:
push:
branches:
- main
- master
- stable*
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
name: node
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Read package.json node and npm engines version
uses: skjnldsv/read-package-engines-version-actions@v1.2
id: versions
with:
fallbackNode: '^12'
fallbackNpm: '^6'
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
uses: actions/setup-node@v3
with:
node-version: ${{ steps.versions.outputs.nodeVersion }}
- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"
- name: Install dependencies & build
run: |
npm ci
npm run build --if-present
- name: Check webpack build changes
run: |
bash -c "[[ ! \"`git status --porcelain `\" ]] || (echo 'Please recompile and commit the assets, see the section \"Show changes on failure\" for details' && exit 1)"
- name: Show changes on failure
if: failure()
run: |
git status
git --no-pager diff
exit 1 # make it red to grab attention

2
.gitignore поставляемый
Просмотреть файл

@ -1,6 +1,4 @@
/build
/js
/node_modules
/nbproject/private/

2
.l10nignore Normal file
Просмотреть файл

@ -0,0 +1,2 @@
js/
vendor/

3
js/settings.js Normal file

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -0,0 +1,37 @@
/*
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*!
* Chart.js v2.9.4
* https://www.chartjs.org
* (c) 2020 Chart.js Contributors
* Released under the MIT License
*/
/*!
* Vue.js v2.7.10
* (c) 2014-2022 Evan You
* Released under the MIT License.
*/
//! moment.js
//! moment.js locale configuration

1
js/settings.js.map Normal file

Различия файлов скрыты, потому что одна или несколько строк слишком длинны