Skip to content
This repository was archived by the owner on Aug 19, 2022. It is now read-only.

Commit 77ccad9

Browse files
author
Brandon Dail
committed
Remove builder as a dependency, implement build system
builder was probably overkill here, and using the radium component archetype was not correct, as this isn't really a radium component. Since this project is pretty simple it makes more sense to define a build process manually.
1 parent 96c9ea1 commit 77ccad9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+446
-310
lines changed

.babelrc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
{
2-
"extends": "./node_modules/builder-radium-component/config/babel/.babelrc"
2+
"presets": ["es2015", "react"],
3+
"plugins": [
4+
"transform-object-rest-spread",
5+
"transform-export-extensions"
6+
]
37
}

.builderrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist
2+
libs

.eslintrc.js

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
module.exports = {
2+
"parser": "babel-eslint",
3+
"env": {
4+
"browser": true,
5+
"es6": true,
6+
"node": true,
7+
"jest": true
8+
},
9+
"extends": [
10+
"eslint:recommended",
11+
"plugin:flowtype/recommended"
12+
],
13+
"parserOptions": {
14+
"sourceType": "module"
15+
},
16+
"plugins": [
17+
"flowtype"
18+
],
19+
"rules": {
20+
"indent": [
21+
"error",
22+
2
23+
],
24+
"linebreak-style": [
25+
"error",
26+
"unix"
27+
],
28+
"quotes": [
29+
"error",
30+
"single"
31+
],
32+
"semi": [
33+
"error",
34+
"always"
35+
]
36+
}
37+
};

.npmignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
src
2+
test
3+
demo

Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: npm run demo

demo/app.jsx renamed to demo/app.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
/* global document:false */
2-
/* eslint-disable new-cap */
31
import React from "react";
42
import ReactDOM from "react-dom";
53
import Radium, { Style, StyleRoot } from "radium";
64
import * as animations from '../lib';
75
import merge from '../lib/merge';
86

9-
import Demo from './description';
7+
import Demo from './demo';
108

119
const styles = {
1210
global: {
File renamed without changes.
File renamed without changes.

demo/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<script src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/4.1.15/es5-sham.min.js"></script>
2323
<![endif]-->
2424
<script src="http://localhost:3000/webpack-dev-server.js"></script>
25-
<script src="assets/main.js"></script>
25+
<script src="bundle.js"></script>
2626
<script>
2727
// Sanity-check the component loaded...
2828
setTimeout(function () {

0 commit comments

Comments
 (0)