fix: manifest related scripts
This commit is contained in:
parent
7f0c658220
commit
88f174cece
@ -10,7 +10,7 @@ fi
|
||||
|
||||
export NODE_ENV=development
|
||||
# swap manifests
|
||||
cp src/manifest.dev.json src/manifest.json
|
||||
cp manifest/manifest.dev.json manifest/manifest.json
|
||||
|
||||
# clean old dir
|
||||
rm -r dist/$dir_name
|
||||
@ -19,7 +19,7 @@ rm -r dist/$dir_name
|
||||
npm run dev:ch
|
||||
|
||||
# swap manifests back
|
||||
cp src/manifest.dev.json src/manifest.json
|
||||
cp manifest/manifest.dev.json manifest/manifest.json
|
||||
|
||||
# pack build
|
||||
cd dist/$dir_name
|
||||
|
@ -10,7 +10,7 @@ fi
|
||||
|
||||
export NODE_ENV=production
|
||||
# swap manifests
|
||||
cp src/manifest.ch.json src/manifest.json
|
||||
cp manifest/manifest.ch.json src/manifest.json
|
||||
|
||||
# clean old dir
|
||||
rm -r dist/$dir_name
|
||||
@ -19,7 +19,7 @@ rm -r dist/$dir_name
|
||||
npm run release:ch
|
||||
|
||||
# swap manifests back
|
||||
cp src/manifest.dev.json src/manifest.json
|
||||
cp manifest/manifest.dev.json src/manifest.json
|
||||
|
||||
# pack build
|
||||
cd dist/$dir_name
|
||||
|
@ -10,7 +10,7 @@ fi
|
||||
|
||||
export NODE_ENV=production
|
||||
# swap manifests
|
||||
cp src/manifest.ch.test.json src/manifest.json
|
||||
cp manifest/manifest.ch.test.json src/manifest.json
|
||||
|
||||
# clean old dir
|
||||
rm -r dist/$dir_name
|
||||
@ -19,7 +19,7 @@ rm -r dist/$dir_name
|
||||
npm run release:test:ch
|
||||
|
||||
# swap manifests back
|
||||
cp src/manifest.dev.json src/manifest.json
|
||||
cp manifest/manifest.dev.json src/manifest.json
|
||||
|
||||
# pack build
|
||||
cd dist/$dir_name
|
||||
|
@ -10,7 +10,7 @@ fi
|
||||
|
||||
export NODE_ENV=development
|
||||
# swap manifests
|
||||
cp src/manifest.ff.dev.json src/manifest.json
|
||||
cp manifest/manifest.ff.dev.json src/manifest.json
|
||||
|
||||
# clean old dir
|
||||
rm -r dist/$dir_name
|
||||
@ -19,7 +19,7 @@ rm -r dist/$dir_name
|
||||
npm run dev:ff
|
||||
|
||||
# swap manifests back
|
||||
cp src/manifest.dev.json src/manifest.json
|
||||
cp manifest/manifest.dev.json src/manifest.json
|
||||
|
||||
# pack build
|
||||
cd dist/$dir_name
|
||||
|
@ -10,7 +10,7 @@ fi
|
||||
|
||||
export NODE_ENV=production
|
||||
# swap manifests
|
||||
cp src/manifest.ff.json src/manifest.json
|
||||
cp manifest/manifest.ff.json src/manifest.json
|
||||
|
||||
# clean old dir
|
||||
rm -r dist/$dir_name
|
||||
@ -19,7 +19,7 @@ rm -r dist/$dir_name
|
||||
npm run release:ff
|
||||
|
||||
# swap manifests back
|
||||
cp src/manifest.dev.json src/manifest.json
|
||||
cp manifest/manifest.dev.json src/manifest.json
|
||||
|
||||
# pack build
|
||||
cd dist/$dir_name
|
||||
|
@ -10,7 +10,7 @@ fi
|
||||
|
||||
export NODE_ENV=production
|
||||
# swap manifests
|
||||
cp src/manifest.ff.test.json src/manifest.json
|
||||
cp manifest/manifest.ff.test.json src/manifest.json
|
||||
|
||||
# clean old dir
|
||||
rm -r dist/$dir_name
|
||||
@ -19,7 +19,7 @@ rm -r dist/$dir_name
|
||||
npm run release:test:ff
|
||||
|
||||
# swap manifests back
|
||||
cp src/manifest.dev.json src/manifest.json
|
||||
cp manifest/manifest.dev.json src/manifest.json
|
||||
|
||||
# pack build
|
||||
cd dist/$dir_name
|
||||
|
@ -24,10 +24,10 @@ def write_version(fpath: str, version: str):
|
||||
|
||||
|
||||
def save_manifest(version: str):
|
||||
data = os.listdir('src')
|
||||
data = os.listdir('manifest')
|
||||
for d in data:
|
||||
if d.endswith('.json') and d.startswith('manifest'):
|
||||
fpath = os.path.join('src', d)
|
||||
fpath = os.path.join('manifest', d)
|
||||
write_version(fpath, version)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user