edokeh / spm-chaos-build-example Goto Github PK
View Code? Open in Web Editor NEWA simple example for spm-chaos-build
A simple example for spm-chaos-build
ReferenceError: seajs is not defined
[在此错误处中断]
seajs.use((seajs.production ? '' : '/js/') + 'example/users/index');
我进入到js文件夹,执行下面命令,
spm chaos-build example -C seajs-config.js
控制台输出:: 没有那个文件或目录
我已经安装spm chaos-build,版本为2.1.1
$ cd js
$ spm chaos-build example -C seajs-config.js
Task: "clean:dist" (clean) task
Task: "transport:spm" (transport) task
warn: can't find module example/base/handlebars
transport: 8 files
Task: "concat:relative" (concat) task
concated: 2 files
Task: "concat:all" (concat) task
concated: 3 files
Task: "uglify:js" (uglify) task
file: ".build/dist/blogs/new.js" created.
uncompressed: size: 1843 bytes.
compressed: size: 240 bytes gzipped (948 bytes minified).
file: ".build/dist/users/index.js" created.
uncompressed: size: 4153 bytes.
compressed: size: 469 bytes gzipped (1913 bytes minified).
file: ".build/dist/base/handlebars.js" created.
uncompressed: size: 7711 bytes.
compressed: size: 1089 bytes gzipped (4675 bytes minified).
Task: "md5:js" (md5) task
file: 'sea-modules/example/base/handlebars-c876a0d8f3bf3ac4bb5697bfd90eaa80.js' created.
file: 'sea-modules/example/blogs/new-279fcebdcda1b4f1bd2d88a90e7dc80c.js' created.
file: 'sea-modules/example/users/index-d95b7e3ae4b6cb812624abfdd122ffb0.js' created.
Task: "clean:spm" (clean) task
cleaning: ".build"...
Task: "spm-newline:target" (spm-newline) task
Task: "modify-config:target" (modify-config) task
file: "seajs-config.js" modified.
Done: but with warnings.
Got a warning warn: can't find module example/base/handlebars
when I ran spm chaos-build example -C seajs-config.js
Windows 7
spm: 2.1.9
node: 0.10.13
执行以下命令:
C:\wamp\www\seajs\spm-chaos-build-example-master>spm chaos-build example -C seajs-config.js
error: can not find package.json in example
!
请问哪里有问题?谢谢。是的。应该切换到js目录下执行。
如上个问题所说,我看了下,你说的俩个文件都存在,可能不是你说的那个问题,这个依赖的问题应该是哪个文件配置的问题呢?谢谢!
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.