From 3bb230a79aefd3eefa6b71545b43d0eef1b89b93 Mon Sep 17 00:00:00 2001 From: Ninad Kavimandan Date: Thu, 24 Jun 2021 10:51:42 +0530 Subject: [PATCH] added templates for gulp + grunt + webpack --- ci/grunt.yml | 27 ++++++++++++++++++++++++++ ci/gulp.yml | 27 ++++++++++++++++++++++++++ ci/properties/grunt.properties.json | 6 ++++++ ci/properties/gulp.properties.json | 6 ++++++ ci/properties/webpack.properties.json | 6 ++++++ ci/webpack.yml | 28 +++++++++++++++++++++++++++ 6 files changed, 100 insertions(+) create mode 100644 ci/grunt.yml create mode 100644 ci/gulp.yml create mode 100644 ci/properties/grunt.properties.json create mode 100644 ci/properties/gulp.properties.json create mode 100644 ci/properties/webpack.properties.json create mode 100644 ci/webpack.yml diff --git a/ci/grunt.yml b/ci/grunt.yml new file mode 100644 index 0000000..83464d1 --- /dev/null +++ b/ci/grunt.yml @@ -0,0 +1,27 @@ +name: Grunt CI + +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x, 14.x, 16.x] + + steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-node@v1 + with: + node-version: {{{ matrix.node-version }}} + + - name: npm install, build + run: | + npm install + grunt diff --git a/ci/gulp.yml b/ci/gulp.yml new file mode 100644 index 0000000..708f9b3 --- /dev/null +++ b/ci/gulp.yml @@ -0,0 +1,27 @@ +name: Gulp CI + +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x, 14.x, 16.x] + + steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-node@v1 + with: + node-version: {{{ matrix.node-version }}} + + - name: npm install, build + run: | + npm install + gulp diff --git a/ci/properties/grunt.properties.json b/ci/properties/grunt.properties.json new file mode 100644 index 0000000..b721ee4 --- /dev/null +++ b/ci/properties/grunt.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Grunt", + "description": "Build a Grunt project with npm.", + "iconName": "nodejs", + "categories": ["JavaScript", "npm", "Grunt"] +} diff --git a/ci/properties/gulp.properties.json b/ci/properties/gulp.properties.json new file mode 100644 index 0000000..9e5b02e --- /dev/null +++ b/ci/properties/gulp.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Gulp", + "description": "Build a Gulp project with npm.", + "iconName": "nodejs", + "categories": ["JavaScript", "npm", "Gulp"] +} diff --git a/ci/properties/webpack.properties.json b/ci/properties/webpack.properties.json new file mode 100644 index 0000000..4efd0b2 --- /dev/null +++ b/ci/properties/webpack.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Webpack", + "description": "Build a Webpack project with npm.", + "iconName": "nodejs", + "categories": ["JavaScript", "npm", "Webpack"] +} diff --git a/ci/webpack.yml b/ci/webpack.yml new file mode 100644 index 0000000..d79e907 --- /dev/null +++ b/ci/webpack.yml @@ -0,0 +1,28 @@ +name: Webpack CI + +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x, 14.x, 16.x] + + steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-node@v1 + with: + node-version: {{{ matrix.node-version }}} + + - name: npm install, build + run: | + npm install -g webpack webpack-cli --save-dev + npm install + npx webpack