diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..64c37c4 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,20 @@ +kind: pipeline +name: default + +steps: + - name: setup + image: node:lts-alpine + commands: + - apk add --no-cache curl + - yarn + - curl https://git.scode.ovh/Timo/standard/raw/branch/master/ci.js > ci.js + + - name: build + image: node:lts-alpine + environment: + TOKEN: + from_secret: npm_token + commands: + - echo "$TOKEN" > ~/.npmrc + - npm i -g typescript + - node ci.js diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index bd53ef7..0000000 --- a/Jenkinsfile +++ /dev/null @@ -1,23 +0,0 @@ -pipeline { - agent any - - environment { - VERSION = VersionNumber([ - versionNumberString: - '${BUILDS_ALL_TIME}', - versionPrefix: '2.1.', - worstResultForIncrement: 'SUCCESS' - ]) - } - - stages { - stage('Building') { - steps { - script { - currentBuild.displayName = env.VERSION - } - sh 'yarn ci ${VERSION}' - } - } - } -} diff --git a/jenkins.js b/jenkins.js deleted file mode 100644 index a5f08d4..0000000 --- a/jenkins.js +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (C) Sapphirecode - All Rights Reserved - * This file is part of eslint-config which is released under MIT. - * See file 'LICENSE' for full license details. - * Created by Timo Hocker , May 2020 - */ - -'use strict'; - -const https = require ('https'); -const fs = require ('fs'); -const { execSync: exec_sync } = require ('child_process'); - -const run_file = fs.createWriteStream ('.jenkins.run.js'); - -const [ - ,, ...args -] = process.argv; - -run_file.on ('close', () => { - exec_sync (`node .jenkins.run.js ${args.join (' ')}`, { stdio: 'inherit' }); -}); - -https.get ( - 'https://git.scode.ovh/Timo/standard/raw/branch/master/jenkins.run.js', - (msg) => { - msg.pipe (run_file); - } -); diff --git a/package.json b/package.json index f2e3963..5f0d700 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,11 @@ { "name": "@sapphirecode/eslint-config", - "version": "1.0.0", + "version": "2.1.14", "description": "scode eslint standard configuration", "main": "index.js", "scripts": { "lint": "eslint . --ext .js,.jsx,.ts,.tsx,.vue,.mjs", "test": "echo \"no test\"", - "ci": "yarn --frozen-lockfile && node jenkins.js", "compile": "tsc --allowJs --declaration --emitDeclarationOnly index.js" }, "repository": {