This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
moduleFileExtensions: [ | |
"js", | |
"json", | |
// tell Jest to handle `*.vue` files | |
"vue", | |
], | |
transform: { | |
// process `*.vue` files with `vue-jest` | |
"^.+\\.vue$": "vue-jest", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// eslint-disable-next-line @typescript-eslint/no-var-requires | |
const { addBeforeLoader, loaderByName } = require("@craco/craco"); | |
// eslint-disable-next-line @typescript-eslint/no-var-requires | |
// eslint-disable-next-line @typescript-eslint/no-var-requires | |
const path = require("path"); | |
module.exports = { | |
devServer: (devServerConfig) => { | |
devServerConfig.writeToDisk = true; | |
return devServerConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import Spinner from './Spinner'; | |
const Card = ({ loadingData, showData, weather, forecast }) => { | |
const today = new Date(); | |
const day = today.getDate(); | |
const month = today.getMonth() + 1; | |
const year = today.getFullYear(); | |
const date = `${day} / ${month} / ${year} `; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var replace = require('gulp-replace'); | |
var gulp = require('gulp'); | |
var js = { | |
src: [ | |
'src/**/*.scss', | |
'src/**/*.css', | |
'src/**/*.tsx', //for the tsx files is in beta because it's including some strings like .remove or lorem ipsum, we need to tweak more the regexto exclude those | |
], | |
}; |
OlderNewer