mirror of
https://github.com/twitter/twemoji.git
synced 2024-06-15 03:35:16 +00:00
Make versioned folders be behind v/
This commit is contained in:
parent
b8d6fd2b41
commit
63f11f8305
@ -17,7 +17,7 @@ The folks over at [MaxCDN](https://www.maxcdn.com) have graciously provided CDN
|
|||||||
|
|
||||||
Use the following in the `<head>` tag of your HTML document(s):
|
Use the following in the `<head>` tag of your HTML document(s):
|
||||||
```html
|
```html
|
||||||
<script src="https://twemoji.maxcdn.com/12.0.4/twemoji.min.js" crossorigin="anonymous"></script>
|
<script src="https://twemoji.maxcdn.com/v/latest/twemoji.min.js" crossorigin="anonymous"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
## Breaking changes in V2
|
## Breaking changes in V2
|
||||||
|
@ -41,7 +41,9 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"fs-extra": "^8.0.1",
|
"fs-extra": "^8.0.1",
|
||||||
"twemoji-parser": "12.0.0"
|
"jsonfile": "^5.0.0",
|
||||||
|
"twemoji-parser": "12.0.0",
|
||||||
|
"universalify": "^0.1.2"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"dist/twemoji*.js"
|
"dist/twemoji*.js"
|
||||||
|
@ -13,11 +13,15 @@ git fetch --all
|
|||||||
git add -f $OUT
|
git add -f $OUT
|
||||||
git checkout $PUBLISH_BRANCH
|
git checkout $PUBLISH_BRANCH
|
||||||
git pull origin $PUBLISH_BRANCH
|
git pull origin $PUBLISH_BRANCH
|
||||||
|
cd "v/"
|
||||||
|
# If the folder already exists we want to repalce it
|
||||||
if [ -d $VERSION ]; then
|
if [ -d $VERSION ]; then
|
||||||
rm -r $VERSION
|
rm -r $VERSION
|
||||||
fi
|
fi
|
||||||
|
# Create new version folder out of dist/
|
||||||
git mv -f $OUT $VERSION
|
git mv -f $OUT $VERSION
|
||||||
git commit -q -m "Update the Twemoji project and push to $PUBLISH_BRANCH"
|
git commit -q -m "Update the Twemoji project and push to $PUBLISH_BRANCH"
|
||||||
git push origin $PUBLISH_BRANCH
|
git push origin $PUBLISH_BRANCH
|
||||||
# Return to your working branch
|
# Return to your working branch
|
||||||
git checkout -
|
git checkout -
|
||||||
|
cd $ROOT
|
@ -46,7 +46,7 @@ function createTwemoji() {
|
|||||||
/////////////////////////
|
/////////////////////////
|
||||||
|
|
||||||
// default assets url, by default will be Twitter Inc. CDN
|
// 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'
|
// default assets file extensions, by default '.png'
|
||||||
ext: '.png',
|
ext: '.png',
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
vertical-align: -0.1em;
|
vertical-align: -0.1em;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script src="https://twemoji.maxcdn.com/latest/twemoji.min.js" crossorigin="anonymous"></script>
|
<script src="https://twemoji.maxcdn.com/v/latest/twemoji.min.js" crossorigin="anonymous"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<ul class="emoji-list">
|
<ul class="emoji-list">
|
||||||
|
Loading…
Reference in New Issue
Block a user