File tree 3 files changed +4
-16
lines changed
3 files changed +4
-16
lines changed Original file line number Diff line number Diff line change 2
2
/node_modules
3
3
/npm-debug.log
4
4
/coverage
5
- /src /api /cachedData /cache.js
5
+ /src /api /cachedData /cache.json
Original file line number Diff line number Diff line change 2
2
3
3
set -e
4
4
5
- if [ ! -s src/api/cachedData/cache.js ]; then
5
+ if [ ! -s src/api/cachedData/cache.json ]; then
6
6
echo ' Downloading cache...'
7
- babel-node src/api/cachedData/downloadCache.js > src/api/cachedData/cache.js
7
+ babel-node src/api/cachedData/downloadCache.js > src/api/cachedData/cache.json
8
8
echo ' Cached!'
9
9
fi
Original file line number Diff line number Diff line change @@ -48,19 +48,7 @@ async function cacheResource(resourseName) {
48
48
49
49
Promise . all ( resources . map ( cacheResource ) )
50
50
. then ( ( ) => {
51
- console . log (
52
- '/*eslint-disable */\n' +
53
- '/* Generated by combine.js */\n' +
54
- '// prettier-ignore\n' +
55
- 'var data = {\n' +
56
- Object . keys ( cache )
57
- . map ( function ( url ) {
58
- return ' "' + url + '": ' + JSON . stringify ( cache [ url ] ) ;
59
- } )
60
- . join ( ',\n' ) +
61
- '};\n' +
62
- 'export default data;' ,
63
- ) ;
51
+ console . log ( JSON . stringify ( cache , null , 2 ) ) ;
64
52
} )
65
53
. catch ( function ( err ) {
66
54
console . error ( err ) ;
You can’t perform that action at this time.
0 commit comments