Skip to content
Permalink
Browse files

Fixed preview generation and finished reorganization

  • Loading branch information
alanbato committed Jun 26, 2019
1 parent 54df6a1 commit 57d4cdb63b5a5ac5d53ed85e3d8ca008105728f9
Showing 3,096 changed files with 10 additions and 14,053 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
@@ -1,3 +1,4 @@
.DS_Store
node_modules/
build
dist/
@@ -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):
```html
<script src="https://twemoji.maxcdn.com/2/twemoji.min.js?12.0.4" crossorigin="anonymous"></script>
<script src="https://twemoji.maxcdn.com/12.0.4/twemoji.min.js" crossorigin="anonymous"></script>
```

## Breaking changes in V2
@@ -29,18 +29,18 @@
"type": "git",
"url": "git://github.com/twitter/twemoji.git"
},
"main": "./2/twemoji.npm.js",
"module": "./2/twemoji.esm.js",
"unpkg": "./2/twemoji.min.js",
"main": "./dist/twemoji.npm.js",
"module": "./dist/twemoji.esm.js",
"unpkg": "./dist/twemoji.min.js",
"scripts": {
"build": "./2/scripts/generate",
"test": "phantomjs ./2/test/testrunner.js",
"build": "./scripts/generate",
"test": "phantomjs ./src/test/testrunner.js",
"prepublish": "run-s build test"
},
"dependencies": {
"twemoji-parser": "12.0.0"
},
"files": [
"2/twemoji*.js"
"dist/twemoji*.js"
]
}
@@ -19,7 +19,7 @@ function distFile(...which) {
return path.join(__dirname, '..', 'dist', ...which);
}

fs.readdir(file('assets'), function (err, files) {
fs.readdir(file('assets/ai'), function (err, files) {
var page = fs.readFileSync(file('src/templates/preview.html')).toString().replace(
'{{emoji-list}}',
'<li>' + files.map(function (filename) {
@@ -25,7 +25,7 @@
vertical-align: -0.1em;
}
</style>
<script src="https://twemoji.maxcdn.com/12.0.4/twemoji.min.js" crossorigin="anonymous"></script>
<script src="https://twemoji.maxcdn.com/latest/twemoji.min.js" crossorigin="anonymous"></script>
</head>
<body>
<ul class="emoji-list">

This file was deleted.

0 comments on commit 57d4cdb

Please sign in to comment.
You can’t perform that action at this time.