mirror of
https://github.com/ascribe/onion.git
synced 2024-11-13 16:45:05 +01:00
Build pipeline works
This commit is contained in:
parent
49eaca1e9f
commit
b000ecd925
2
.gitignore
vendored
2
.gitignore
vendored
@ -14,4 +14,4 @@ results
|
||||
node_modules
|
||||
npm-debug.log
|
||||
|
||||
build/
|
||||
build/app.js
|
||||
|
@ -14,7 +14,7 @@ Getting started
|
||||
git clone git@bitbucket.org:ascribe/onion.git
|
||||
cd onion
|
||||
npm install
|
||||
npm run build
|
||||
npm run watch
|
||||
```
|
||||
|
||||
|
||||
|
0
build/.keep
Normal file
0
build/.keep
Normal file
19935
build/bundle.js
Normal file
19935
build/bundle.js
Normal file
File diff suppressed because one or more lines are too long
@ -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>
|
||||
<![endif]-->
|
||||
<div id="main"></div>
|
||||
<script src="build/app.js"></script>
|
||||
</body>
|
||||
<script src="build/app.js"></script>
|
||||
</html>
|
||||
|
@ -5,6 +5,6 @@ import HelloApp from './components/hello_app';
|
||||
|
||||
React.render(
|
||||
<HelloApp />,
|
||||
document.getElementById('alt-todo')
|
||||
document.getElementById('main')
|
||||
);
|
||||
|
@ -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'");
|
@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
|
||||
class TodoApp extends React.Component {
|
||||
class HelloApp extends React.Component {
|
||||
render () {
|
||||
return (
|
||||
<h1>ascribe all the things!</h1>
|
||||
@ -8,4 +8,4 @@ class TodoApp extends React.Component {
|
||||
}
|
||||
};
|
||||
|
||||
export default HelloreactApp;
|
||||
export default HelloApp;
|
62
package.json
62
package.json
@ -1,24 +1,42 @@
|
||||
{
|
||||
"name": "onion",
|
||||
"version": "0.0.0",
|
||||
"description": "Web client for ascribe",
|
||||
"main": "server.js",
|
||||
"dependencies": {
|
||||
"alt": "^0.16.0",
|
||||
"react": "^0.12.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"browserify": "^6.2.0",
|
||||
"envify": "^3.0.0",
|
||||
"jest-cli": "^0.4.3",
|
||||
"reactify": "^0.15.2",
|
||||
"uglify-js": "~2.4.15",
|
||||
"watchify": "^2.1.1"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "watchify -o js/bundle.js -v -d js/app.jsx",
|
||||
"build": "browserify -t [reactify --es6] src/app.jsx > build/app.js",
|
||||
"test": "jest"
|
||||
},
|
||||
"author": "Alberto Granzotto <alberto@ascribe.io>"
|
||||
"name": "Onion",
|
||||
"version": "0.0.1",
|
||||
"description": "Das neue web client for Ascribe",
|
||||
"main": "js/app.js",
|
||||
"scripts": {
|
||||
"watch": "watchify -o build/app.js -v -d js/app.js",
|
||||
"build": "browserify . -t [envify --NODE_ENV production] | uglifyjs -cm > build/app.js",
|
||||
"test": "jest"
|
||||
},
|
||||
"author": "Ascribe",
|
||||
"license": "Copyright",
|
||||
"browserify": {
|
||||
"transform": [
|
||||
"babelify",
|
||||
"envify"
|
||||
]
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-jest": "^4.0.0",
|
||||
"babelify": "^6.0.2",
|
||||
"browserify": "^9.0.8",
|
||||
"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"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user