2
0
mirror of https://github.com/iconify/iconify.git synced 2024-11-09 23:00:56 +00:00

cleanup: remove old build stuff

This commit is contained in:
Joaquín Sánchez Jiménez 2022-03-14 16:17:29 +01:00
parent 84e9b9f277
commit e20e4d9b36
5 changed files with 8 additions and 49 deletions

View File

@ -1,17 +0,0 @@
/* eslint-disable */
const { buildFiles } = require('@iconify/library-builder');
buildFiles({
root: __dirname,
source: './src',
target: './lib',
cleanup: true,
updateExports: true,
})
.then(() => {
console.log('Done');
})
.catch((err) => {
console.error(err);
process.exit(1);
});

View File

@ -1,8 +1,10 @@
// see https://jestjs.io/docs/ecmascript-modules
/** @type {() => import('ts-jest/dist/types').InitialOptionsTsJest} */
/** @return {import('ts-jest/dist/types').InitialOptionsTsJest} */
const buildConfiguration = (configuration) => {
/**
* Jest shared configuration: see https://jestjs.io/docs/ecmascript-modules.
*
* @param {import('ts-jest/dist/types').InitialOptionsTsJest} configuration
* @return {import('ts-jest/dist/types').InitialOptionsTsJest}
*/
function buildConfiguration(configuration) {
return Object.assign({}, {
verbose: true,
testEnvironment: 'node',

View File

@ -1,8 +0,0 @@
{
"extends": "./tsconfig-base.json",
"include": ["src/**/*.ts", ".eslintrc.js"],
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib"
}
}

View File

@ -16,8 +16,7 @@
"clean": "rimraf lib tests-compiled tsconfig.tsbuildinfo",
"lint": "eslint --fix src/**/*.ts",
"prebuild": "npm run lint && npm run clean",
"build": "node build",
"build-dual": "unbuild",
"build": "unbuild",
"test:jest": "jest --runInBand",
"test:jasmine": "cross-env NODE_OPTIONS=--experimental-vm-modules npx jasmine",
"test": "npm run test:jest && npm run test:jasmine",

View File

@ -1,17 +0,0 @@
{
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib",
"target": "ES2019",
"module": "CommonJS",
"declaration": true,
"declarationMap": false,
"sourceMap": false,
"composite": true,
"strict": true,
"moduleResolution": "node",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"importsNotUsedAsValues": "error"
}
}