hhzl 10 years ago
parent
commit
b4616e953e
7 changed files with 501 additions and 134 deletions
  1. 5 1
      .gitignore
  2. 0 71
      Gruntfile.js
  3. 0 9
      deploy.js
  4. 0 8
      devel.js
  5. 0 5
      local.amd.json
  6. 0 40
      package.json
  7. 496 0
      the.js

+ 5 - 1
.gitignore

@@ -1,4 +1,8 @@
 node_modules/
 node_modules/
 bower_components/
 bower_components/
 /config.js
 /config.js
-/the.js
+/Gruntfile.js
+/deploy.js
+/devel.js
+/local.amd.json
+/package.json

+ 0 - 71
Gruntfile.js

@@ -1,71 +0,0 @@
-'use strict';
-
-// File is generated by 
-//     amber init
-//
-// Test code was removed manually.
-
-module.exports = function (grunt) {
-    var path = require('path');
-
-    // These plugins provide necessary tasks.
-    grunt.loadNpmTasks('grunt-contrib-requirejs');
-    grunt.loadNpmTasks('amber-dev');
-
-    // Default task.
-    grunt.registerTask('default', ['amberc:all']);
-    grunt.registerTask('devel', ['amdconfig:app', 'requirejs:devel']);
-    grunt.registerTask('deploy', ['amdconfig:app', 'requirejs:deploy']);
-
-    // Project configuration.
-    grunt.initConfig({
-        // Metadata.
-        // pkg: grunt.file.readJSON(''),
-        banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
-            '<%= grunt.template.today("yyyy-mm-dd") %>\n' +
-            '<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
-            '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
-            ' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */\n',
-        // task configuration
-        amberc: {
-            options: {
-                amber_dir: path.join(__dirname, "bower_components", "amber"),
-                library_dirs: ['src'],
-                closure_jar: ''
-            },
-            all: {
-                src: [
-                    'src/TrySmalltalk.st', // list all sources in dependency order
-                ],
-                amd_namespace: 'amber-trysmalltalk',
-                libraries: ['Web']
-            }
-        },
-
-        amdconfig: {app: {dest: 'config.js'}},
-
-        requirejs: {
-            deploy: {options: {
-                mainConfigFile: "config.js",
-                onBuildWrite: function (moduleName, path, contents) {
-                    return moduleName === "config" ? contents + "\nrequire.config({map:{'*':{app:'deploy'}}});" : contents;
-                },
-                pragmas: {
-                    excludeIdeData: true,
-                    excludeDebugContexts: true
-                },
-                include: ['config', 'node_modules/requirejs/require', 'deploy'],
-                out: "the.js"
-            }},
-            devel: {options: {
-                mainConfigFile: "config.js",
-                onBuildWrite: function (moduleName, path, contents) {
-                    return moduleName === "config" ? contents + "\nrequire.config({map:{'*':{app:'devel'}}});" : contents;
-                },
-                include: ['config', 'node_modules/requirejs/require'],
-                out: "the.js"
-            }}
-        }
-    });
-
-};

+ 0 - 9
deploy.js

@@ -1,9 +0,0 @@
-define([
-    'amber/lang',
-    // --- packages to be deployed begin here ---
-    'amber/legacy/IDE',
-    'amber-trysmalltalk/TrySmalltalk'
-    // --- packages to be deployed end here ---
-], function (amber) {
-    return amber;
-});

+ 0 - 8
devel.js

@@ -1,8 +0,0 @@
-define([
-    'amber/devel',
-    './deploy'
-    // --- packages used only during development begin here ---
-    // --- packages used only during development end here ---
-], function (amber) {
-    return amber;
-});

+ 0 - 5
local.amd.json

@@ -1,5 +0,0 @@
-{
-    "paths": {
-        "amber-trysmalltalk": "src"
-    }
-}

+ 0 - 40
package.json

@@ -1,40 +0,0 @@
-{
-  "name": "trysmalltalk",
-  "title": "TrySmalltalk",
-  "description": "Tutorial to learn Smalltalk",
-  "version": "0.1.0",
-  "homepage": "https://github.com/amber-smalltalk/trysmalltalk",
-  "author": {
-    "name": "",
-    "email": ""
-  },
-  "repository": {
-    "type": "git",
-    "url": "https://github.com/amber-smalltalk/trysmalltalk"
-  },
-  "bugs": {
-    "url": "https://github.com/amber-smalltalk/trysmalltalk/issues"
-  },
-  "licenses": [
-    {
-      "type": "MIT",
-      "url": "https://github.com/amber-smalltalk/trysmalltalk/blob/master/LICENSE-MIT"
-    }
-  ],
-  "engines": {
-    "node": ">= 0.8.0"
-  },
-  "scripts": {
-    "test": "echo \"Error: no test specified\" && exit 1"
-  },
-  "devDependencies": {
-    "amber-dev": "^0.3.0",
-    "grunt": "^0.4.5",
-    "grunt-contrib-requirejs": "^0.4.4",
-    "requirejs": "^2.1.15"
-  },
-  "keywords": [
-    "Amber",
-    "Smalltalk"
-  ]
-}

File diff suppressed because it is too large
+ 496 - 0
the.js


Some files were not shown because too many files changed in this diff