1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 09:23:13 +01:00

Build pipeline works

This commit is contained in:
vrde 2015-05-15 15:05:17 +02:00
parent 49eaca1e9f
commit b000ecd925
9 changed files with 19981 additions and 29 deletions

2
.gitignore vendored
View File

@ -14,4 +14,4 @@ results
node_modules node_modules
npm-debug.log npm-debug.log
build/ build/app.js

View File

@ -14,7 +14,7 @@ Getting started
git clone git@bitbucket.org:ascribe/onion.git git clone git@bitbucket.org:ascribe/onion.git
cd onion cd onion
npm install npm install
npm run build npm run watch
``` ```

0
build/.keep Normal file
View File

19935
build/bundle.js Normal file

File diff suppressed because one or more lines are too long

View File

@ -11,6 +11,6 @@
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p> <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]--> <![endif]-->
<div id="main"></div> <div id="main"></div>
<script src="build/app.js"></script>
</body> </body>
<script src="build/app.js"></script>
</html> </html>

View File

@ -5,6 +5,6 @@ import HelloApp from './components/hello_app';
React.render( React.render(
<HelloApp />, <HelloApp />,
document.getElementById('alt-todo') document.getElementById('main')
); );

View File

@ -1 +0,0 @@
console.error("\n/home/alberto/ascribe/repos/onion/js/app.jsx:3\nimport React from 'react';\n^\nParseError: 'import' and 'export' may appear only with 'sourceType: module'");

View File

@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
class TodoApp extends React.Component { class HelloApp extends React.Component {
render () { render () {
return ( return (
<h1>ascribe all the things!</h1> <h1>ascribe all the things!</h1>
@ -8,4 +8,4 @@ class TodoApp extends React.Component {
} }
}; };
export default HelloreactApp; export default HelloApp;

View File

@ -1,24 +1,42 @@
{ {
"name": "onion", "name": "Onion",
"version": "0.0.0", "version": "0.0.1",
"description": "Web client for ascribe", "description": "Das neue web client for Ascribe",
"main": "server.js", "main": "js/app.js",
"dependencies": { "scripts": {
"alt": "^0.16.0", "watch": "watchify -o build/app.js -v -d js/app.js",
"react": "^0.12.2" "build": "browserify . -t [envify --NODE_ENV production] | uglifyjs -cm > build/app.js",
}, "test": "jest"
"devDependencies": { },
"browserify": "^6.2.0", "author": "Ascribe",
"envify": "^3.0.0", "license": "Copyright",
"jest-cli": "^0.4.3", "browserify": {
"reactify": "^0.15.2", "transform": [
"uglify-js": "~2.4.15", "babelify",
"watchify": "^2.1.1" "envify"
}, ]
"scripts": { },
"start": "watchify -o js/bundle.js -v -d js/app.jsx", "devDependencies": {
"build": "browserify -t [reactify --es6] src/app.jsx > build/app.js", "babel-jest": "^4.0.0",
"test": "jest" "babelify": "^6.0.2",
}, "browserify": "^9.0.8",
"author": "Alberto Granzotto <alberto@ascribe.io>" "envify": "^3.4.0",
"jest-cli": "^0.4.0",
"reactify": "^1.1.0",
"watchify": "^3.1.2"
},
"dependencies": {
"alt": "^0.15.6",
"classnames": "^1.2.2",
"object-assign": "^2.0.0",
"react": "^0.13.2"
},
"jest": {
"scriptPreprocessor": "node_modules/babel-jest",
"unmockedModulePathPatterns": [
"<rootDir>/node_modules/react",
"<rootDir>/node_modules/alt",
"<rootDir>/js/alt.js"
]
}
} }