specify installation in Ubuntu
Change-Id: I8731f6eb4e2aa1bf9ea03284614f8f5b53e5bc0e
This commit is contained in:
parent
e77fabefdf
commit
c7f816e226
28
kb_web/.idea/workspace.xml
generated
28
kb_web/.idea/workspace.xml
generated
@ -71,17 +71,27 @@
|
||||
</file>
|
||||
<file leaf-file-name="README.md" pinned="false" current-in-tab="true">
|
||||
<entry file="file://$PROJECT_DIR$/README.md">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state vertical-scroll-proportion="0.52904236">
|
||||
<caret line="30" column="27" selection-start-line="30" selection-start-column="27" selection-end-line="30" selection-end-column="27" />
|
||||
<provider editor-type-id="text-editor">
|
||||
<state vertical-scroll-proportion="0.0">
|
||||
<caret line="43" column="27" selection-start-line="43" selection-start-column="27" selection-end-line="43" selection-end-column="27" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
<provider editor-type-id="MarkdownPreviewEditor">
|
||||
<provider selected="true" editor-type-id="MarkdownPreviewEditor">
|
||||
<state />
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file leaf-file-name="package.json" pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/package.json">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state vertical-scroll-proportion="-4.375">
|
||||
<caret line="7" column="33" selection-start-line="7" selection-start-column="33" selection-end-line="7" selection-end-column="33" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
</leaf>
|
||||
</component>
|
||||
<component name="FileTemplateManagerImpl">
|
||||
@ -909,20 +919,20 @@
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/package.json">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state vertical-scroll-proportion="0.1635514">
|
||||
<state vertical-scroll-proportion="-4.375">
|
||||
<caret line="7" column="33" selection-start-line="7" selection-start-column="33" selection-end-line="7" selection-end-column="33" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/README.md">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state vertical-scroll-proportion="0.52904236">
|
||||
<caret line="30" column="27" selection-start-line="30" selection-start-column="27" selection-end-line="30" selection-end-column="27" />
|
||||
<provider editor-type-id="text-editor">
|
||||
<state vertical-scroll-proportion="0.0">
|
||||
<caret line="43" column="27" selection-start-line="43" selection-start-column="27" selection-end-line="43" selection-end-column="27" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
<provider editor-type-id="MarkdownPreviewEditor">
|
||||
<provider selected="true" editor-type-id="MarkdownPreviewEditor">
|
||||
<state />
|
||||
</provider>
|
||||
</entry>
|
||||
|
@ -8,32 +8,40 @@ If you want to change the UI code, you need to install NodeJS, npm, grunt and bo
|
||||
|
||||
### NodeJS & npm
|
||||
|
||||
download nodeJS & npm. For more detail see [nodejs.org](https://nodejs.org/)
|
||||
download nodejs & npm. For more detail see [nodejs.org](https://nodejs.org/)
|
||||
|
||||
#### NodeJS installation on Ubuntu/Debian
|
||||
|
||||
Some install scripts expect there a binary called node to be present whereby Ubuntu installs it as nodejs.
|
||||
|
||||
Using `sudo apt-get install nodejs-legacy`,
|
||||
|
||||
the nodejs package shall be changed to provide /usr/bin/nodejs, not /usr/bin/node.
|
||||
|
||||
### Grunt
|
||||
|
||||
Install Grunt's command line interface (CLI) globally:
|
||||
|
||||
`npm install -g grunt-cli`
|
||||
`sudo npm install -g grunt-cli`
|
||||
|
||||
And the project has already been configured with a package.json and a Gruntfile.
|
||||
And the project has already been configured with a kb_web/package.json and a Gruntfile.
|
||||
|
||||
Then change to the project's root directory (/kb_web).
|
||||
|
||||
Install project dependencies with `npm install`.
|
||||
Install project dependencies with `sudo npm install`.
|
||||
|
||||
### Bower
|
||||
|
||||
Install Bower:
|
||||
|
||||
`npm install -g bower`
|
||||
`sudo npm install -g bower`
|
||||
|
||||
Then execute the `bower install` command to install all of the packages which specified in kb_web/bower.json.
|
||||
|
||||
|
||||
## Build & development
|
||||
|
||||
Run `grunt serve` for preview UI.
|
||||
Run `grunt serve` for preview UI.
|
||||
|
||||
Run `grunt build` to compress all files to kb_web/dist.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user