Update Yarn to v2, fix/upgrade dependencies, remove unused libs.

pull/3432/head
Julio Montoya 5 years ago
parent 6391f76bfd
commit 45cf4ff864
  1. 22
      .github/workflows/php.yml
  2. 7
      .gitignore
  3. 2
      .yarnrc.yml
  4. 28
      package.json
  5. 35602
      yarn.lock

@ -30,7 +30,7 @@ jobs:
- name: Setup apache
run: |
sudo apt update
sudo apt install apache2 php${{ matrix.php-versions }} php${{ matrix.php-versions }}-common php${{ matrix.php-versions }}-cli libapache2-mod-php${{ matrix.php-versions }}
sudo apt install nodejs npm apache2 php${{ matrix.php-versions }} php${{ matrix.php-versions }}-common php${{ matrix.php-versions }}-cli libapache2-mod-php${{ matrix.php-versions }}
sudo a2enmod rewrite actions
sudo cp -f tests/travis/gh-apache /etc/apache2/sites-available/000-default.conf
sudo chmod 777 -R $HOME
@ -67,9 +67,15 @@ jobs:
- name: Generate fos_js_routes.json
run: php bin/console fos:js-routing:dump --format=json --target=public/js/fos_js_routes.json
- name: Install Yarn
run: |
sudo npm install -g yarn
yarn set version berry
yarn --version
- name: Get yarn cache directory
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- name: Cache yarn dependencies
uses: actions/cache@v2
@ -80,15 +86,13 @@ jobs:
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-
- name: Yarn install
uses: borales/actions-yarn@v2.3.0
with:
cmd: install # will run `yarn install` command
- name: Install JS dependencies
run: |
yarn install
- name: Yarn run encore
uses: borales/actions-yarn@v2.3.0
with:
cmd: run encore production
run: |
yarn run encore production
- name: Start chrome
run: |

7
.gitignore vendored

@ -85,3 +85,10 @@ yarn-error.log
/.phpcs-cache
/phpcs.xml
###< squizlabs/php_codesniffer ###
.yarn/*
!.yarn/cache
!.yarn/releases
!.yarn/plugins
!.yarn/sdks
!.yarn/versions

@ -0,0 +1,2 @@
yarnPath: .yarn/releases/yarn-2.4.0.cjs
nodeLinker: node-modules

@ -5,17 +5,14 @@
"license": "GPL-3.0",
"dependencies": {
"@babel/plugin-transform-runtime": "^7.9.6",
"@babel/runtime": "^7.9.6",
"@fancyapps/fancybox": "^3.5.7",
"@fortawesome/fontawesome-svg-core": "^1.2.30",
"@fortawesome/free-solid-svg-icons": "^5.14.0",
"@fortawesome/vue-fontawesome": "fortawesome/vue-fontawesome",
"@fortawesome/vue-fontawesome": "^2.0",
"@tinymce/tinymce-vue": "^3.0",
"@vue/cli": "^4.5",
"apollo-boost": "^0.4",
"axios": "^0.21",
"babel": "^6.23.0",
"babel-eslint": "^10.1.0",
"babel-plugin-transform-builtin-extend": "^1.1.2",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.7.0",
@ -26,18 +23,17 @@
"bootstrap-vue": "^2.20",
"chart.js": "^2.9.3",
"ckeditor4": "^4.0.0",
"create-nuxt-app": "^3.5.2",
"cropper": "^4.0",
"datepair.js": "^0.4.16",
"dotenv": "^8.2.0",
"dropzone": "^5.5.1",
"easy-pie-chart": "^2.1.7",
"easytimer": "^1.1.1",
"eonasdan-bootstrap-datetimepicker": "^4.17",
"file-loader": "^6.2.0",
"eslint": "^7.20.0",
"file-loader": "^4.2.0",
"flag-icon-css": "^3.0",
"flatpickr": "^4.6.6",
"fullcalendar": "^5.3.2",
"graphql": "^15.0",
"highlight.js": "^10.0",
"hljs": "^6.2",
"html2canvas": "^1.0.0-rc.7",
@ -70,14 +66,15 @@
"select2": "^4.0",
"signature_pad": "^3.0.0-beta.4",
"sweetalert2": "^10.0",
"tempusdominus-bootstrap-4": "^5.39.0",
"tempusdominus-core": "^5.19.0",
"textcomplete": "^0.18.1",
"timeago": "^1.6.7",
"timepicker": "^1.11.14",
"tinymce": "^5.6",
"video.js": "^7.6.6",
"vue": "^2.6.12",
"vue-apollo": "^3.0",
"vue-flatpickr-component": "^9.0",
"vue-flatpickr-component": "^8.0",
"vue-i18n": "^8.17.4",
"vue-loader": "^15.7.0",
"vue-moment": "^4.1.0",
@ -92,23 +89,19 @@
"vuex-map-fields": "^1.4.0",
"vuex-persistedstate": "^3.0.1",
"webcamjs": "^1.0",
"webpack-jquery-ui": "^2.0.1",
"xcolor": "https://github.com/infusion/jQuery-xcolor"
"webpack-jquery-ui": "^2.0.1"
},
"devDependencies": {
"@babel/eslint-parser": "^7.0",
"@fortawesome/fontawesome-free": "^5.11",
"@symfony/webpack-encore": "~0.30",
"@symfony/webpack-encore": "^0.33",
"@vue/cli-plugin-babel": "~4.3.0",
"@vue/cli-plugin-eslint": "~4.3.0",
"@vue/cli-plugin-eslint": "~4.3",
"@vue/cli-service": "~4.3.0",
"babel-preset-react": "^6.24.1",
"bootstrap": "^4.5",
"copy-webpack-plugin": "^6.0",
"deepmerge": "^4.2.2",
"eslint": "^7.0",
"eslint-plugin-vue": "^7.0",
"eslint-webpack-plugin": "^2.0",
"fibers": "^5.0.0",
"filemanager-webpack-plugin": "^3.0",
"free-jqgrid": "https://github.com/chamilo/jqGrid.git#bs4",
@ -117,6 +110,7 @@
"popper.js": "^1.14.7",
"sass": "^1.26.5",
"sass-loader": "^8.0",
"typescript": "^3.8.3",
"webpack-notifier": "^1.13"
}
}

35602
yarn.lock

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save