1
0
Pārlūkot izejas kodu

make the IDE for cli code load

Herbert Vojčík 11 gadi atpakaļ
vecāks
revīzija
9794653534
3 mainītis faili ar 33 papildinājumiem un 21 dzēšanām
  1. 1 8
      .gitignore
  2. 18 0
      cli/bower.json
  3. 14 13
      cli/index.html

+ 1 - 8
.gitignore

@@ -1,13 +1,6 @@
-# Ignoring compiled files in examples etc
-server/FileServer*.js
-
 # Ignoring Mac Finder files
 .DS_Store
 
-# Ignoring run.js in test/
-test/amber_test_runner.js
-test/run.js
-
 # In case amber is also saved in a local Subversion
 .svn
 
@@ -15,4 +8,4 @@ test/run.js
 /node_modules/*
 
 # Ignoring local bower modules
-/bower_components/*
+/cli/bower_components/*

+ 18 - 0
cli/bower.json

@@ -0,0 +1,18 @@
+{
+  "name": "amber-cli",
+  "version": "0.0.1",
+  "homepage": "https://github.com/amber-smalltalk/amber-cli",
+  "description": "CLI for Amber Smalltalk",
+  "license": "MIT",
+  "private": true,
+  "ignore": [
+    "**/.*",
+    "node_modules",
+    "bower_components",
+    "test",
+    "tests"
+  ],
+  "dependencies": {
+    "amber": "~0.12.4"
+  }
+}

+ 14 - 13
cli/index.html

@@ -1,16 +1,16 @@
-<!DOCTYPE html> 
-<html> 
+<!DOCTYPE html>
+<html>
 
-  <head> 
-    <title>Amber Smalltalk</title> 
-    <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 
-    <meta name="author" content="Nicolas Petton" /> 
-    <script type='text/javascript' src='../support/requirejs/require.min.js'></script>
-    <script src='../support/amber.js'></script>
+  <head>
+    <title>Amber Smalltalk</title>
+    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+    <meta name="author" content="Nicolas Petton" />
+    <script type='text/javascript' src='bower_components/amber/support/requirejs/require.min.js'></script>
+    <script src='bower_components/amber/support/amber.js'></script>
 
-  </head> 
+  </head>
 
-  <body> 
+  <body>
     <script type='text/javascript'>
     require.config({
         paths: {
@@ -22,10 +22,11 @@
             "amber_cli/AmberCli" ],
         function (smalltalk) {
             smalltalk.initialize({'transport.defaultAmdNamespace': 'amber_cli'});
-            smalltalk.globals.Browser._openOn_(smalltalk.AmberCli);
+//            smalltalk.globals.Browser._openOn_(smalltalk.AmberCli);
+            smalltalk.popupHelios();
         }
     );
-    </script> 
-  </body> 
+    </script>
+  </body>
 </html>