Skip to content

Commit

Permalink
Merge pull request ritz078#205 from ritz078/fix-build
Browse files Browse the repository at this point in the history
Fix build
  • Loading branch information
ritz078 authored Jan 25, 2017
2 parents 42aed0c + 7b778d5 commit c244a48
Show file tree
Hide file tree
Showing 21 changed files with 16 additions and 8,486 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ node_modules/
.tmp/
npm-debug.log
.DS_Store
src/jquery.embed.js
embed.js.sublime-project
embed.js.sublime-workspace
.sass-cache
bower_components
dist
6 changes: 3 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ module.exports = function (grunt) {
style: 'expanded'
},
files : {
'src/embed.css': 'src/css/embed.scss'
'dist/embed.css': 'src/css/embed.scss'
}
}
},
Expand All @@ -117,7 +117,7 @@ module.exports = function (grunt) {
},
build : {
files: {
'dist/embed.min.js': 'src/embed.js'
'dist/embed.min.js': 'dist/embed.js'
}
}
},
Expand Down Expand Up @@ -146,7 +146,7 @@ module.exports = function (grunt) {
'string-replace': {
dist: {
files : {
'.tmp/embed.css': 'src/embed.css'
'.tmp/embed.css': 'dist/embed.css'
},
options: {
replacements: [{
Expand Down
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ <h1>Loading embed.js in a block</h1>
<script src="//platform.twitter.com/widgets.js"></script>
<script src="https://cdn.plyr.io/1.6.18/plyr.js"></script>
<script src="https://cdn.jsdelivr.net/prism/1.4.1/prism.js"></script>
<script src="../src/embed.js"></script>
<script src="../dist/embed.js"></script>
<script>
EmbedJS.setOptions({
// element: document.getElementById('block'),
Expand Down
Binary file removed dist/assets/fonts/emoticons.eot
Binary file not shown.
44 changes: 0 additions & 44 deletions dist/assets/fonts/emoticons.svg

This file was deleted.

Binary file removed dist/assets/fonts/emoticons.ttf
Binary file not shown.
Binary file removed dist/assets/fonts/emoticons.woff
Binary file not shown.
Binary file removed dist/assets/images/emojis.png
Binary file not shown.
Binary file removed dist/assets/images/[email protected]
Binary file not shown.
17 changes: 0 additions & 17 deletions dist/assets/images/loader.svg

This file was deleted.

1 change: 0 additions & 1 deletion dist/embed.min.css

This file was deleted.

10 changes: 0 additions & 10 deletions dist/embed.min.js

This file was deleted.

12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@
"jquery-embed",
"emoji"
],
"main": "./src/embed.js",
"jsnext:main": "./src/embed.es2015.js",
"main": "./dist/embed.js",
"jsnext:main": "./dist/embed.es2015.js",
"files": [
"dist",
"src",
"demo"
],
"repository": {
"type": "git",
"url": "https://github.com/ritz078/embed.js.git"
Expand Down Expand Up @@ -84,7 +89,8 @@
},
"scripts": {
"commit": "git-cz",
"test": "ava test/**/*.test.js --require babel-register"
"test": "ava test/**/*.test.js --require babel-register",
"prepublish": "grunt dist"
},
"config": {
"commitizen": {
Expand Down
2 changes: 1 addition & 1 deletion rollup.es2015.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var banner = "/*\n" +

var config = {
entry : 'src/js/main.js',
dest : 'src/embed.es2015.js',
dest : 'dist/embed.es2015.js',
format : 'es',
banner : banner,
sourceMap : true,
Expand Down
2 changes: 1 addition & 1 deletion rollup.umd.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var banner = "/*\n" +

var config = {
entry : 'src/js/main.js',
dest : 'src/embed.js',
dest : 'dist/embed.js',
format : 'umd',
banner : banner,
sourceMap : true,
Expand Down
Loading

0 comments on commit c244a48

Please sign in to comment.