-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved development and deployment process
- Loading branch information
Showing
59 changed files
with
525 additions
and
3,788 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"presets": ["es2015", "react"], | ||
"plugins": ["transform-object-rest-spread"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
node_modules | ||
dist | ||
**/*.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"commonjs": true, | ||
"es6": true, | ||
"jest": true, | ||
"jasmine": true | ||
}, | ||
"extends": "eslint:recommended", | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"experimentalObjectRestSpread": true, | ||
"jsx": true | ||
}, | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"react" | ||
], | ||
"rules": { | ||
"quotes": [ | ||
"error", | ||
"single" | ||
], | ||
"react/jsx-uses-react": "error", | ||
"react/jsx-uses-vars": "error" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
.DS_Store | ||
node_modules | ||
.grunt | ||
demo/dist | ||
npm-debug.log | ||
npm-debug.log | ||
.DS_Store | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
language: node_js | ||
script: | ||
- npm run install:demo | ||
- npm run build:demo | ||
- npm run lint | ||
- npm test | ||
deploy: | ||
provider: npm | ||
email: [email protected] | ||
api_key: | ||
secure: AuzrPiUT3uzn5xbGNEQyKp3OZUtleFXM7dHmucoqDt3idfZxbxIaJ1R1Gw5NYMocBFQ3NC3SgbyIxDM9u7tbI4W3qXwYZWgF6nb10PAmPyPbGp+gZAr/X6a++c8BSDyqQINp5iHS10oL6tbWMxmCQsXweGySMyprxW2rccDvXob6eCAK6TK2ZJBfSdanAUh57FxIkSylFFnLt19n0C+qHHdEsLMSfquDgVomDMi/6EEskdeD9vxh9XpEog/UWp8uYdY9D5FslNB9AgDDoHHd3mhei9EhXinGtZiMTMB1RPoCKfDwd+iBuvu8LeTRi81GTXHzqLqBs/IIsM31Cn0CcKxdyktuaRmShtueCx0eJ/qWZ5Rq5ZCGEkMC7dG73FbC7IqLLhF/eOb8PNq1gWjXt8OOXrlJpyc4WCyeF9Z3NARPHCDaJcpmXhHb/ML2NnfPN9AGpMBVq1i50g32q9pFFnlU7w7FruhFMiVIuaStaF/6nxMLcV+alasD5zUiukdktnNGROgvj0yFFCb6dkXyhsVS3kqAdr++arNv1viIGWOxW1Wi+hbLyzc8ySbR/XX0Vngo2VUNGy7rwkwjC9Ui612JF7fbX/k5D9+MYOiqwHDjvQD/a4PILfgOUFJ3bpLUMdijD9eK4s+InoNM89GVY+HjCukAafC3fnUMIPPK6Zg= | ||
skip_cleanup: true | ||
on: | ||
tags: true | ||
repo: mderrick/react-html5video | ||
after_deploy: | ||
- npm run deploy:demo | ||
env: | ||
global: | ||
- secure: 0vVutNGKCFrTr0XOx06DEhoSuVBb+tkSo6EJUKswiwbyEHA3Na5uJZHv1fi2WB48dKkH1eyNOdiKGhVUt1v2Z8Vsb3FskUw17X/TU3iaKTWsZleuH1UCJJQCCvxogXOthz/nV5ITJ9X+S87ybErRq24aSEgs+ibN44EC+Glxzs7kbsawtPBLA7rzTFRyOWRa8441xhMOE4UUq6GzG9fQ4+hlQiLwi2xnOqSQsPRdLP9cV65Kz9FC2GsJ3GUBFtWu8Ub+GLWl7f7hvXonU/8yF+jueZyRq8cWSQRBTGF4CCzFvGTpVy5kmGvMxdSaDyvhu8hih3iuGVONoRR2cYihdyUFckvLvazVBSbGVyLDfuGLDhqilHsw+IE/e1AbqjkF75JKnKBnHWBZU7plPMadkI3HSEv/uJtyB0xdDfiUuXp0/ecKiDQNkn7RroRfewQ8WWIntA7K2u5KJzXoV6qiDB2ifMxE8Ms982okH+QVkbpBKHWpIsndq2NyN0aXW1kor2ZmLLN0rgWF0cGuE2BrswdKs2yXIFHAu4MoHqb/JuNzEuMkgAX1J+0Q6ah3Oto9pY0H1qj8eM55QKwGddERQnrFQCK5B05P2rGuUZ0OC/V490YJxJ/vLjtqZxnWFZURG6IRpIUTM1wE5muWqzgGsEVqW0p8Lzq8hDs7c/waku8= |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = 'test-file-stub'; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
> 1% | ||
Last 5 versions | ||
not ie < 9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"extends": "./../.babelrc", | ||
"plugins": ["react-hot-loader/babel"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
const path = require('path'); | ||
const webpack = require('webpack'); | ||
const ExtractTextPlugin = require('extract-text-webpack-plugin'); | ||
const HtmlWebpackPlugin = require('html-webpack-plugin'); | ||
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin'); | ||
|
||
const pkg = require('./../package.json'); | ||
const srcPath = path.resolve(__dirname, 'src'); | ||
const distPath = path.resolve(__dirname, 'dist'); | ||
|
||
module.exports = ({ optimize, extractCss, hot, publicPath = '/' }) => { | ||
const cssString = 'css?modules&importLoaders=1&localIdentName=[hash:base64:5]&-autoprefixer!postcss'; | ||
let config = { | ||
entry: [ | ||
path.resolve(srcPath, 'entry.js') | ||
], | ||
output: { | ||
path: distPath, | ||
filename: '[name].js', | ||
publicPath: publicPath | ||
}, | ||
resolve: { | ||
extensions: ['.js', '.json', '.jsx', ''] | ||
}, | ||
module: { | ||
loaders: [{ | ||
test: /\.(js|jsx)$/, | ||
include: srcPath, | ||
loader: 'babel', | ||
query: { | ||
cacheDirectory: true | ||
} | ||
}, { | ||
test: /\.json$/, | ||
loader: 'json' | ||
}, { | ||
test: /\.css$/, | ||
include: srcPath, | ||
loader: extractCss | ||
? ExtractTextPlugin.extract('style', cssString) | ||
: 'style!' + cssString | ||
}, { | ||
test: /\.css$/, | ||
include: new RegExp(pkg.name + '/dist/'), | ||
loader: extractCss | ||
? ExtractTextPlugin.extract('style', 'css') | ||
: 'style!css' | ||
}, { | ||
test: /\.(ico|jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|svg)(\?.*)?$/, | ||
loader: 'file' | ||
}] | ||
}, | ||
plugins: [ | ||
new HtmlWebpackPlugin({ | ||
template: path.resolve(srcPath, 'index.html') | ||
}), | ||
new CaseSensitivePathsPlugin() | ||
] | ||
}; | ||
|
||
if (hot) { | ||
config.entry.unshift( | ||
'webpack-hot-middleware/client', | ||
'react-hot-loader/patch' | ||
); | ||
config.plugins.unshift( | ||
new webpack.optimize.OccurenceOrderPlugin(), | ||
new webpack.HotModuleReplacementPlugin(), | ||
new webpack.NoErrorsPlugin() | ||
); | ||
} | ||
|
||
if (extractCss) { | ||
config.plugins.push(new ExtractTextPlugin('[name].css')); | ||
} | ||
|
||
if (optimize) { | ||
config.plugins.push(new webpack.optimize.UglifyJsPlugin({ | ||
minimize: true, | ||
compress: { | ||
warnings: false | ||
}, | ||
output: { | ||
comments: false | ||
} | ||
})); | ||
} | ||
|
||
return config; | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,8 @@ | ||
{ | ||
"name": "demo", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "entry.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"dev-server": "node server.js" | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"name": "react-html5video-demo", | ||
"dependencies": { | ||
"css-reset": "git+https://github.com/60frames/css-reset.git", | ||
"lodash.throttle": "^3.0.4", | ||
"react": "^15.2.0", | ||
"react-dom": "^15.2.0" | ||
}, | ||
"devDependencies": { | ||
"babel-core": "^5.8.25", | ||
"babel-loader": "^5.3.2", | ||
"babel-runtime": "^6.3.13", | ||
"coding-standards": "git+ssh://[email protected]/60frames/coding-standards.git#1.0.5", | ||
"css-loader": "^0.21.0", | ||
"eslint": "^1.8.0", | ||
"eslint-plugin-react": "^3.6.3", | ||
"file-loader": "^0.8.4", | ||
"react-hot-loader": "^1.3.0", | ||
"style-loader": "^0.13.0", | ||
"webpack": "^1.12.2", | ||
"webpack-dev-server": "^1.12.1" | ||
"react-html5video": "file:../", | ||
"react": "^15.4.0", | ||
"react-dom": "^15.4.0" | ||
} | ||
} |
Oops, something went wrong.