Skip to content

JanvanCasteren/angularcli-meteor

 
 

Repository files navigation

AngularcliMeteor

This project was generated with Angular CLI version 1.4.1.

Instructions

ng new angularcli-meteor --style scss
cd angularcli-meteor
ng eject
cat webpack.config.js.patch | patch -p1
cat tsconfig.json.patch | patch -p1
Create src/declarations.d.ts
cat src/tsconfig.app.json.patch | patch -p1
cat src/tsconfig.spec.json.patch | patch -p1
cat e2e/tsconfig.e2e.json.patch | patch -p1
npm install --save angular2-moment
npm install --save moment
npm install --save-dev meteor-typings
npm install --save-dev @types/underscore
npm install --save-dev typescript-extends
meteor create api --release 1.6-beta.26 && rm -rf api/node_modules
rm -rf api/client
rm api/package.json api/package-lock.json
ln -s ../node_modules api/
cd api; meteor add barbatus:typescript; cd ..
Create api/tsconfig.json
mv api/server/main.js api/server/main.ts
ln -s src/declarations.d.ts api/
npm install --save babel-runtime
npm install --save meteor-node-stubs
npm install --save meteor-rxjs
npm install --save-dev @types/meteor
npm install --save-dev tmp
Initialize client app
Initialize Meteor backend
api$ meteor run
meteor-client bundle -s api --release 1.6-beta.26
npm run start

AOT

Remove scripts from package.json to be able to eject
Remove webpack.config.js to be able to eject
ng eject --prod
cat webpack.config.js.prod.patch | patch -p1
cat webpack.config.js.LicenseWebpackPlugin.revert.patch | patch -p1
api$ meteor run
meteor-client bundle -s api --release 1.6-beta.26
npm run start

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor. Before running the tests make sure you are serving the app via ng serve.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 56.3%
  • TypeScript 38.1%
  • HTML 5.3%
  • CSS 0.3%