Skip to content
This repository was archived by the owner on Nov 23, 2021. It is now read-only.

Commit 2af571b

Browse files
committed
Merge commit
2 parents d5b51fa + 60b5875 commit 2af571b

File tree

5 files changed

+71
-10
lines changed

5 files changed

+71
-10
lines changed

README.md

Lines changed: 36 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,40 @@
1+
# OASP/Devonfw Atom editor ("IDE") settings & packages
12

3+
## Introduction
24

3-
npm install -g babel-cli typescript jshint
5+
Web development in general, not just development with OASP4JS & Devon4Sencha, is typically done with other editors / IDE's than the default Eclipse which comes with the OASP IDE / Devonfw Distribution. Front-end developers are typically not very content with the features and user-experience of Eclipse for web development. This small project is intended to provide a default configuration for the Atom editor, so we can provision an alternative environment more suitable to the needs, tastes and whims of the wevbdev.
46

5-
Currently the
7+
This config can be used stand-alone or, alternatively, could be used in next versions of the OASP IDE / Devonfw Dist alongside Eclipse.
68

7-
- linter / jshint
8-
- typescript
9-
- babel
10-
- minimap
11-
- atom-beautify
12-
- Git Plus
13-
- asciidoc preview
14-
- language-asciidoc
9+
## Prerequisites
10+
11+
You can use either the [different platform specific installers](https://github.com/atom/atom/releases/tag/v1.9.8) or the compressed binaries which can be used without "installing". Take a look at the [Linux version (_tar.gz_ file)](https://github.com/atom/atom/releases/download/v1.9.8/atom-amd64.tar.gz) or the
12+
[Windows version (_zip_ file)](https://github.com/atom/atom/releases/download/v1.9.8/atom-windows.zip).
13+
14+
15+
See the file [_config/packages.lst_ for the list of included packages](https://raw.githubusercontent.com/ivanderk/oasp-atom-ide/master/config/packages.lst). If you want to add a package, install it in your own installation, run the script _backuppackages.(bat|sh)_ and commit / push the resulting file _config/packages.lst_.
16+
17+
18+
## Configure Atom
19+
20+
Make a clone of this repository to you local hard drive. Modify the file _env.bat_ or _env.sh_ according to your needs. There are two environment variables which need to be assigned a value:
21+
22+
- `ATOM_HOME`: needs to point to the _config_ directory in the cloned repository.
23+
- `ATOM_BIN`: needs to point to the directory containing the Atom binary files.
24+
25+
After this you can install the required packages by running the command:
26+
27+
restorepackages.(bat|sh)
28+
29+
after which Atom will be ready to run. You can start it by running the command:
30+
31+
runatom.(bat|sh)
32+
33+
34+
## Install node packages
35+
36+
In order to use the packages in Atom you need the corresponding tool chain installed: tools like Typescript etc. All relevant tools can be installed with the following command (note that Node.js must be installed; a version of node is avaiable in the OASP IDE / Devonfw Dist).
37+
38+
npm install -g babel-cli typescript jshint
39+
40+
Note that this installs the node modules _globally_ on the system, a practice which is recommended against by some projects (Babel in particular). Install the packages _locally_ in a project directory if that is more to your liking.

backuppackages.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@echo off
2+
3+
pushd %~dp0
4+
5+
call env.bat
6+
7+
%ATOM_BIN%\resources\app\apm\bin\apm list --installed --bare %ATOM_HOME%\packages.lst
8+
9+
popd

env.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
3+
export ATOM_HOME=/home/iwk/src/oasp-atom-ide/config
4+
export ATOM_BIN=/home/iwk/tmp/atom-1.9.8-amd64

restorepackages.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
3+
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
4+
5+
pushd $DIR
6+
source env.sh
7+
8+
$ATOM_BIN/resources/app/apm/bin/apm install --packages-file $ATOM_HOME/packages.lst
9+
10+
popd

runatom.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
3+
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
4+
5+
pushd $DIR
6+
source env.sh
7+
8+
echo $ATOM_HOME
9+
10+
$ATOM_BIN/atom &!
11+
12+
popd

0 commit comments

Comments
 (0)