standard/index.js
2020-05-06 07:50:59 +02:00

29 lines
710 B
JavaScript

/*
* Copyright (C) SapphireCode - All Rights Reserved
* This file is part of Standard which is released under MIT.
* See file 'LICENSE' for full license details.
* Created by Timo Hocker <timo@sapphirecode.ovh>, May 2020
*/
'use strict';
const jenkins = require ('./asset_jenkins');
const jenkinsfile = require ('./asset_jenkinsfile');
const files = { jenkins, jenkinsfile };
const scripts = {
lint: 'eslint . --ext .js,.jsx,.ts,.tsx,.vue,.mjs',
test: {
common: 'nyc ava',
ts: 'tsc && nyc ava',
no: 'echo "no test"'
},
compile: {
common: 'tsc --allowJs --declaration --emitDeclarationOnly index.js',
ts: 'tsc'
}
};
module.exports = { files, scripts };