diff --git a/Gruntfile.js b/Gruntfile.js deleted file mode 100644 index 74cff4cf..00000000 --- a/Gruntfile.js +++ /dev/null @@ -1,22 +0,0 @@ -module.exports = function(grunt) { - - // Project configuration. - grunt.initConfig({ - pkg: grunt.file.readJSON('package.json'), // read the projects package for options - uglify: { - options: { - banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n' - }, - build: { - src: 'src/<%= pkg.name %>.js', - dest: 'build/<%= pkg.name %>.min.js' - } - } - }); - - // Load the plugin that provides the "uglify" task in the project. - grunt.loadNpmTasks('grunt-contrib-uglify'); - - // Default task(s). - grunt.registerTask('default', ['uglify']); -} diff --git a/function.js b/function.js deleted file mode 100644 index a1c8ced8..00000000 --- a/function.js +++ /dev/null @@ -1,6 +0,0 @@ -const koni = require("konimath") - -function log() { - console.log(koni) -} -log(); diff --git a/gulpfile.js b/gulpfile.js deleted file mode 100644 index e7e64efc..00000000 --- a/gulpfile.js +++ /dev/null @@ -1,20 +0,0 @@ -const { series } = require('gulp'); -const del = require('delete') - -// The `clean` function is not exported so it can be considered a private task. -// It can still be used within the `series()` composition. -function clean(cb) { - // body omitted - del(['output/*.js'], cb); - cb(); -} - -// The `build` function is exported so it is public and can be run with the `gulp` command. -// It can also be used within the `series()` composition. -function build(cb) { - // body omitted - cb(); -} - -exports.build = build; -exports.default = series(clean, build); diff --git a/tasks.js b/tasks.js deleted file mode 100644 index 0de3779f..00000000 --- a/tasks.js +++ /dev/null @@ -1,31 +0,0 @@ -const fs = require('fs'); -const util = require('util'); - -const DefaultRegistry = require('undertaker-registry'); -const del = require('del'); - -function CommonRegistry(opts){ - DefaultRegistry.call(this); - - opts = opts || {}; - - this.buildDir = opts.buildDir || './build'; -} - -// D !!! -util.inherits(CommonRegistry, DefaultRegistry); - -CommonRegistry.prototype.init = function(gulpInst) { - const buildDir = this.buildDir; - const exists = fs.existsSync(buildDir); - - if(exists){ - throw new Error('Cannot initialize common tasks. However, ' + buildDir + ' directory exists.'); - } - - gulpInst.task('clean', function(){ - return del([buildDir]); - }); -} - -module.exports = CommonRegistry;