Today, i tried to build package using sencha cmd "sencha app build package" in windows
I got an error -"compass is not recognized as internal command". But i have rubyGem and compass installed in my machine. when i ran "compass -v" in command prompt, i able to get compass package details and version.
I spend around 4 to 5 hours trying to fix this issue by googling, atlast i found the solution.
Below are the two approach (Either one) you need to follow, inorder to fix this issue
Approach 1:
add "skip.sass=1" to local.properties file in your app or workspace folder present inside .sencha folder. By default this local.properties file won't exist in either of these 2 location.
If you need to apply this build changes only to this specific app - you need to place local.properties file inside app folder or else if you need this changes to apply for all apps in this workspace, you can place this local.properties file inside workspace folder. Choice is yours
Approach 2:
Go to this file - sencha/app/build-impl.xml and move to Build sass section, there either enter the full compass installation path or something more general (like a new property) depending on if you are trying to share the project with others.
And define "compass.dir=<install-compass-path>" in your local.properties
Thats it.
Now, if you run again "sencha app build package" command in your command prompt, your build will get completed successfully without any Errors. You can see the build folder will be generated under your app base directory.
Hope, you enjoyed this Post.
I got an error -"compass is not recognized as internal command". But i have rubyGem and compass installed in my machine. when i ran "compass -v" in command prompt, i able to get compass package details and version.
I spend around 4 to 5 hours trying to fix this issue by googling, atlast i found the solution.
Below are the two approach (Either one) you need to follow, inorder to fix this issue
Approach 1:
add "skip.sass=1" to local.properties file in your app or workspace folder present inside .sencha folder. By default this local.properties file won't exist in either of these 2 location.
If you need to apply this build changes only to this specific app - you need to place local.properties file inside app folder or else if you need this changes to apply for all apps in this workspace, you can place this local.properties file inside workspace folder. Choice is yours
Approach 2:
Go to this file - sencha/app/build-impl.xml and move to Build sass section, there either enter the full compass installation path or something more general (like a new property) depending on if you are trying to share the project with others.
<x-shell>
${compass.dir}/compass compile --boring @{sass} --css-dir ${app-css-dir}/${sass.name} --force
</x-shell>
And define "compass.dir=<install-compass-path>" in your local.properties
Thats it.
Now, if you run again "sencha app build package" command in your command prompt, your build will get completed successfully without any Errors. You can see the build folder will be generated under your app base directory.
Hope, you enjoyed this Post.
No comments:
Post a Comment