Git Product home page Git Product logo

apln's People

Contributors

jabdul avatar

Watchers

 avatar  avatar

apln's Issues

Build: Minifying and optimising JavaScripts...

When attempting to build a module with

$ apln build moduleName

the following error is logged:

LOG: Minifying and optimising JavaScripts...
WARN: Code: 1
WARN: Error: Command failed:
ERROR: Could not complete request. ABORTING.

To get more detail on the error, I cd'd to:

appland/_build/module-moduleName

then...

$ node ../../node_modules/requirejs/bin/r.js -o app.build.js

resulting in the following error:

Error: Error: Module ID 'module-moduleName/common' has a source path that is same as output path: c:/appland/dist/module-moduleName/common.js. Stopping, config is m alformed. at c:\appland\node_modules\requirejs\bin\r.js:26127:39

Then I checked r.js optimiser version:

$ node ../../node_modules/requirejs/bin/r.js -v
r.js: 2.1.14, RequireJS: 2.1.14, UglifyJS2: 2.4.13, UglifyJS: 1.3.4

Apparently, the app.buid.js configuration file is not compatible with this version.

So cd'd to appland root dir...

$ cd ../../

then installed r.js version 2.1.6...

$ npm install [email protected]

Ran the build once again:

$ apln build moduleName


Also see jburke's answer. It's to do with path setting vs baseUrl

[Issue 805 https://github.com/requirejs/r.js/issues/805]

Test runner failing

$ apln build moduleName
...
LOG: Running unit tests...
WARN: Code: 1
WARN: Error: Command failed: C:\Windows\system32\cmd.exe /s /c "node "./node_modules/test
em/testem.js" ci --launch=Chrome ./src-test/module-appland/TestRunner.html"

ERROR: Could not complete request. ABORTING.

Use force command a temporary solution
$ apln build moduleName -f

apln create module breaks at compiling css

When I run the following command:

$ apln create my-module

I get the following warning/error message...

LOG: Module "kakaki" successfully created.
LOG: Compiling CSS...
WARN: Code: 1
WARN: Error: Command failed:

I doesn't fire up the module in the browser.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.