diff --git a/README.md b/README.md index 520adfd1..d65f0ee4 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ The folks over at [MaxCDN](https://www.maxcdn.com) have graciously provided CDN Use the following in the `` tag of your HTML document(s): ```html - + ``` ## Breaking changes in V2 diff --git a/package.json b/package.json index 776eb95a..7957b3c8 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,9 @@ }, "dependencies": { "fs-extra": "^8.0.1", - "twemoji-parser": "12.0.0" + "jsonfile": "^5.0.0", + "twemoji-parser": "12.0.0", + "universalify": "^0.1.2" }, "files": [ "dist/twemoji*.js" diff --git a/scripts/deploy.sh b/scripts/deploy.sh index d26ab787..fe1248d7 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -13,11 +13,15 @@ git fetch --all git add -f $OUT git checkout $PUBLISH_BRANCH git pull origin $PUBLISH_BRANCH +cd "v/" +# If the folder already exists we want to repalce it if [ -d $VERSION ]; then rm -r $VERSION fi +# Create new version folder out of dist/ git mv -f $OUT $VERSION git commit -q -m "Update the Twemoji project and push to $PUBLISH_BRANCH" git push origin $PUBLISH_BRANCH # Return to your working branch -git checkout - \ No newline at end of file +git checkout - +cd $ROOT \ No newline at end of file diff --git a/scripts/generate b/scripts/generate index 3755b6d2..c2678d88 100755 --- a/scripts/generate +++ b/scripts/generate @@ -46,7 +46,7 @@ function createTwemoji() { ///////////////////////// // default assets url, by default will be Twitter Inc. CDN - base: 'https://twemoji.maxcdn.com/latest/', + base: 'https://twemoji.maxcdn.com/v/latest/', // default assets file extensions, by default '.png' ext: '.png', diff --git a/src/templates/preview.html b/src/templates/preview.html index 488883d7..b3a58f26 100644 --- a/src/templates/preview.html +++ b/src/templates/preview.html @@ -25,7 +25,7 @@ vertical-align: -0.1em; } - +