-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unify package scripts, move ci files to tchap scripts folder (#519)
* move ci files to tchap scripts folder * fix lint * avoid using install-yarn-linked-repositories when not necessary * unify tchap package of scalingo and github * add yarn install * add yarn linkedin dependencies
- Loading branch information
Showing
14 changed files
with
74 additions
and
40 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,3 +28,4 @@ src/vector/modernizr.js | |
|
||
#remove tchap files from prettier | ||
patches/patches.json | ||
yarn-linked-dependencies/ |
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
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
File renamed without changes.
File renamed without changes.
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/bin/bash | ||
|
||
# Tchap: File copied from scripts/package.js | ||
# This file is meant to be used in scalingo and github actions | ||
|
||
set -e | ||
|
||
today=$(date +%Y%m%d) | ||
|
||
version=$(./scripts/tchap/get-version-from-package-json.sh) | ||
export VERSION=$version | ||
echo "VERSION is set to $VERSION" | ||
|
||
if [[ -n "$CONFIG" ]]; then | ||
echo "CONFIG=$CONFIG" | ||
cp "config.$CONFIG.json" config.json | ||
echo "Using config.$CONFIG.json" | ||
else | ||
echo "No config specified, using config.json." | ||
fi | ||
|
||
yarn clean | ||
yarn build | ||
|
||
mkdir -p dist | ||
cp -r webapp tchap-$version | ||
|
||
# if $version looks like semver with leading v, strip it before writing to file | ||
if [[ ${version} =~ ^v[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+(-.+)?$ ]]; then | ||
echo ${version:1} > tchap-$version/version | ||
else | ||
echo ${version} > tchap-$version/version | ||
fi | ||
|
||
# Copy the files in /dist, ready to be served. | ||
cp -r tchap-$version/* dist/ | ||
|
||
# Also make a tar file. Useful for releases. | ||
#tar chvzf tchap-$version-$CONFIG-$today.tar.gz dist | ||
rm -r tchap-$version | ||
|
||
echo | ||
echo "Packaged tchap-$version-$CONFIG" |
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
|
||
|
||
export default class TchapUrls { | ||
|
||
//url to request the opening of a new domain on Tchap | ||
public static requestDomainUrl = "https://www.demarches-simplifiees.fr/commencer/utiliser-tchap"; | ||
|
||
} | ||
} |