Skip to content

Commit a23e4bd

Browse files
committed
Merge pull request #229 from parallaxinc/component-cleanup
Component cleanup
2 parents ea40072 + c2f1ba3 commit a23e4bd

File tree

130 files changed

+3259
-2776
lines changed

Some content is hidden

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

130 files changed

+3259
-2776
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ node_js:
44
- '0.10'
55
- '0.12'
66
before_install:
7+
- 'npm install -g npm' # need latest npm for scoped modules
78
- 'export DISPLAY=:99.0'
89
- 'sh -e /etc/init.d/xvfb start'
910
script: npm run ci

.zuul.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Parallax IDE
2-
Parallax microcontroller development environment based on Chrome applications.
2+
Write, compile, and download code to your Parallax BASIC Stamp microcontroller to drive your custom electronic creations.
33

44
## Quickstart
55

_locales/en/messages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "The name of the application"
55
},
66
"appDescription": {
7-
"message": "Parallax microcontroller development environment based on Chrome applications.",
7+
"message": "Write, compile, and download code to your Parallax BASIC Stamp microcontroller to drive your custom electronic creations.",
88
"description": "The description of the application"
99
}
1010
}

client.js

Lines changed: 40 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
const Irken = require('irken');
44

5-
const { loadFile, newFile } = require('./src/actions/file');
6-
75
const app = new Irken();
86

97
const plugins = [
@@ -29,16 +27,31 @@ const plugins = [
2927
register: require('iggins')
3028
},
3129
{
32-
register: require('./plugins/appbar')
30+
register: require('./src/plugins/handlers')
31+
},
32+
{
33+
register: require('./src/plugins/keyboard-shortcuts')
34+
},
35+
{
36+
register: require('./src/plugins/appbar')
37+
},
38+
{
39+
register: require('./src/plugins/notifications')
3340
},
3441
{
35-
register: require('./plugins/editor')
42+
register: require('./src/plugins/editor')
3643
},
3744
{
38-
register: require('./plugins/sidebar')
45+
register: require('./src/plugins/terminal')
3946
},
4047
{
41-
register: require('./plugins/overlays')
48+
register: require('./src/plugins/rxtx')
49+
},
50+
{
51+
register: require('./src/plugins/sidebar')
52+
},
53+
{
54+
register: require('./src/plugins/overlays')
4255
}
4356
];
4457

@@ -51,21 +64,31 @@ function onRender(err){
5164
return;
5265
}
5366

54-
const { userConfig, workspace } = app;
67+
const {
68+
userConfig,
69+
handlers
70+
} = app;
71+
72+
const {
73+
newFile,
74+
changeFile,
75+
changeProject
76+
} = handlers;
5577

5678
// Finish Loading Plugin
79+
// TODO: encapsulate into a startup handler?
5780
const cwd = userConfig.get('cwd') || defaultProject;
5881
const lastFile = userConfig.get('last-file');
59-
workspace.changeDir(cwd, (err) => {
60-
console.log(err);
61-
if(lastFile){
62-
loadFile(lastFile);
63-
} else {
64-
newFile();
65-
}
66-
67-
console.log('file loaded');
68-
});
82+
console.log(cwd, lastFile);
83+
changeProject(cwd)
84+
.then(() => {
85+
if(lastFile){
86+
changeFile(lastFile);
87+
} else {
88+
newFile();
89+
}
90+
})
91+
.catch(console.error.bind(console));
6992
}
7093

7194
function onRegister(err){

package.json

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
22
"name": "parallax-ide",
33
"version": "0.6.0",
4-
"description": "Parallax microcontroller development environment based on Chrome applications.",
4+
"description": "Write, compile, and download code to your Parallax BASIC Stamp microcontroller to drive your custom electronic creations.",
55
"main": "index.js",
66
"directories": {
77
"test": "test"
88
},
99
"dependencies": {
10-
"alt": "^0.16.7",
11-
"bs2-serial": "^0.10.5",
10+
"@phated/redux-create-store": "^0.1.1",
11+
"bs2-serial": "^0.11.0",
1212
"codemirror": "^4.13.0",
13-
"frylord": "^0.6.0",
13+
"frylord": "^0.7.1",
1414
"holovisor": "^0.2.0",
15-
"iggins": "^0.2.1",
16-
"irken": "^0.7.1",
15+
"iggins": "^0.3.0",
16+
"irken": "^0.8.0",
1717
"lodash": "^3.9.1",
1818
"react": "^0.13.1",
1919
"react-loader": "^1.2.0",
@@ -22,36 +22,32 @@
2222
"react-style": "^0.4.0",
2323
"skrim": "0.0.3",
2424
"snacks": "^0.2.0",
25-
"sovereign": "^0.1.1",
26-
"through2": "^0.6.5",
25+
"sovereign": "^0.3.0",
2726
"when": "^3.7.2"
2827
},
2928
"devDependencies": {
30-
"babel": "^4.5.1",
3129
"babel-core": "^4.5.1",
3230
"babel-loader": "^4.0.0",
3331
"babel-runtime": "^4.7.16",
34-
"babelify": "^5.0.4",
3532
"browser-serialport": "git://github.com/garrows/browser-serialport#update",
3633
"chalk": "^1.0.0",
37-
"chrome-sync-fs": "git://github.com/2fast2fourier/chrome-sync-fs#sync-fs",
3834
"css-loader": "^0.9.1",
3935
"del": "^1.1.1",
40-
"electron-prebuilt": "^0.29.2",
36+
"electron-prebuilt": "^0.30.2",
4137
"eslint": "^0.24.0",
4238
"eslint-plugin-react": "^2.6.3",
43-
"expect": "git://github.com/phated/expect",
39+
"expect": "^1.8.0",
4440
"gulp": "git://github.com/gulpjs/gulp#4.0",
4541
"gulp-util": "^3.0.4",
4642
"gulp-zip": "^2.0.3",
4743
"html-loader": "^0.2.3",
4844
"json-loader": "^0.5.1",
4945
"level-js": "^2.1.6",
50-
"mocha": "^2.2.1",
5146
"style-loader": "^0.8.3",
5247
"webpack": "^1.7.2",
5348
"webpack-dev-server": "^1.7.0",
54-
"zuul": "^3.2.0"
49+
"zuul": "^3.2.0",
50+
"zuul-builder-webpack": "^1.1.0"
5551
},
5652
"scripts": {
5753
"test": "zuul test/*.js --local --open",

plugins/appbar/styles.js

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

plugins/editor/index.js

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

0 commit comments

Comments
 (0)