Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install a moonstone app template ? #1479

Closed
ghost opened this issue Jun 5, 2018 · 4 comments
Closed

How to install a moonstone app template ? #1479

ghost opened this issue Jun 5, 2018 · 4 comments

Comments

@ghost
Copy link

ghost commented Jun 5, 2018

I am trying to build a moonstone app. My code below :

var kind = require('enyo/kind'),
    Panels = require('moonstone/Panels');

var MainView = kind({
    name: 'MainView',
    classes: 'moon enyo-fit',
    components: [
        {kind: Panels, classes: 'enyo-fit', pattern: 'alwaysviewing', popOnBack: true, components: [
            {title: 'First Panel'}
        ]}
    ]
});

// source/app.js =========================================================

require('enyo/options').accessibility = true;

var
    ready = require('enyo/ready');

ready(function () {
    new MainView().renderInto(document.body);
});

But it gives me an error :
15:13:12.675Z ERROR enyo-dev/process-source-stream: could not be resolved, will be reported at the end (module=moonstone/Panels)

How to install a moonstone app template ?
What console command I should use ? I don't understand from tutorial. Thx

@sugardave
Copy link
Member

You can list the available templates with:

enyo templates list

and you should have moonstone-template in that list.

Then you can make a new project based on the template with

enyo init -t moonstone-template

@ghost
Copy link
Author

ghost commented Jun 6, 2018

@sugardave thx for the answer, but it gives me an error
screenshot from 2018-06-06 13-09-15

@webOS101
Copy link
Member

webOS101 commented Jun 6, 2018

The templates I get from my enyo command are as follows:

Templates

    default-app        system    app
    default-library    system    library
    moonstone-app      system    app
    onyx-app           system    app

Try:

enyo init -t moonstone-app

@ghost
Copy link
Author

ghost commented Jun 6, 2018

@webOS101 thx

@ghost ghost closed this as completed Jun 6, 2018
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants