diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml new file mode 100644 index 0000000..a0fce81 --- /dev/null +++ b/.github/workflows/github-actions.yml @@ -0,0 +1,15 @@ +name: package installation test +run-name: Perform a test installation of packages 🚀 +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: install modules + run: npm cli + - run: echo "🖥️ npm install is ready" \ No newline at end of file diff --git a/insales-config.js b/insales-config.js index d9e19bd..3723c90 100644 --- a/insales-config.js +++ b/insales-config.js @@ -1,6 +1,9 @@ var extend = require('deepmix') var fs = require('fs') -var imagemin = require('gulp-imagemin') +// var imagemin = require('gulp-imagemin') +async function imagemin() { + const { default: imagemin } = await import('./node_modules/gulp-imagemin'); +} var autoprefixer = require('insales-uploader-autoprefixer') var jsValidate = require('gulp-jsvalidate'); diff --git a/package.json b/package.json index 0f1c703..6cd64d0 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,13 @@ { "name": "uploader-work-space", - "version": "0.3.0", + "version": "0.4.0", "description": "To work with Insales", "main": "insales-config.js", "dependencies": { "deepmix": "^1.0.0", - "gulp-imagemin": "^4.1.0", - "gulp-jsvalidate": "^4.0.0", - "insales-uploader": "^1.12.6", + "gulp-imagemin": "^8.0.0", + "gulp-jsvalidate": "^5.0.0", + "insales-uploader": "^1.13.2", "insales-uploader-autoprefixer": "^1.0.1" }, "browserslist": [