aurelia-cli

How can I get the Amazon Cognito Identity SDK working in Aurelia?

岁酱吖の 提交于 2019-12-06 23:43:22
问题 I am trying to get the Amazon Cognito Identity SDK working in Aurelia. I do not have a lot of Javascript experience and am very unfamiliar with the various dependency systems. I installed the Cognito SDK using: npm install --save amazon-cognito-identity-js I then edited my aurelia_project/aurelia.json file as suggested in the Aurelia documentation to include a new client library dependency in build.bundles vendor-bundle dependencies: "sjcl", "jsbn", { "name": "aws-sdk", "path": "../node

How to import packages within my Aurelia application

ぃ、小莉子 提交于 2019-12-06 10:09:05
I have a successful app running using Aurelia, however I developed it using VSCode and the skeleton that Aurelia gives you. Now that the CLI is available I'm trying to port the application over to a VS2015/Asp.net Core project but I'm having some difficulties. In the VSCode project, there's a bundles.js file within the build folder that Gulp uses to compile it (from what I understand). In that file, there's a "dist/aurelia" section and that's where I put all of the extra packages that I need to import and it will import the css and js files. Looks like this: "dist/aurelia": { "includes": [

CSS Management with the Aurelia-CLI: Every view loads another CSS file to be enforced site wide causing conflicts

断了今生、忘了曾经 提交于 2019-12-05 23:41:02
问题 I have a project with 6 views (html). Each of those views has a corresponding view model (.js) and a style sheet just for that view (.css) The aurelia-cli does a wonderful job of recursing through my file free and bundling all the .js and .css files into a couple of files so they can be referenced while reducing page load times and size. So if I have a welcome folder with a welcome.html, welcome.js and welcome.css, I can load the CSS for welcome.html with the following <require from=".

How to optimize workflow with single project using Aurelia CLI / ASP.NET Core

邮差的信 提交于 2019-12-05 08:48:44
I have an ASP.NET Core project, which also hosts an Aurelia CLI project, using TypeScript / SASS. The IDE is Visual Studio 2015. When the project is built by Visual Studio or MSBuild, the au build command is executed in the precompilation target, so when I build or run the ASP.NET Core project from Visual Studio using F5, Aurelia CLI will build and bundle the assets for the Aurelia app into wwwroot as well. This workflow ensures that any solution changes are correctly built, and it also ensures that .NET Core is running as the web server, however, it's slow for developers, because any changes

How can toastr.js work in Aurelia and Typescript?

寵の児 提交于 2019-12-05 06:15:21
I can't seem to get these to work together. I'm using the Aurelia CLI and have done so in a similar manner for other libraries successfully(like select2, spin, moment and numeral). I can't seem to get toastr to work though. Here is what I have so far. First I ran npm install toastr --save and typings install dt~toastr --global --save In aurelia.json , in the vendor-bundle.js section, I added a dependency as such: "jquery", { "name": "toastr", "path": "../node_modules/toastr/build", "main": "toastr.min", "resources": [ "toastr.min.css" ], "deps": ["jquery"] } UPDATE: Full steps to repro I have

Aurelia CLI include Bootstrap Glyphicons

﹥>﹥吖頭↗ 提交于 2019-12-05 04:11:18
I'm trying to include Bootstrap in my Aurelia CLI project, and the CSS and JS work fine. The only problem I have is the glyphicons require font files to be loaded. I use this configuration: "dependencies": [ { "name": "bootstrap", "path": "../node_modules/bootstrap/dist", "main": "js/bootstrap.min", "deps": ["jquery"], "exports": "$", "resources": [ "css/bootstrap.min.css", "fonts/glyphicons-halflings-regular.woff2" ] } ] But I get an error containing this line: path: 'C:\Users\randy\Documents\form\node_modules\bootstrap\dist\fonts\glyphicons-halflings-regular.js' So even though I include the

How can I get the Amazon Cognito Identity SDK working in Aurelia?

牧云@^-^@ 提交于 2019-12-05 02:59:38
I am trying to get the Amazon Cognito Identity SDK working in Aurelia. I do not have a lot of Javascript experience and am very unfamiliar with the various dependency systems. I installed the Cognito SDK using: npm install --save amazon-cognito-identity-js I then edited my aurelia_project/aurelia.json file as suggested in the Aurelia documentation to include a new client library dependency in build.bundles vendor-bundle dependencies: "sjcl", "jsbn", { "name": "aws-sdk", "path": "../node_modules/aws-sdk/", "main": "dist/aws-sdk" }, { "name": "amazon-cognito-identity-js", "path": "../node

Bootstrap 4 error “Bootstrap dropdown require Popper.js”, with Aurelia CLI and Require.js

∥☆過路亽.° 提交于 2019-12-04 23:57:50
I'm having trouble configuring Bootstrap 4 beta in an Aurelia CLI app (v0.31.1) with requirejs and using TypeScript. After having tried several config variations I keep on getting the following console error: Uncaught Error: Bootstrap dropdown require Popper.js Here are the steps to reproduce. First, install the packages: $ npm install --save jquery bootstrap@4.0.0-beta popper.js Next, I've configured aurelia.json : "jquery", { "name": "popper.js", "path": "../node_modules/popper.js/dist/umd", "main": "popper" }, { "name": "bootstrap", "path": "../node_modules/bootstrap/dist", "main": "js

Deploying an aurelia.cli built app

被刻印的时光 ゝ 提交于 2019-12-04 17:17:31
问题 I have built a simple aurelia web page without a back end, and I am now interested in going into production. I used Aurelia-cli for bundling, hoping this would be simple, but I am not sure how to proceed. Which files should I upload to the server to have the site working? Thanks for the help. 回答1: In a nutshell: au build --env prod copy the index.html to your main deployment folder on your server copy the /scripts folder to the same location. 回答2: we created a deployment script that: runs the

Aurelia CLI app-bundle automatic update gets slow

折月煮酒 提交于 2019-12-04 07:03:47
Hi I have a web application runnig on the Aurelia CLI. From what I’ve read in the documentation , the Aurelia CLI runs always “bundled” and never targeting directly source files. By running the “au run –watch” command, Aurelia “listens” to file changes and recreates the app-bundle.js automatically. Sample output from console: Starting 'readProjectConfiguration'... Finished 'readProjectConfiguration' Starting 'processMarkup'... Starting 'processCSS'... Starting 'configureEnvironment'... Finished 'configureEnvironment' Starting 'buildJavaScript'... Finished 'processCSS' Finished 'processMarkup'