volojs / create-template Goto Github PK
View Code? Open in Web Editor NEWThe sample single page app project template, uses RequireJS
The sample single page app project template, uses RequireJS
require is removing my body's script elements:
<!DOCTYPE html>
<html>
<head>
<script data-main="app" src="lib/require.js"></script>
</head>
<body>
<h1>Hello World</h1>
<script>
alert(1);
</script>
</body>
</html>
in inspector:
$("script")
<script src="lib/require.js" data-main="app">
Hey!
This repo is referenced in requirejs documentation. Request to add index.js that will start express server.
It will be useful for other developers to quickly launch index.html using a web server.
I tried to replicate the setup suggested here. I've got stuck since my main.js, unlike the one provided here, as dependencies to other "app" modules. The path for those is wrong. It would be useful if this template could demonstrate that piece of the puzzle as well.
Originally was volojs/volo#48
Make your code actually to something - like pull a string from a json resource and display it - you know - make this template useful.
See volojs/volo#49 for more info.
to this day, I still don't understand what the "modules" property does here:
https://github.com/volojs/create-template/blob/master/tools/build.js
what is the difference between modules produced by the optimizer and bundles produced by the optimizer?
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.