mirror of
https://github.com/n8n-io/n8n.git
synced 2024-09-11 13:15:28 +03:00
Improve build command
This commit is contained in:
parent
900f2ec97b
commit
627249a0f0
@ -5,10 +5,10 @@ const { task, src, dest } = require('gulp');
|
||||
const ALLOWED_HEADER_KEYS = ['displayName', 'description'];
|
||||
const PURPLE_ANSI_COLOR_CODE = 35;
|
||||
|
||||
task('build:icons', copyIcons);
|
||||
task('build:assets', copyAssets);
|
||||
|
||||
function copyIcons() {
|
||||
src('nodes/**/*.{png,svg}').pipe(dest('dist/nodes'))
|
||||
function copyAssets() {
|
||||
src('nodes/**/*.{png,svg,node.json}').pipe(dest('dist/nodes'))
|
||||
|
||||
return src('credentials/**/*.{png,svg}').pipe(dest('dist/credentials'));
|
||||
}
|
||||
|
@ -16,13 +16,15 @@
|
||||
"types": "dist/src/index.d.ts",
|
||||
"scripts": {
|
||||
"dev": "npm run watch",
|
||||
"build:translations": "gulp build:translations",
|
||||
|
||||
"build_OLD": "tsc && gulp build:icons && gulp build:translations",
|
||||
|
||||
"build": "../../node_modules/.bin/esbuild {**/*,*/**/*,*/**/**/*,*/**/**/**/*}.ts --outdir=dist --platform=node --format=cjs && gulp build:icons && gulp build:translations",
|
||||
"clear": "rm -rf /Users/ivov/Development/n8n/packages/nodes-base/dist",
|
||||
|
||||
"esbuild": "find . -name '*.ts' -not -name '*.d.ts' | xargs esbuild --outdir=dist --platform=node --format=cjs && npm run gulp",
|
||||
"gulp": "gulp build:assets && gulp build:translations",
|
||||
|
||||
"format": "cd ../.. && node_modules/prettier/bin-prettier.js packages/nodes-base/**/**.ts --write",
|
||||
"lint": "tslint -p tsconfig.json -c tslint.json",
|
||||
"lintfix": "tslint --fix -p tsconfig.json -c tslint.json",
|
||||
|
Loading…
Reference in New Issue
Block a user