mirror of
https://github.com/veggiemonk/awesome-docker.git
synced 2024-06-17 18:33:08 +00:00
change to module
This commit is contained in:
parent
d98c56bc80
commit
e0838158dc
|
@ -1,5 +1,5 @@
|
||||||
const fetch = require('node-fetch');
|
import fetch from 'node-fetch';
|
||||||
const exclude = require('./exclude_in_test.json');
|
import exclude from './exclude_in_test.json';
|
||||||
|
|
||||||
const LINKS_OPTIONS = {
|
const LINKS_OPTIONS = {
|
||||||
redirect: 'error',
|
redirect: 'error',
|
|
@ -1,5 +1,5 @@
|
||||||
const fs = require('fs-extra');
|
import fs from 'fs-extra';
|
||||||
const helper = require('./common');
|
import helper from './common.mjs';
|
||||||
|
|
||||||
console.log({
|
console.log({
|
||||||
DEBUG: process.env.DEBUG || false,
|
DEBUG: process.env.DEBUG || false,
|
|
@ -1,6 +1,6 @@
|
||||||
const fs = require('fs-extra');
|
import fs from 'fs-extra';
|
||||||
const fetch = require('node-fetch');
|
import fetch from 'node-fetch';
|
||||||
const helper = require('./common');
|
import helper from './common.mjs';
|
||||||
|
|
||||||
function envvar_undefined(variable_name) {
|
function envvar_undefined(variable_name) {
|
||||||
throw new Error(`${variable_name} must be defined`);
|
throw new Error(`${variable_name} must be defined`);
|
Loading…
Reference in New Issue
Block a user