kabisa / maji-kandanda

This project showcases some of the possibilities of a Maji Mobile App
0 stars 0 forks source link

Current working directory is not a Cordova-based project. #4

Open flarik opened 9 years ago

flarik commented 9 years ago

When running:

bin/maji run android

result

rm -rf ./dist && mkdir -p ./dist/assets
cp -R public/* ./dist/
[ '' = 'true' ] && node script/inject-livereload.js './dist/index.html' || exit 0
browserify --extension .hamlc --extension .coffee \
        -g uglifyify \
        -t coffeeify \
        -t yamlify \
        -t [ haml-coffee-browserify ] \
        -t [ envify purge ] \
        -t brfs \
        --debug \
        app/application.coffee | exorcist ./dist/assets/app.js.map | sed '/^\s*$/d' > ./dist/assets/app.js
DIST_DIR='./dist' node script/build-iconfont.js
node-sass --stdout --output-style ${CSS_OUTPUT_STYLE:-compressed} --include-path vendor/styles app/styles/application.scss | autoprefixer -b 'ios >= 8, android >= 4, ie >=10' > ./dist/assets/app.css
Current working directory is not a Cordova-based project.
Current working directory is not a Cordova-based project.
flarik commented 9 years ago

The problem lies in the fact that the cordova/www symlink is missing. When you create the symlink, the problem is solved.

cd ${my_dir_where_this_demo_app_is_saved}/cordova
/bin/ln -s ../dist www

The symlink probably got los because it configured in .gitignore

@eirvandelden Is there a reason why this is in .gitignore? A new Maji project doesn't contain this in .gitignore.

A virgin cordova structure looks likes this after running maji/bin:

cordova/
├── config.xml
├── hooks
│   └── README.md
├── platforms
├── plugins
├── plugins.txt
└── www -> ../dist
eirvandelden commented 9 years ago

I thought I had fixed this is in a previous commit, I guess I didn't merge the solution back into the assignments.

Thanks for looking!

On 8 May 2015 at 15:10, Frodo Larik notifications@github.com wrote:

The problem lies in the fact that the cordova/www symlink is missing. When you create the symlink, the problem is solved.

cd ${my_dir_where_this_demo_app_is_hosted}/www /bin/ln -s ../dist www

The symlink probably got los because it configured in .gitignore

@eirvandelden https://github.com/eirvandelden Is there a reason why this is in .gitignore? A new Maji project doesn't contain this in .gitignore.

A virgin cordova structure looks likes this after running maji/bin:

cordova/ ├── config.xml ├── hooks │ └── README.md ├── platforms ├── plugins ├── plugins.txt └── www -> ../dist

— Reply to this email directly or view it on GitHub https://github.com/eirvandelden/kandanda/issues/4#issuecomment-100226792 .

Met vriendelijke groet,

Etienne van Delden Kabisa

Marconilaan 8, 6003 DD, Weert Kleine Gartmanplantsoen 10, 1017 RR, Amsterdam

email: etienne@kabisa.nl pascal.widdershoven@kabisa.nl web: http://www.kabisa.nl mobile: +31 (0) 6 57 56 23 79 tel: +31 (0) 495 430 798 support tel: +31 (0) 495 430 593 support web: http://support.kabisa.nl CoC: 14090089