framework icon indicating copy to clipboard operation
framework copied to clipboard

Package feature be boken ?

Open liaosankai opened this issue 11 years ago • 13 comments

Env

  • Windows7 zh-tw (x64)
  • node.js 4.1.1(x64)
  • total.js 1920
  • cmder v1.2

version

Make package file

I try step by step to make package file follow in http://docs.totaljs.com/v1.9.x/en.html#pages~Packages doc

000

Package file success created

001

Create new total.js project

Avoid others factors, I do mkdir totaltest to create empty directory and total.js init, then mv the package file to totaltest/packages

002

Run Test Result

003

Do I miss something ?

liaosankai avatar Oct 08 '15 05:10 liaosankai

Hi @liaosankai, can you send me your package file?

Thanks.

petersirka avatar Oct 08 '15 06:10 petersirka

@petersirka I had sent. Thank you for your assistance.

liaosankai avatar Oct 08 '15 06:10 liaosankai

Hi @liaosankai, many thanks. I found a bug on Windows.

Please try new beta: npm install -g total.js@beta


cd firstpackage
totalpackage create firstpackage

Give me a feedback.

petersirka avatar Oct 08 '15 08:10 petersirka

npm install -g total.js@beta

ok-0

Make package file again

use totalpackage create firstpackage for firstpackage.package use totalpackage create firstpackage2 . for firstpackage2.package

2015-10-08_180216

Try firstpackage.package file

Package load

ok-001

Open http://127.0.0.1:8000/hello-world/ in brower

ok-002

Try firstpackage2.package file

Package load

nono

liaosankai avatar Oct 08 '15 10:10 liaosankai

Rename the package file firstpackage.package to helloworld.package because I found an unexpected problem with filename and package id export.id = "" (in index.js). export.id can't be different than its filename because the package is extracted into /tmp/ directory according its filename, but its executed be another name. I must think about it.

Thanks!

PS: firstpackage2.package, please send me the file. I'll perform many tests on Windows this week.

petersirka avatar Oct 08 '15 10:10 petersirka

Rename export.id=helloworld and try make again, it's working now.

a00 a01 a03

I also rename export.id=helloworld2 and use totalpackage create helloworld2 . (with '.') make package file helloworld2.package to sent for you.

b00 b01

liaosankai avatar Oct 08 '15 10:10 liaosankai

Open your helloworld2.package in some text editor. All files in the file are without extension. Try to create package without . (dot) at the end of the command.

BAD:

totalpackage create helloworld2.package .

GOOD:

totalpackage create helloworld2.package

Thanks. Give me a feedback.

I must check the totalpackage application on Windows.

petersirka avatar Oct 08 '15 10:10 petersirka

I have tested it on Windows 7 and everything works correctly now. Thanks!

petersirka avatar Oct 13 '15 18:10 petersirka

@petersirka I'm just playing with package system and on windows 10 and without the dot it doesn't create package Notice the success path package

molda avatar Nov 03 '15 11:11 molda

@molda do you have latest beta version? Install total.js beta as global module npm install -g total.js@beta

petersirka avatar Nov 03 '15 11:11 petersirka

yes [email protected]

molda avatar Nov 03 '15 11:11 molda

Sorry i haven't installed it globaly so it's ok now i was outside my app folder

molda avatar Nov 03 '15 11:11 molda

Great! I want to publish a new version this week.

petersirka avatar Nov 03 '15 11:11 petersirka