GithubHelp home page GithubHelp logo

ordercloud-api / angular-cms-components Goto Github PK

View Code? Open in Web Editor NEW
0.0 8.0 9.0 13.57 MB

⛔️ DEPRECATED - NO LONGER MAINTAINED

Home Page: https://ordercloud-api.github.io/angular-cms-components

JavaScript 1.08% TypeScript 76.62% HTML 19.98% SCSS 2.32%
angular ordercloud ordercloud-cms-api

angular-cms-components's Introduction

No Maintenance Intended

DEPRECATED

This project is no longer maintained.

Requirements

  • Angular version 10 - may work with older versions but has not been tested

Installation

  1. Install the component library

    npm i --save @ordercloud/angular-cms-components@beta
    
  2. Install the required peer dependencies

    npm i --save bootstrap @ng-bootstrap/ng-bootstrap tinymce @tinymce/tinymce-angular axios case jquery @ordercloud/headstart-sdk ordercloud-javascript-sdk ngx-spinner
    
  3. In your module import either CmsAdminModule for access to admin/buyer components or CmsBuyerModule for just the buyer components. Here we're registering CmsAdminModule for access to all components

    import { CmsAdminModule, Configuration } from '@ordercloud/angular-cms-components';
    
    @NgModule({
    declarations: [...],
    imports: [
        CmsAdminModule,
        ...
    ],
    providers: [...],
    bootstrap: [AppComponent]
    })
    export class AppModule {}

    If your app uses the shared module pattern you'll want to import it in your shared module instead (don't forget to export it as well)

    import { CmsAdminModule, Configuration } from '@ordercloud/angular-cms-components';
    @NgModule({
    declarations: [...],
    imports: [
        CmsAdminModule,
        ...
    ],
    exports: [
        CmsAdminModule,
        ...
    ],
    providers: [...],
    })
    export class SharedModule {}
  4. In angular.json add an entry to the assets array

    • {"glob": "**/*","input": "node_modules/tinymce","output": "/tinymce/"}
  5. In the root of your app import tinymce and the ordercloud plugin for tinymce

    •   import 'tinymce/tinymce';
        import '@ordercloud/angular-cms-components/plugin.min.js';
    
    

Now you can use any of the components in your application

🚀 Releasing

Assuming you are a maintainer you can follow these instructions to release a new version of the library.

  1. Add and commit your changes
  2. Run npm run build to build docs
  3. Verify the version has been bumped and adheres to semantic versioning.
    • Version should be updated in both package.json and projects/lib/package.json.
    • Version update should be its own commit
    • Use following format for the commmit: :bookmark: {VERSION}
  4. Push changes to master
  5. Create and publish a new release on github
  6. Publish on npm by running npm run publish-please
    • Defaults to pre-release. It is recommended to do a pre-release first to vet changes
    • For normal releases update the publishTag in .publishrc to latest and then run npm run publish-please
  7. Have a beer!

If you need to override publish-please and just use npm publish you can do so by first removing "prepublishOnly": "publish-please guard" from package.json and then running npm publish

👨‍💻👩‍💻 Developer Setup (as of 8/13/2020)

  1. To start, clone the repo.
  2. Next, you need to set the token, manually. Login to OC Portal and impersonate the user whose context you are using for development.
  3. With the Network tab open, send a /me request and view the Authorization field within the Headers section.
  4. Copy the token after "Bearer".
  5. Now navigate to line 10 in storybook-base-configuration.ts and replace the existing token. Keep in mind: this token will expire, so you will need to repeat this process.

angular-cms-components's People

Contributors

amrarick26 avatar crhistianramirez avatar djsteinmetz avatar erincdustin avatar esitarz avatar kwahn20 avatar lauerya avatar ricocynthia avatar robertsoniv avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.