You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Coop f8a164e9f7
Update README.md
2 years ago
.vscode Fixed gitignore issue. 3 years ago
templates Fixed an issue with .babelrc files. 3 years ago
.eslintrc.js Moved some stuff to their own functions. 3 years ago
.gitignore Fixed gitignore issue. 3 years ago
.npmignore Fixed issue with npmignore 3 years ago
LICENSE Initial commit 3 years ago
README.md Update README.md 2 years ago
argsParser.js Got the basics working. 3 years ago
createFiles.js Fixed an issue with .babelrc files. 3 years ago
generatePackagesListToInstall.js Added postcss config file for webpack. 3 years ago
generateProjectPackageJson.js Fixed an issue with browsersync with quoted folders on windows 3 years ago
index.js Fixed an issue with npm install with windows shell 3 years ago
package-lock.json Fixed an issue with .babelrc files. 3 years ago
package.json Fixed an issue with .babelrc files. 3 years ago
utils.js Moved some stuff to their own functions. 3 years ago

README.md

create-lightscript-app

This will create a minimal skeleton for a LightScript app.

It supports creating a skeleton app for the web (default) or for the server or both.

Web

  • This is the default.
  • To create a LightScript skeleton for the web, run npx lightscript-app app-name
  • The web skeleton includes Browsersync & PostCSS. PostCSS is set up so that you can use sass, less, stylus or regular css.
  • To start development, run npm start

Node

  • To create a LightScript skeleton for the server, run npx lightscript-app app-name --node
  • The node skeleton includes nodemon which will automatically restart the server on changes.
  • To start development, run npm start

Node And Web

  • To create a LightScript skeleton for an app for both the server the and web, run npx lightscript-app app-name --nodeandweb
  • This skeleton inlcudes everything from both the Web and Node skeletons above.
  • To start development, run npm start

Rollup and Webpack

  • By default the skeletons will use Rollup to transpile code. If you want to use Webpack instead, use the --webpack flag. e.g. npm init lightscript-app app-name --webpack