jabdul / apln Goto Github PK
View Code? Open in Web Editor NEWAppland CLI tool
License: BSD 2-Clause "Simplified" License
Appland CLI tool
License: BSD 2-Clause "Simplified" License
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]
$ 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
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.
When creating a new module, I get the following line at the end...
LOG: Launching App in "undefined" browser...
The browser is unspecified.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.