Skip to content

Commit

Permalink
Remove all gulp related stuff from package creation
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffesquivels committed Nov 3, 2022
1 parent 22a56c7 commit c23a4e5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 35 deletions.
33 changes: 0 additions & 33 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -621,25 +621,6 @@ gulp.task('run-build-node-istanbul', function () {
.pipe(gulp.dest('dist'));
});

const RELEASE_SOURCES = [
'dist/VERSION',
process.execPath
];

const RELEASE_LIB = [
'dist/node.*',
'dist/worker-*',
'dist/web.*'
];

const RELEASE_ADDONS = [
'build/Release/nimiq_node_compat.node',
'build/Release/nimiq_node_sse2.node',
'build/Release/nimiq_node_avx.node',
'build/Release/nimiq_node_avx2.node',
'build/Release/nimiq_node_avx512f.node'
];

gulp.task('eslint', function () {
const eslint = require('gulp-eslint');
return gulp.src(sources.all)
Expand Down Expand Up @@ -679,18 +660,4 @@ gulp.task('build', gulp.series(
)
));

// Build packages
gulp.task('prepare-packages', gulp.series('build-node', async function () {
gulp.src(RELEASE_SOURCES).pipe(gulp.dest('packaging/BUILD'));
gulp.src(['clients/nodejs/node-ui/**/*']).pipe(gulp.dest('packaging/BUILD/node-ui'));
gulp.src(['clients/nodejs/sample.conf']).pipe(gulp.dest('packaging/BUILD/fakeroot/etc/nimiq'));
gulp.src(['package.json']).pipe(replace('"architecture": "none"', `"architecture": "${env.architecture}"`)).pipe(gulp.dest('packaging/BUILD'));
gulp.src(['clients/nodejs/nimiq']).pipe(replace('node "\\$SCRIPT_PATH/index.js"', '/usr/share/nimiq/{{ cli_entrypoint }}')).pipe(gulp.dest('packaging/BUILD'));
gulp.src(['clients/nodejs/index.js', 'clients/nodejs/remote.js', 'clients/nodejs/keytool.js']).pipe(replace('../../dist/node.js', './lib/node.js')).pipe(gulp.dest('packaging/BUILD'));
gulp.src(['clients/nodejs/modules/*.js']).pipe(replace('../../../dist/', '../lib/')).pipe(gulp.dest('packaging/BUILD/modules'));
gulp.src(['node_modules/**/*'], {base: '.', dot: true }).pipe(gulp.dest('packaging/BUILD'));
gulp.src(RELEASE_LIB).pipe(gulp.dest('packaging/BUILD/lib'));
gulp.src(RELEASE_ADDONS).pipe(gulp.dest('packaging/BUILD/build'));
}));

gulp.task('default', gulp.series('build'));
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
"scripts": {
"prepare": "gulp build-node",
"build": "gulp build",
"build-deb": "gulp --architecture=`dpkg --print-architecture` prepare-packages && cd packaging/BUILD && mv fakeroot/etc/nimiq/sample.conf fakeroot/etc/nimiq/nimiq.conf && node-deb --no-default-package-dependencies -- node *.js VERSION build/ lib/ modules/ node-ui/ && mv *.deb ../../dist/",
"build-rpm": "gulp --architecture=`arch` prepare-packages && cd packaging && mv BUILD/fakeroot/etc/nimiq/sample.conf BUILD/fakeroot/etc/nimiq/nimiq.conf && rpmbuild -bb SPECS/nimiq.spec && mv RPMS/x86_64/*.rpm ../dist",
"esdoc": "esdoc",
"test": "jasmine && karma start",
"test-node": "jasmine",
Expand Down

0 comments on commit c23a4e5

Please sign in to comment.