diff --git a/.gitignore b/.gitignore index 56997d77..9e5a1132 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .DS_Store node_modules/ build +dist/ diff --git a/README.md b/README.md index 204cfac3..520adfd1 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 a1687a27..b628bc4a 100644 --- a/package.json +++ b/package.json @@ -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" ] } diff --git a/scripts/preview b/scripts/preview index a069e4f3..9bebddf7 100755 --- a/scripts/preview +++ b/scripts/preview @@ -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}}', '
  • ' + files.map(function (filename) { diff --git a/src/templates/preview.html b/src/templates/preview.html index 6db8f553..488883d7 100644 --- a/src/templates/preview.html +++ b/src/templates/preview.html @@ -25,7 +25,7 @@ vertical-align: -0.1em; } - +