Sencha Touch - Cannot generate first app - extjs

I just downloaded Sencha Touch 2.1.0 and Sencha CMD v.3.0.2.288. I extracted the Sencha Touch SDK into MAMP's htdocs folder. When I tried following the getting started guide,
sencha app create MyApp ../MyApp
gives the error
Sencha Cmd v3.0.2.288
[ERR] No such property : 'create'
I am guessing that the create argument is not available in this version of Sencha Cmd. I tried
sencha app build MyApp ../MyApp
I get the error
Sencha Cmd v3.0.2.288
[ERR] 'MyApp' not in valid range: [native, package, testing, production]
[ERR] Illegal value : MyApp
Any idea what went wrong?

To generate a new app you need to:
cd path/to/sencha-touch-2.1/directory and then run:
sencha generate app MyApp path/to/MyApp
Then to build your app:
cd path/to/MyApp and run:
sencha app build native

Related

Unable to access ExtJS 7.5.0 sample application

I recently got myself into ExtJS. Followed the 'Getting started with NPM' and run a fresh modern-app sample. While the sample does seem to run, I noticed the following error.
i [ext]: [ERR] [ERR] Error: spawn
/home/mahas/projects/extjs/cool-universal-app/node_modules/#sencha/cmd/dist/sencha
EACCES at Process.ChildProcess._handle.onexit
(node:internal/child_process:282:19) at onErrorNT
(node:internal/child_process:477:16) at processTicksAndRejections
(node:internal/process/task_queues:83:21)
My browser endlessly loading the app and this warning appeared on my console
<i> [webpack-dev-middleware] wait until bundle finished: /
I have tried to wait several minutes just in case of Webpack actually bundling assets but the same warning appeared.
The problem is solved simply by the command:
chmod 777 "/home/mahas/projects/extjs/cool-universal-app/node_modules/#sencha/cmd/dist/sencha"
Khusamov Sukhrob solution works.
Using chmod 777 your_project_path/node_modules/#sencha/cmd/dist/sencha can make npm run dev work for your sencha app.
Alternatively, you can still use classic sencha cmd, sencha app build development and sencha app watch, to develop and start your sencha app.

How to write a gulp task to deploy my angularjs app to amazon s3 ?

I have following Angular project structure
I am new to creating gulp tasks. I tried for some simple projects and that worked fine but for this project, I am facing a lot of issues. I am unable to figure out the way to write a gulp task for this app structure.
This project I have to deploy on AWS S3 so for that I need it to build and deploy.
It would be really helpfull for me if anyone could guide me on this.
Below are the steps to build and deploy AngularJs application using gulp :
Prerequisites :
Install Nodejs 6.9.3.
check you npm version using "npm -v" in the command prompt.
Install gulp using "npm install -g gulp".
Set your environment variables for windows.
Add the below code snippet
gulp.task("js", function() {
return gulp
.src([
"./dev/libs/angular/angular.1.4.5.min.js",
"./dev/libs/angular/angular-animate.1.4.5.min.js"
])
.pipe(concat("scripts.js"))
.pipe(hash({
"format": "{name}_{size}.js"
}))
.pipe(gulp.dest("PATH_FOR_BUILD"));
});
For more details Angular JS - Build & deploy using gulp

Unable to load required framework: ext#null in extjs

Setting up extjs and sencha when I ran the app I get error unable to load required framework
root#samuel-pc:~/Documents/code/test# sencha app watch
Sencha Cmd v6.5.0.180
[ERR] Unable to load required framework: ext#null
First of all you must create workspace.json with sencha workspace init then add your frameworks into workspace.json like:
"frameworks": {
"ext": {
"path": "ext"
}
}
after that you can run sencha app install in order to install requirements and then you can run sencha app build and ...

Why does the command " ionic serve " in git bash gives an error?

I'm trying to run an ionic server through git bash on windows but its failing and showing an error
Couldn't find ionic.config.json file. Are you in an Ionic project?
Here are all the possible solutions
From a recent update just rename the ionic.project to ionic.config.json
and install bower since ionic requires bower using npm i bower
and see to it that you are running command in your project folder only

Any difference between node commands 'cordova ionic' and 'ionic'? Which command need to use?

Is there any difference between node commands npm install -g cordova ionic and npm install -g ionic.
Which command do I need to use to build a ionic project. The documentation given in ionic framework and npmjs are different.
First let's get the clarifications out of the way:
Cordova and ionic are names of packages that you install with the npm install command
The -g flag is used to install the packages globally and be available throughout the system.
Now, to answer your question: The documentation in npmjs for ionic assumes cordova is already installed and provides the command to install ionic-cli
If you try to run
ionic start myapp tabs
without having cordova installed only ionic it will throw a "Package missing" error.
The documentation in the ionicframework website mentions that the cordova package needs to be installed to use the ionic-cli successfully.
Why does ionic need cordova? Well because ionic-cli uses cordoba-cli, and when starting a new ionic project it first initialises a cordova project.
Therefore to start an ionic project, you need npm install -g ionic cordova and then ionic start myapp {templateName}
Hope everything is clear now!

Resources